RU | EN | DE

CommandDescription
Windows Info
Get-ComputerInfocomputer information
(Get-CimInstance Win32_OperatingSystem).LastBootUpTimelast download time
(Get-CimInstance Win32_LogonSession Sort-Object StartTime -Descending Select-Object -First 1).StartTimeuser login time
GPO
klist -li 0x3e7 purgeforce update of the system Kerberos cache
gpupdate /forceapply group policies on the client
gpupdate /target:computer /forceapply group policies on the client
gpresult /rchecking whether group policy has been applied on the client
Invoke-GPUpdate -Computer PC001 -Forceapply group policies on the specified computer (with administrative rights, remotely)
$pcs = "PC001","PC002","PC003"
Invoke-GPUpdate -Computer $pcs -Force
apply group policies on several computers (with administrative rights, deleted)
Invoke-GPUpdate -Computer PC001 -Target User -Forceapply group policies and user part for a specific user (with administrative rights, deleted)
psexec \\PC001 -s gpupdate /forceapply group policies (with administrative rights, remotely)
Tasks
Get-ScheduledTask -TaskName "Force-WSUS-CheckIn"get task
Get-ScheduledTaskInfo -TaskName "Force-WSUS-CheckIn"get information about a task
Get-ScheduledTask | Where-Object {$_.TaskName -like '*Force*' -or $_.TaskName -like '*WSUS*'}get task
Start-ScheduledTask -TaskName 'Force-WSUS-CheckIn'run task
Windows Update List
Get-CimInstance -Namespace root\cimv2 -ClassName Win32_QuickFixEngineering | Sort-Object InstalledOn -Descending | Select-Object InstalledOn, HotFixID, Description, InstalledByShows installed KBs (Quick Fix Engineering). (not always a complete list)
Get-WindowsUpdateLog
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -match "Update|KB" } | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object InstallDate -DescendingList of installed updates via “Installed Updates”
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber, OSArchitecture, LastBootUpTimeList of installed updates
Network
ping -tInfinite ping. Indispensable when setting up antennas or reconnecting cables.
tracertShows route map
tracert -d google.com
ping -l 1000Package size.
ping -aTries to find out the computer name by IP address.
ipconfiginformation about network adapters
ipconfig /releaseReset the current IP address (abandon it).
ipconfig /renewRequest a new IP address from the DHCP server (router).
ipconfig /flushdnsClear DNS cache. Very important! If the site has moved to a new server, and your computer remembers the old address, this command will make it “forget” the old one and ask again.
nslookupIP address by name
netstat -anoactive connections full view
netstat -abactive connections
shows program name
Test-NetConnection <IP/Name> -Port <Number>testing connection