I pretty much (completely read) a newbie to PowerShell, and I'm working on a project to inventory installed software on some computers on our network. I dug up a script to handle part of the software inventory, but it relies on a text file with computer names to scan. I am looking for a way to query AD for computer names for specific organizational units. Ideally, the script will prompt the user to enter the OU and the path to the text file for export. He will then look for AD to match and, if found, is exported to the specified path. For example, to export all computers to OU = workstations, OU = New York, DC = Fabrikam, DC = com, the user should be prompted and enter "New York", and all computer names will be exported to a specific path.Any help would be greatly appreciated.
source
share