top of page

PowerShell - Get computers OS

  • Writer: Jon Boyette
    Jon Boyette
  • Apr 15, 2022
  • 1 min read

Save as a GetALLADComputersOS.ps1 or similar, this is nice to use on a user base to see if anyone is updated to Windows 11, was the original use for me, Name, DNS Name, OS and version, and Last logon date reported to csv

Get-ADComputer -LDAPFilter '(operatingSystem=*Windows 10*)' -Properties * |

Select -Property Name,DNSHostName,operatingSystem,LastLogonDate |

Export-CSV "C:\Windows10Computers.csv" -NoTypeInformation -Encoding UTF8


 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page