【发布时间】:2015-11-27 23:15:04
【问题描述】:
我正在尝试使用 PowerShell 检索以下信息:CIFS NAS 共享上的可用空间。尝试过PS-Drive,但必须有更好的方法来做到这一点,而不是持久化已安装的驱动器:
New-PSDrive –Name "R" –PSProvider FileSystem –Root "\\serverName\Folder" -Persist
Get-PSDrive R | Select-Object Free
Remove-PSDrive -Name "R"
有没有更好的方法来检索 NAS CIFS 卷的可用空间?
【问题讨论】:
标签: powershell size nas cifs