AD saved query operating systems edition


dear all,

i have query relates saved query in ad. want information windows server/workstation edition e.g. professional, enterprise etc. kindly guide me how windows operating systems edition ad saved query.

your prompt response highly appreciated.

thanks,

hi mr.x

i tried given query still did not result looking. shows computer name nothing else.

kindly suggest if have other work around this.

thanks,

i have created poweshell code this.

import-module activedirectory $a = get-adcomputer -filter * -searchbase "dc=xxxxx,dc=com" -properties operatingsystem $list= @() foreach ($os in $a){ 	if($os.operatingsystem -match "windows *"){ 		$list += $os | select-object @{ l='computername';e={$_.name} }, @{l='operatingsystem';e={$_.operatingsystem}} 	} }  $list | export-csv -path c:\file.csv -notype

dc="xxxxxx,dc=com" dn of domain eg = "dc=ad,dc=com"

the output generated in c:\file.csv , contains computername , operating system

note - need run on dc or on client system rsat installed.

hope helps.

regards,

_prashant_


mcsa|mcitp sa|microsoft exchange 2003 blog - http://prashant1987.wordpress.com disclaimer: posting provided as-is no warranties/guarantees , confers no rights.



Windows Server  >  Directory Services



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

RDS 2012 r2 collections show black screen and then close