Windows Vista Forums

device configuration via PowerShell
  1. #1


    Larry__Weiss Guest

    device configuration via PowerShell

    A while ago I asked about setting some pointer device related
    configuration via PowerShell (specifically the SnapToDefaultButton
    property).



    My effort to allow PowerShell to assist me in doing that stalled out
    at the point where I can tweak the Registry setting associated with
    SnapToDefaultButton using PowerShell, but that afterwards it requires a
    reboot of the workstation to get it be effective.

    Setting that value via Control Panel does not require the reboot.

    Now I'm wondering what Control Panel does that I'm not doing via
    PowerShell. I think it must be interacting with a device driver at
    some level to get it to re-read configuration.

    In theory, should a PowerShell script be able to automate everything
    that Control Panel does?

    - Larry

      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: device configuration via PowerShell

    > In theory, should a PowerShell script be able to automate everything that

    > Control Panel does?
    Yes, I know I still haven't gotten around to trying to create a PowerShell
    script for this.

    In theory, one would hope that PowerShell could do everything that every UI
    in Windows is capable of, but that's likely a few Windows versions away, and
    depends on whether that appears to be a good time investment by Microsoft.

    PowerShell often uses .NET APIs, so it depends on what that API is capable
    of doing, and that won't always match up with what the similar Win32 API
    and/or P/invoke is able to do (admitting that I don't really understand how
    either fully works).

    Marco


      My System SpecsSystem Spec

device configuration via PowerShell problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Powershell to uninstall device from device manager in Window Arun Kumar PowerShell 1 15 Apr 2009
Found New Hardware - Unknown Device - Nothing Shown in Device Mana Jeff Vista hardware & devices 3 07 Apr 2008
Windows Mobile Device Center randomly fails to recognize device cleverusername Vista General 2 10 Nov 2007
PowerShell configuration data Greg Borota PowerShell 5 12 Jul 2006
Mobile device wizzard doesn't let me skip exchange configuration Gabrie Vista General 0 20 Jun 2006