This post is intended for our field technicians and our more technical customers. Please do not run these commands unless you know what they will do.
File Transfer
Download a file
bitsadmin /transfer myDownloadJob /download /priority normal http://site/file.ext c:\destfile.ext
Load, Uptime, Computer Name and Performance
Get current CPU loadwmic cpu get loadpercentage
Get current system uptimesysteminfo | find "System Boot Time:"
Rename a PCwmic computersystem where caption='OLDPCNAME' rename 'NEWPCNAME'
See quick performance of SSDwinsat disk -ran -write -drive c:
Process Management
List processes
tasklist
Kill a processtaskkill /f /im process.exe
Power Management
Don’t sleep on AC
powercfg /x -standby-timeout-ac 0
Don’t sleep on battery
powercfg /x -standby-timeout-dc 0
Remote Desktop
Disable RDP
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 1 /f
Enable RDP
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 0 /f
Add incoming remote desktop exception to firewallnetsh advfirewall firewall set rule group="remote desktop" new enable=Yes
Service Management
Stop a servicesc stop "service name"
Turn off autostart of a servicesc config "service name" start= disabled
User and Group Management
Add a user to a group
net localgroup GROUPNAME USERNAME /add
Add a domain user to local domain group
net localgroup administrators DOMAIN\USERNAME /add
Add a user to Remote Desktop group
net localgroup "Remote Desktop Users" USERNAME /add
Create a user
net user /add USERNAME PASSWORD
Set user password to never expire
wmic useraccount where "name='USERNAME'" SET passwordexpires=false
Remove a user from groupnet localgroup GROUPNAME USERNAME /delete
WLAN
List saved wlan profilesnetsh wlan show profile
Display wlan password
netsh wlan show profile PROFILE key=clear
Recent Comments