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

    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).


      My System SpecsSystem Spec

device configuration via PowerShell
Similar Threads
Thread Forum
Using Powershell to uninstall device from device manager in Window PowerShell
Found New Hardware - Unknown Device - Nothing Shown in Device Mana Vista hardware & devices
Windows Mobile Device Center randomly fails to recognize device Vista General
PowerShell configuration data PowerShell
Mobile device wizzard doesn't let me skip exchange configuration Vista General