Hello,
I'm very new to Powershell/scripting in general and have found this website to be a great resource. So far my Powershelling has been limited to little one liners but I now want to challenge myself to write a proper script.
What I need to do is look up a list of PCs in AD, and then search their registries for a particular DLL under the following: HKLM:\software\microsoft\windows\currentversion\sharedDLLs.
I think I understand the steps I need to take - I will roughly outline below:
-get-conteent of list of PCs
-foreach pc do reg lookup
-Output results to a CSV file.
I'm using the following to see if the reg contains what I am looking for which seems to work:
$var1 = get-itemproperty HKLM:\software\microsoft\windows\currentversion\sharedDLLs
$var1|select C:\name.dll
I'm having real problems in understanding how I put this all together and would appreciate if someone could spare a little time to explain to me if my methodology is correct and how I would go about actually writing this.
I greatly appreciate any help that could be given.
Thanks!