Microsoft
Software
Hardware
Network
Question : Search list of multiple pc names, search registry for string value and delete entry
This is a follow up to the following question asked by gomeara about "Search registry for string value and delete all entries found using script or other networking tool" 02-10-09 and answered by RobSampson on 02/11/09 03:07 PM.
I am running AppMgmt in GPO and just recently a change in the Virus Protection Policy that was deployed deleted a software package off of bunch of workstations, which of course caused over a 1000+ wks to lose this application. However the Virus protection left the GPO GUID in the registry so the GPO still thinks the workstations are up to date. This is a enterprise app so i can't pull it off of all workstations to fix it. All I need it to delete the regkey under the following path:
HKLM\Software\Microsoft\Wi
ndows\Curr
entVersion
\GroupPoli
cy\AppMgmt
\{GUID-ID}
Then do a force reboot of the workstation with psshutdown or something along those lines and GPO will do a reinstall
I need this script to only run against a list of workstations in a wkslist.txt file and be able to pull a regkey value from a regkey.txt which is a secondary txt file. Of course it would be nice to see results in a logfile too.
The original post by (gomeara) is here with the code but this will not work for what I need to do.
http://www.experts-exchang
e.com/Prog
ramming/La
nguages/
Vi
sual_Basic
/VB_Script
/Q_2413162
7.html?sfQ
ueryTermIn
fo=1+10+
30
+delet+kei
+registri+
search
Any help would be greatly appreciated
Thanks in advance
Answer : Search list of multiple pc names, search registry for string value and delete entry
Sorry, change
For Each strRegKey In objRegKeys
to
For Each strRegKey In arrRegKeys
Regards,
Rob.
Random Solutions
How do I resolve this error "javax.xml.ws.WebServiceEx
ception .... Place the resource correctly in the classpath.?
Iphone could not be restored. Error 14. Again...
SharePoint 3.0 Central Administration not loading
Default parameter to max date
Cleaning tapes in Commvault
ORA-12704: character set mismatch
Black marks over the text of some PDF docs in adobe reader (like hightlights).
Forefront TMG Malware and NIS inspection updates aren't working.
JQuery accordion with TinyMce
JQuery based image (actually an element of code) rotator