2017-02-15 3 views

答えて

0

私はそれを働きました。 intellimirrorSCPオブジェクトクラスを使用する必要があります。

$directoryEntry = New-Object 'System.DirectoryServices.DirectoryEntry'  
$directoryEntry.Path = $LdapPath 
$searcher = New-Object 'System.DirectoryServices.DirectorySearcher'($directoryEntry)  
$searcher.SearchScope = [System.DirectoryServices.SearchScope]::SubTree  
$searcher.PageSize = [System.Int32]::MaxValue 
$searcher.Filter = "(&(objectClass=intellimirrorSCP)(name='ServerNameHere-Remote-Installation-Services'))" 
$result = $searcher.FindOne() 
$directoryEntry = $result.GetDirectoryEntry() 
$directoryEntry.Properties.netbootAnswerRequests[0] = $false 
$directoryEntry.CommitChanges() 
関連する問題