如何使用 PowerShell 脚本弹出所有大容量存储驱动器?
我一直在使用 USB 集线器将文件复制到许多闪存驱动器。之后,他们需要被驱逐。我不想一次一个地手动弹出它们。
如何编写 PowerShell 脚本来弹出所有大容量存储驱动器,而无需输入驱动器号?
I've been using a USB hub to copy files to many flash drives. Afterwards, they need to be ejected. I don't want to eject them manually, one at a time.
How can I write a PowerShell script to eject all mass storage drives, without having to input the drive letters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我四处寻找,但未能找到令人满意的答案。
这是我拿出的脚本。
这非常有效!
I searched all over and was not able to find a satisfactory answer that put it all together.
Here is the script that I came out with.
This worked very well!