V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
youcall911
V2EX  ›  PowerShell

请问如何使用 powershell 禁用/启用设备?

  •  
  •   youcall911 · 2021-07-18 21:49:41 +08:00 · 2165 次点击
    这是一个创建于 983 天前的主题,其中的信息可能已经有所发展或是发生改变。

    触摸板有时会失灵,我想用脚本的方式重启设备,可以实现吗?

    希望能有比较详细的教学,谢谢。

    2 条回复    2021-07-19 21:24:12 +08:00
    tenwx
        1
    tenwx  
       2021-07-18 21:52:09 +08:00   ❤️ 2
    youcall911
        2
    youcall911  
    OP
       2021-07-19 21:24:12 +08:00
    搞定了,感谢 @tenwx 的回答。

    PnPUtil Examples - Windows drivers | Microsoft Docs
    https://docs.microsoft.com/de-de/windows-hardware/drivers/devtest/pnputil-examples

    右键“以管理员身份运行”PowerShell 脚本(.ps1 格式) - Windows10.Pro
    https://windows10.pro/right-click-menu-run-as-administrator-ps1/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4070 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:17 · PVG 18:17 · LAX 03:17 · JFK 06:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.