2012-11-09 45 views
0

quick question。我想更新活動目錄計算機對象的netbootguid。以下雖然似乎沒有工作。powershell set-adcomputer netbootguid

Set-ADComputer -identity $someComputerName [email protected]{'netbootGUID' = $theguidhere} 

其中$guid = "00000000-0000-0000-0000-001CC082A15C"#A的MAC地址

我得到以下錯誤:

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

任何想法,我做錯了,以及如何我可以糾正嗎?

回答

1

嘗試聲明的$guid類型(我現在不能測試):

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

,並嘗試:

Set-ADComputer -identity $someComputerName [email protected]{'netbootGUID' = $guid.tobytearray()