[Windows] fix 主機大量 zero window issue

step01. check current config

C:\WINDOWS\system32> netsh interface tcp show global
Querying active state…

TCP Global Parameters

Receive-Side Scaling State : enabled
Receive Window Auto-Tuning Level : normal
Add-On Congestion Control Provider : default
ECN Capability : disabled
RFC 1323 Timestamps : disabled
Initial RTO : 3000
Receive Segment Coalescing State : enabled
Non Sack Rtt Resiliency : disabled
Max SYN Retransmissions : 2
Fast Open : enabled
Fast Open Fallback : enabled
HyStart : enabled
Pacing Profile : off

step02. 把 Receive Window Auto-Tuning Level (接收視窗自動調整層級) 改為 Disabled .
> netsh interface tcp set global autotuninglevel=disabled

**回復預設值**
> netsh interface tcp set global autotuninglevel=normal


> netsh interface tcp set global autotuninglevel=normal

有些江湖傳言說改為 disabled會加快上網變快之類,若不熟悉者還是小心使用。

[VMware] Online install VMware PowerCLi through PowerShell

<Require>
This environment use PowerShell 5.x version

How to check PowerShell version
PS:\> $PSVersionTable
Or
PS:\> Get-Host

step01.
PS:\> Save-Module -Name VMware.PowerCLI -Path

step02.
PS:\> Install-Module -Name VMware.PowerCLI

step03.
PS:\> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore

step04.
PS:\> Get-Module -ListAvailable -Name VMware*

[P2P] Web File Transfer

有時苦於身邊無安裝 IM Apps 或 Cloud Apps 上傳,或是公司或客戶無架設 FTP / Web server , 只是臨時想把一個檔案傳達給對方。

那最方便莫過於利用線上網頁 P2P 傳檔

[NetApp] OCUM 6.x/7.x enable diag shell (SSH)

適用於
OnCommand Unified Manager (UM) 6.x
OnCommand Unified Manager (UM) 7.0, 7.1

step01. choice 4) Support/Diagnostics

step02. type erds

step03.
Remote diagnostic acces is disabled.
Would you like to enable remote diagnostic access? (y/N) y

step04.

Enter new UNIX password: 輸入密碼
Retype new UNIX password: 輸入密碼
passwd: password updated successfully

Remote diagnostic access will be disabled after midnight UTC tomorrow (2019-03-08) to use.

Press any key to continue.

step05. 可以利用 WinSCP 或 putty 使用帳號 diag 及剛設定密碼登入OCUM.

[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