none
コンピュータのリストを取得する数が1000に限られる RRS feed

  • 質問

  • PowerShellを触って2ヶ月足らずのOpsと申します。宜しくお願いします。

    以下のサイトを参考にして、作成したスクリプトについて質問させていただきます。
    http://www.microsoft.com/japan/technet/scriptcenter/resources/qanda/nov06/hey1109.mspx
    #Windows PowerShell を使用してすべてのコンピュータのリストを取得する方法はありますか

    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.Filter = ("(objectCategory=$strCategory)")
    $colProplist = "name"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()の実行後、
    $colResults.Countを表示させると、1000となり、1000以上のコンピュータリストを
    取得できないのですが、方法がありましたら、教えて頂きたく投稿しました。


    参考資料)
    Windows Server World
    PowerShell in Action
    2007年8月30日 2:51

回答

すべての返信