PowerShell Get-PSDrive 查看在线的驱动器#yyds干货盘点#

网友投稿 766 2022-09-17

PowerShell Get-PSDrive 查看在线的驱动器#yyds干货盘点#

PowerShell Get-PSDrive 查看在线的驱动器#yyds干货盘点#

环境配置说明

Windows 21H1 PSVersion 5.1.19041.1320

示例

PS C:\Windows> Get-PSDrive Name Used (GB) Free (GB) Provider Root CurrentLocation ---- --------- --------- -------- ---- --------------- Alias Alias C 43.60 218.14 FileSystem C:\ Windows Cert Certificate \ D 45.20 178.37 FileSystem D:\ E 18.83 184.53 FileSystem E:\ Env Environment F 17.43 914.08 FileSystem F:\ Function Function HKCU Registry HKEY_CURRENT_USER HKLM Registry HKEY_LOCAL_MACHINE I FileSystem I:\ Variable Variable WSMan WSMan

依据provider列进行排序,更好看一些

PS C:\Windows> Get-PSDrive | Sort-Object Provider Name Used (GB) Free (GB) Provider Root CurrentLocation ---- --------- --------- -------- ---- --------------- Alias Alias Env Environment C 43.62 218.12 FileSystem C:\ Windows D 45.20 178.37 FileSystem D:\ E 18.83 184.53 FileSystem E:\ F 17.43 914.08 FileSystem F:\ I FileSystem I:\ Function Function HKCU Registry HKEY_CURRENT_USER HKLM Registry HKEY_LOCAL_MACHINE Variable Variable Cert Certificate \ WSMan WSMan

学习资料

PowerShell 版本 + 工具 PowerShell/PowerShell 51CTO社区

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:PowerShell 简述参数类型#yyds干货盘点#
下一篇:python+selenium处理chrome显示通知弹框(python selenium 弹出框)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~