server inventory


hello

need servers running windows 2003 along r2 , sp1 or sp2.

this script looks close fails. http://blogs.technet.com/b/askds/archive/2010/02/04/inventorying-computers-with-ad-powershell.aspx

==============

ps c:\users\me> import-module activedirectory
ps c:\users\me> get-adcomputer -filter {operatingsystem -like "windows server*"} -property * | format-table name,o
peratingsystem,operatingsystemservicepack -wrap -auto
get-adcomputer : 1 or more properties invalid.
parameter name: msds-assignedauthnpolicy
@ line:1 char:1
+ get-adcomputer -filter {operatingsystem -like "windows server*"} -property * | f ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : invalidargument: (:) [get-adcomputer], argumentexception
    + fullyqualifiederrorid : activedirectorycmdlet:system.argumentexception,microsoft.activedirectory.management.comm
   ands.getadcomputer

thank


domain functional level windows 2003

you ad image corrupt.  try might work better:
get-adcomputer -filter {operatingsystem -like "*server*"} -property operatingsystem,operatingsystemservicepack  |   format-table name,operatingsystem,operatingsystemservicepack -wrap -auto


¯\_(ツ)_/¯



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file