Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 678 Bytes

win-and-.net-commands.md

File metadata and controls

21 lines (15 loc) · 678 Bytes

.NET & Windows Commands

Powershell

  • 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 and Get-PhysicalDisk
  • Services
    • Starting: Start-Service <service-name>
    • Stopping: Stop-Service <service-name>
    • Cycle a service: Restart-Service <service-name>
  • Performance
    • Find the five processes using the most memory: ps | sort –p ws | select –last 5

CMD

Package managers