certificate management
Find available encryption algorithms:
certutil -oid 2 | findstr pwszCNGAlgid
Find available hash algorithms:
certutil -oid 1 | findstr pwszCNGAlgid | findstr /v CryptOIDInfo
Find available CSPs:
certutil -csplist
disk management
recover flash drive
diskpart
list disk
select disk *#*
clean
create partition primary
--optional--
list volume
select volume *#*
format fs=ntfs quick
Files & Directories
dir /p wildcard search # Pause at each screen
dir /s wildcard search # traverse through Subdirectories as well
find local administrators
net localgroup administrators
mapping drives
net use # show list of mapped drives
net use DRIVE: PATH # map PATH to DRIVE
net use DRIVE: PATH /persistent:Yes # make this drive mapping persistent
net use DRIVE: PATH /user:USER PASSWORD # make this mapping with USER PASSWORD credentials
net use DRIVE: /delete # delete this drive mapping
net use * /delete # delete all mapped drives
group policy
gpresult /Scope User /view # all Policies applied to the current usergpresult /Scope Computer /v # view all Policies applied to this computergpresult /h # instead of outputting to the console, save as HTML filersop.msc # Resultant Set of Policy report
network
net shell
netsh wlan show profile name=labnol key=clear # Find the wifi password of your current network
netsh interface ipv4 set address name="*interface name* static *IP Address* *subnet mask* *gateway* # Change your IP address
reset network adapter
netsh int ip resetnetsh winsock resetipconfig /releaseipconfig /flushdnsipconfig /renew
os image management
dism /online /cleanup-image /checkhealth # reports whether the image is healthy, repairable, or not repairable
dism /online /cleanup-image /restorehealth # repairs a broken image
performance monitor
perfmon /report # Performance monitor system report
robocopy
usage: robocopy *source* *destination* *options*
common:
robocopy /S# copy Subdirectoriesrobocopy /B# copy files in Backup moderobocopy /MIR# Mirror the source directory at the destination directoryrobocopy /R:*n*# Retry n timesrobocopy /W:*n*# Wait n seconds before retriesrobocopy /L# List only (like –dry-run)robocopy /X# Report all eXtra files, not just those selectedrobocopy /V# Verbose loggingrobocopy /FP# Include Full Pathname in the outputrobocopy /LOG+:*file*# Output log to file, appendingrobocopy /TEE# Output to console window as well as log filerobocopy /SAVE:JOB_NAME# Saves parameters to jobfile jobnamerobocopy /LOAD:JOB_NAME# Loads parameters from jobfile jobname
robocopy "C:\Users\chris\Google Drive" Z:\public\google-drive /S /MIR /R:5 /W:30 /TEE /V /LOG+:C:\Users\chris\Dropbox\Logs\robocopy.log /SAVE:gdrive-to-optiplex
user account
unlocking
net user ACCOUNT_NAME /domain | find /I "Account Active"
If no:
net user ACCOUNT_NAME /domain /active:YES
windows update service
restarting the windows update service
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc