[Windows] How to count CIFS/SMB files in a folder or a directory ?

運用PowerShell來計算檔案及目錄數
**計算檔案數量**
Get-ChildItem \\CIFS-IP\Share-Volume -Recurse -File | Measure-Object | %{$_.Count}
**計算目錄數量**
Get-ChildItem  \\CIFS-IP\Share-Volume -Recurse -Directory | Measure-Object | %{$_.Count}
PS: 在 Restricted 可執行無需 bypass 或 unrestricted
運用命令提示列 (cmd.exe)
dir *.* /w /s
count-file2.jpg