- Checking Windows update version:
[System.Environment]::OSVersion.Version
- Invoking a Web request:
Invoke-WebRequest 'https://.....'
- Fetching system information:
Get-ComputerInfo
- Fetching disk info:
Get-Disk
andGet-PhysicalDisk
- Services
- Starting:
Start-Service <service-name>
- Stopping:
Stop-Service <service-name>
- Cycle a service:
Restart-Service <service-name>
- Starting:
- Performance
- Find the five processes using the most memory:
ps | sort –p ws | select –last 5
- Find the five processes using the most memory:
- Deleting all log files:
ls *.log -Recurse | foreach {rm $_}
- See https://github.com/chocolatey/choco/wiki/CommandsList for Chocolatey package manager commands.