POWERSHELL Get remote server Serial no using PowerShell
# Remote server Serial no using PowerShell
$computers = Get-Content c:\computerlist.txt
Get-wmiobject Win32_Bios –credential pugazh.co.in\administrator -ComputerName $computers | Select-Object __SERVER, SerialNumber
Note:
1. RPC port need to open.
2. Random port need to open - 49152 - 65535 & (1024 - 5000) (TCP)
3. We can fix port for WMI - follow this link.
https://msdn.microsoft.com/en-us/library/bb219447%28v=vs.85%29.aspx
Comments
Post a Comment