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
An error was detected on device \Device\CdRom1 during a paging operation
Does anybody know what or how to clean this error up. Out of the blue I started getting this error. Everything was working fine and then poof. I...
Vista General
Using Powershell to uninstall device from device manager in Window
Hi All, I want to use powershell to remove/uninstall a hidden device from my windows xp computer's device manager. Can you give some hints? ...
Found New Hardware - Unknown Device - Nothing Shown in Device Mana
Hi, I receive a message window at Vista start-up stating that Windows has found new hardware. The hardware is identified as unknown on the...
Vista hardware & devices
Windows Mobile Device Center randomly fails to recognize device
Hi All, Thanks for reading my post, and to any of you who choose to respond, thank you for your consideration. I am having a problem with WMDC,...
Vista General
PowerShell Leaders Join Forces and offer a pre-release version of PowerShell for 50% off the retail value
Shell Tools officially announced that Dr. Tobias Weltner (MVP); author of the award winning "System Scripter" has joined the company. Weltner...
PowerShell configuration data
A minor suggestion. Wouldn't make sense to have PowerShell profile directory to be $env:ALLUSERSPROFILE\Application Data\PowerShell -...
Mobile device wizzard doesn't let me skip exchange configuration
Hi Running Vista beta2 (5384) with Office Outlook 2007 (beta) 12.0.4017.1006). When trying to create a partnership with my Smarthphone c500...
Vista General