0

快速提问。我想更新活动目录计算机对象的 netbootguid。以下虽然似乎不起作用。

Set-ADComputer -identity $someComputerName -add@{'netbootGUID' = $theguidhere}

$guid = "00000000-0000-0000-0000-001CC082A15C"#一个mac地址在哪里

我收到以下错误:

Set-ADComputer : A value for the attribute was not in the acceptable range of values

知道我做错了什么以及如何纠正吗?

4

1 回答 1

1

尝试声明的类型$guid(我现在无法测试):

[guid]$guid = "00000000-0000-0000-0000-001CC082A15C"

并尝试:

Set-ADComputer -identity $someComputerName -add@{'netbootGUID' = $guid.tobytearray()
于 2012-11-09T15:27:26.610 回答