Powershell to get Net Framework version from AD computers? -


i'm trying .net framework version of our domain computers.

i run script below without errors output file empty. can please me fix it.

get-adcomputer -filter 'name -like "dc*"' | get-childitem ‘hklm:\software\microsoft\net framework setup\ndp’ -recurse | get-itemproperty -name version -ea 0 | { $_.pschildname -match ‘^(?!s)\p{l}’} | select pschildname, version | export-csv c:\temp\ggg.csv 

i fixed script. see below:

get-adcomputer -filter * | foreach { get-childitem ‘hklm:\software\microsoft\net framework setup\ndp’ -recurse | get-itemproperty -name version -ea 0 | { $_.pschildname -match ‘^(?!s)\p{l}’} | select pschildname, version } | export-csv c:\temp\gg.csv 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -