powershell 更改计算机名


PowerShell交流中心 › 分类: Powershell基础 › powershell 更改计算机名
0 赞 踩
Q1497513693 asked 9 年 ago

现在遇到个问题,需要批量更改计算机名,远程管理改也行,脚本改也行
win10可以用rename-computer
win7该用什么改

2 Answers
0 赞 踩
Best Answer
Mooser Lee 管理员 answered 9 年 ago

Powershell 更改计算机名

Powershell 更改计算机名

0 赞 踩
GLaDOS answered 9 年 ago

$Computer = Get-WmiObject Win32_ComputerSystem -ComputerName <computer>
$Computer.Rename(<newname>)