A to Z commands for windows


https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc772390(v%3dws.10)

Advertisements

DiskRAID commands


https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc770763(v%3dws.10)

 

Dirquota quota scan in FSRM


https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc742101(v%3Dws.11)

dirquota quota scan /path:<Path> [/remote:<ComputerName>]

dirquota quota list
dirquota quota add
dirquota quota modify
dirquota quota delete
dirquota quota scan
dirquota quota freespace

 

Robocopy to copy only new folders and files


Compare two folder files and update only modified files

robocopy e:\Fire \\18.18.17.151\e$\Fire\ /xo /zb /COPYALL /E  /MT:4 /R:0 /log+:c:\temp\copy.log /TEE 

Source location : e:\Fire

Destination folder \\18.18.17.151\e$\Fire

/xo: Excludes older files – if destination file exists and is the same date or newer than the source – don’t bother to overwrite it.

/E => copy subdirectories, including Empty ones.

/ZB => use restartable mode; if access denied use Backup mode.

/COPYALL => DATSOU (D=Data, A=Attributes, T=Timestamps ,S=Security=NTFS ACLs, O=Owner info, U=aUditing info)

/R:n => number of Retries on failed copies: default 1 million.

/LOG+:file => output status to LOG file

/TEE => output to console window, as well as the log file.

/MT[:n] => Do multi-threaded copies with n threads (default 8)

DNS backup script

ClusterLogs


To generate the cluster log

Get-ClusterLog

generate the cluster log with specific node

Get-ClusterLog -Node SRV1, SRV3

generate with local time

Get-ClusterLog –UseLocalTime

generate the cluster log with different location

Get-ClusterLog –Destination “C:\Temp”

generate the cluster log with timespan

Get-ClusterLog –TimeSpan 3

 

Ex: Timespane <mins>

Find gateway IP in Linux


ip route | grep default

%d bloggers like this: