PowerShell Command Guide
PowerShell Command Guide
Command:
Get-ComputerInfo
Description: Provides detailed system information, including OS version, processor details, and
memory.
Example Output:
WindowsVersion : 10.0.19044
CsName : YourComputerName
OsArchitecture : 64-bit
TotalPhysicalMemory : 17034256384
Command:
Example Output:
2024-12-26T10:34:24.123456-07:00
Command:
Example Output:
Name Version
---- -------
Microsoft Office 365 16.0.15128.20248
Google Chrome 118.0.5993.89
2. Schedule Shutdown
Example Output:
Command:
Description: Finds all .txt files within the specified path and its subdirectories. Example
Output:
C:\Documents\notes.txt
C:\Projects\readme.txt
Command:
Description: Copies all files and folders from the source directory to the target directory.
Example Output:
Command:
Get-Process
Description: Displays all currently running processes on the system. Example Output:
Command:
Command:
Get-Service
Description: Shows all Windows services and their current states. Example Output:
Command:
4. Network Tasks
4.1 Check Active Network Connections
Command:
Get-NetTCPConnection
Command:
Get-NetIPAddress
Test-Connection google.com
Command:
Description: Deletes all files and folders in the temporary directory. Example Output:
Deleting: C:\Users\YourUser\AppData\Local\Temp\file.tmp
Command:
Clear-RecycleBin
Confirm: Do you want to clear the Recycle Bin? [Y] Yes [N] No [S] Suspend
6. User Management
6.1 List All User Accounts
Command:
Get-LocalUser
Command:
7. System Monitoring
7.1 Check Disk Space
Command:
Description: Displays disk space usage for each drive. Example Output:
Command:
Description: Saves all process details to a CSV file for easy reference. Example Output: