Cette commande permet de récupérer à distance le numéro de série d'un serveur ou ordinateur :
(Get-WmiObject -Class Win32_BIOS -NameSpace "root\CIMV2" -Computer "NomDuPc").SerialNumber
Numéro de licence du pc :
Get-WmiObject SoftwareLicensingService | Select-Object OA3xOriginalProductKey
Info pc à distance :
Get-WmiObject SoftwareLicensingService -ComputerName NomDuPc | Select-Object OA3xOriginalProductKey
reboot pc :
Restart-Computer -ComputerName "NomDuPc" -Force