标签:dem for com 图片 and rsh object ffffff ges
代码$serial = (Get-WmiObject -ComputerName localhost -Class Win32_BIOS).SerialNumber
$name=Get-WmiObject -Class Win32_UserAccount -Filter "Name=‘$env:username‘ and Domain=‘$env:userdomain‘"
$username=$name.Name
$domain=$name.Domain
Write-Host -ForegroundColor Green "序列号是 $serial"
Write-Host -ForegroundColor Green "用户名是$username“
Write-Host -ForegroundColor Green "域是$domain”
序列号是 5CD60537FF
用户名是zengchuixin
域是demo
请扫描关注下方的二维码,获取更多的IT资讯:
标签:dem for com 图片 and rsh object ffffff ges
原文地址:http://blog.51cto.com/543925535/2059796