gpt4 book ai didi

Powershell 控制外部 Windows 设备

转载 作者:行者123 更新时间:2023-12-03 09:49:05 25 4
gpt4 key购买 nike

我有一个条形码扫描仪 Motorola MC9090,我通过 USB 连接到我的 PC (Win10 64 位)。我安装了一个 Windows Mobile 设备中心,可以很好地识别这个设备,我可以通过 GUI 完成所有我需要做的事情。

我想编写一个 PS 脚本来将一些文件从我的 PC 复制到设备。Win Explorer 中的设备名为 "WindowsCE",设备上的其中一个文件夹为 "Application" .我尽我所能在 powershell 中看到该设备,但没有运气......Start WindowsCE\Application 没有工作......

当我运行此 Get-PnpDevice -FriendlyName WindowsCE -PresentOnly 时,当扫描仪连接到我的 PC 时,我得到了设备名称,所以我知道 Powershell 可以“看到”它,但我不知道如何控制设备。

请帮忙!

谢谢,

阿不福思!

最佳答案

所以我可以过滤到插入了哪个设备,但我真的无法进一步了解:

$test = Get-Pnpdevice

($test | where Name -eq 'WindowsCE') | Format-list

这将显示有关 WindowCE 设备的所有信息,但现在您可以过滤它是否已插入。

($test | where Name -eq 'WindowsCE') | where Present -eq 'True'

不确定是否有帮助,但就我所知。我希望我们可以在不使用 Windows Mobile 应用程序的情况下传输文件。祝你好运。

关于Powershell 控制外部 Windows 设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48808181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com