Power Shell GUIDE
Power Shell GUIDE
Power Shell GUIDE
#change keyboard
# SET network
# Rename computer
Rename-Computer -NewName solviapro-otds -LocalCredential Administrator -PassThru
Rename-Computer -NewName WIN-DSR30EI77KA -LocalCredential Administrator -PassThru
# find file
Get-Childitem "Path C:\ -Include *.keystore* -File -Recurse -ErrorAction
SilentlyContinue"
or
dir secret.doc /s /p
#install telnet
install-windowsfeature "telnet-client"
# ps process list
While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 1; cls}
# detail of process
Get-Process otds* | Format-List *
# Uninstall programs
$app = Get-WmiObject Win32_Product | where { $_.name -eq "OpenText Administration
Client" }
$app.Uninstall()
#Service list
Get-Service
#only running services
Get-Service | Where-Object {$_.Status -eq "Running"}