0
Powershellを使用してActive Directory内の「サービスを要求しているクライアントコンピュータに応答する」をオフにするにはどうすればよいですか?クライアントコンピュータへの応答をオフにする方法
私はDirectoryEntry
のプロパティとメソッドを調べてみましたが、関連するものは表示されませんでした。
Powershellを使用してActive Directory内の「サービスを要求しているクライアントコンピュータに応答する」をオフにするにはどうすればよいですか?クライアントコンピュータへの応答をオフにする方法
私はDirectoryEntry
のプロパティとメソッドを調べてみましたが、関連するものは表示されませんでした。
私はそれを働きました。 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()