bitsadmin ftw when pentesting. Most people don't know it exists. Can be useful when you don't have a browser installed or at your disposal
You can also use wmic to get serial number of pc for dells, lenovo ect.Windows wmic command line command
Wmic is not very well known command, you can do tons of stuff with it, I use it for network setup.
Setup DNS Servers on DHCP Enabled Network (OpenDNS)Code:
wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("220.127.116.11","18.104.22.168")
Setup IP, Gateway and DNS Servers based on the MAC address (it is more practical than using a name)Code:
wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call EnableStatic ("10.10.10.12"), ("255.255.255.248") wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetDNSServerSearchOrder ("22.214.171.124","126.96.36.199") wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetGateways ("10.10.10.10")