Hostname and Serial Number
Hostname: Shows hostname of computer
Serial Number: Shows S/N of computer
1
| wmic bios get serialnumber
|
Ping
Continuous Ping
Pull DNS info from Ping (alternatively, use nslookup)
Ping a certain amount of packets (Example: 60 packets [good for flapping alerts])
Traceroute
Shows Network Drives Connected to User
GPO
Computer Running Slow - SFC/DISM
DISM to Free-Up Space in WinSxS
1
| DISM /online /Cleanup-Image /StartComponentCleanup
|
- Note: The above command does not seem to work in Backstage (may be able to test with user-specific session)
IPConfig
-Shows IPv4, IPv6, DNS, etc.
Find/Logoff User
Find/Reset Password
Check for Email Domain on Server (PS)
1
| Get-Recipient emailaddress@company.com
|
Backstage Printers (PS)
1
| Get-Printer | Format-Table
|
1
| Remove-Printer -Name "NAMEOFPRINTER"
|
1
| Remove-PrinterDriver -Name "NAMEOFDRIVER"
|
Check Domain Connection (PS)
1
| Test-ComputerSecureChannel -Verbose
|
Active Directory Password Policy
1
| Get-ADDefaultDomainPasswordPolicy
|
Re-Add Computer to Domain (PS)
1
| Reset-ComputerMachinePassword -Server {DomainController} -Credential {DomainAdmin}
|
Example:
1
| Reset-ComputerMachinePassword -Server lon-dc01 -Credential corp\dsmith
|
Check Route Table
Clear ARP Table
- Can be used to solve connectivity issues internally
Check Current Running Connections (at current time [will not update unless ran again])
1
| netstat -ano | findstr "443"
|
- Note: TCPLogView may be a useful tool for logging data over time
Find & Cycle Network Adapter
PowerShell
1
| Get-NetAdapter | format-table
|
1
| Disable-NetAdapter -Name "<interface>" -Confirm:$false
|
1
| Enable-NetAdapter -Name "<interface>" -Confirm:$false
|
CMD
1
| netsh interface show interface
|
1
| netsh interface set interface INTERFACE disable
|
1
| netsh interface set interface INTERFACE enable
|
Find TXT Records of Domain (example is DMARC)
1
| nslookup -type=txt _dmarc.domain.com
|
- Note: This should work for other text records too if you know which one you’re looking for
Get Current CPU Percentage (PS)
1
| Get-CimInstance -ClassName win32_processor | Measure-Object -Property LoadPercentage –Average
|
Install Appinstaller Package
1
| Add-AppxPackage -Appinstaller <path-to-your-appinstaller-file>
|
Sync Changes to Azure
Find FQDN (Fully Qualified Domain Name) of Host (PS)
1
| [System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName
|
Find File (PS)
1
| gci -r -fi '*.EXTENSION'
|
Get and Restart Service (PS)
Test Domain Trust Broker (PS)
1
| Test-ComputerSecureChannel -Verbose
|
**If above is True, everything should be fine | If False, run the below command** |
1
| Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
|
Resync Time
1
| net stop w32time && w32tm /unregister && w32tm /register && net start w32time && w32tm /resync && tzutil /s "Eastern Standard Time"
|
Open Network Routing Tables
Remove Folder/Files (PS)
1
| Remove-Item FOLDERNAME/FILENAME
|
- Can change “C” for other drive letters
Download File Over HTTP
1
| Invoke-WebRequest -Uri "http://example.com/file.zip" -OutFile "C:\\path\\to\\save\\file.zip"
|
List Environment Variables