Here is the link for the script I am using to create server/PC/Laptops lists from Active Directory (Version 2.0).
The script is wrote in powershell.
It is can be run from command line like schedule task: “C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -command”
Download the Script and rename the suffix from .txt to .ps1
On the first section you need to feel relevant data for your list files (change the brackets to relevant data, NO NEED BRACKETS!!!):
$LTfile = “[Laptops list]” #xxxxxxlt.txt laptops suffix is “-LT”
$Pcfile = “[Desktops list]” #xxxxxxpc.txt desktops suffix is “-PC”
$SRVfile = “[Servers list]” #xxxxxxsrv.txt
I will be glade to get suggestions…
Thanks
Tal