Powershell Script to query AD and Local Computers
- or -
Post a project like this2038
$$
- Posted:
- Proposals: 1
- Remote
- #2119159
- Awarded
Description
Experience Level: Intermediate
Hi im looking for someone to write a powershell script that will:
-Go to Active Directory (authenticate with Domain Admin)
-Then get a list of all of the computers accounts on the domain (servers and workstations)
"These can all be split up by the way one script to do the above then another script for the below"
The 1 by 1 fire a powershell script using the domain admin account at all of the computers (one by one)
The script to fire will collect installed info App / Vendor / Version (using something like the below
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > D:\InstalledPrograms-PS.txt
This will then create a CSV file per computer on the server in a folder (source server from where the script it run from will collect everything) this is run from so that we can collect all of the installed software on the network, 1 CSV per machine is good enough.
Can it also work so that if we re-run the script and there is already a CSV file for a particular computer name in it computer01.csv it wont try and collect the information again, however if i delete the CSV file the script will realise we dont hold a CSV file for that computer01 and then re-run. This gives me the ability to run at different times of the day to get as many as possible.
No chancers please you have to know powershell well and AD.
Regards
Terry
-Go to Active Directory (authenticate with Domain Admin)
-Then get a list of all of the computers accounts on the domain (servers and workstations)
"These can all be split up by the way one script to do the above then another script for the below"
The 1 by 1 fire a powershell script using the domain admin account at all of the computers (one by one)
The script to fire will collect installed info App / Vendor / Version (using something like the below
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > D:\InstalledPrograms-PS.txt
This will then create a CSV file per computer on the server in a folder (source server from where the script it run from will collect everything) this is run from so that we can collect all of the installed software on the network, 1 CSV per machine is good enough.
Can it also work so that if we re-run the script and there is already a CSV file for a particular computer name in it computer01.csv it wont try and collect the information again, however if i delete the CSV file the script will realise we dont hold a CSV file for that computer01 and then re-run. This gives me the ability to run at different times of the day to get as many as possible.
No chancers please you have to know powershell well and AD.
Regards
Terry
Terry L.
97% (23)Projects Completed
26
Freelancers worked with
27
Projects awarded
34%
Last project
8 Feb 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies