Skip to content

Commands

PowerShell Cmdlets and Useful Commands for Win, Linux etc.

 

LanguageNameCommandDescription
WindowsWindows ExplorerexplorerOpen Win Explorer from Run
WindowsWindows Firewallfirewall.cplOpens Win Firewall
WindowsSystem Propertiessysdm.cplSystem Properties
PowerShellIP AddressGet-NetIPAddressReturns the IP Address. You can find the InterfaceIndex and Alias using this
PowerShellNew IP AddressNew-NetIPAddress –InterfaceIndex 21 IPAddress “192.168.0.7” –PrefixLength 24 -DefaultGateway 192.168.0.11Sets the IP of the NIC
PowerShellSet DNSSet-DnsClientServerAddress -InterfaceIndex 21 -ServerAddresses 192.168.0.1, 192.168.0.2Sets the DNS 1 and 2 of the NIC
PowerShellRun PS as Admin quick wayStart > Type powershell in start box > Ctrl+Shift+EnterOpens PowerShell as administrator
WindowsNew Explorer Window of current WindowCtrl+N
WindowsRun CMD as administrator quick wayStart > Type cmd in start box > Ctrl+Shift+Enter
WindowsDisplay the System Properties dialog boxWinKey+Break
WindowsView the properties for the selected itemALT+ENTER
WindowsRestart computer without countdownShutdown -r -t 00
WindowsTask Managertaskmgr
WindowsServicesservices.msc
WindowsRemote Desktopmstsc
WindowsRegistryregedit
WindowsRegional Settingsintl.cpl
WindowsPrinters folderprinters
WindowsPower Configurationpowercfg.cpl
WindowsNetwork Connectionscontrol netconnections
WindowsNetwork Connectionsncpa.cpl
WindowsUser AccountsMain control userpasswords
WindowsUser AccountsAdvanced control userpasswords2
Group PolicyForce Policy Updategpupdate /forceThis can be done on machine on each end
Group PolicyShow Applied Policiesrsop.mscshow set of policies that are applied
PowerShellOpen %TEMP% folder in explorerInvoke-Item $env:tempOpens the Temp path in explorer. ii can be used for short
SSHSwitch on ESXi Server Commandputty -ssh ip addressPower - check status
Power on - switch on server
SSHShutdown serverplink -ssh -2 -pw Windows1 root@192.168.0.10 "/sbin/shutdown.sh && /sbin/poweroff"shuts VMs safely and then the ESXi server

 

Comments
Scroll Up