Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add .reg file to startup script

Posted on 2010-11-17
18
Medium Priority
?
1,203 Views
Last Modified: 2012-05-10
I have a .reg file that deletes the Adobe Reader history in the registry.

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cRecentFiles]


I want to get this to run silently at startup or through a login script.  It needs to be pushed out to 200 computers.
0
Comment
Question by:drgleockler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 9
18 Comments
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34154755
Create a batch file and use "reg delete HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cRecentFiles"
0
 

Author Comment

by:drgleockler
ID: 34154893
Will this prompt the user?
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34154899
Not if you add a "/f". This will force the deletion without prompt.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:drgleockler
ID: 34154962
The batch file doesn't remove the registry key. The .reg file does.
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155026
Are you wanting to delete all files under that key or just a select few?
0
 

Author Comment

by:drgleockler
ID: 34155045
All the keys....As Adobe documents are viewed it adds a c1, c2 etc. I need the whole cRecentFiles deleted.  As more PDF's are viewed it recreates the file.  Thats why I need to remove it at logoff.  Security reasons for shared PC's
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155090
Create this as a batch file and set it to run at user login. It will silently delete all subkeys under cRecentFiles.

reg delete "HKCU\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cRecentFiles" /va /f
0
 

Author Comment

by:drgleockler
ID: 34155155
Still not working? Could it be some sort of syntax issue?  I'm trying to just run the bat file to test.  The reg file still works fine.
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155256
If you open up command prompt and paste that line exactly, what do you see?
0
 

Author Comment

by:drgleockler
ID: 34155333
It says operation completed successfully. But if I go to regedit the key is still there.
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155343
But all of the sub keys are gone.

You can test this by manually creating a few fake string values under that key
0
 

Author Comment

by:drgleockler
ID: 34155365
No the subkeys are there. If I open up Adobe I can view the document history.  We're trying to clear Adobe document history because our paystubs are PDFs. If someone opens up their paystub on a shared PC, they can go back to previously viewed documents.

I need this batch file to delete the cRecentFiles entry.

Sorry to be a pain...
0
 
LVL 22

Accepted Solution

by:
Joseph Moody earned 2000 total points
ID: 34155379
reg delete "HKCU\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cRecentFiles" /f

Use the line above and let me know if it works.
0
 

Author Comment

by:drgleockler
ID: 34155413
It worked that time...Not sure what I was missing before.

Thank you!
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155429
No problem. The /va command kept the subkey. Make sure that deleting that entire key doesn't cause any problems with Adobe Reader crashing.
0
 

Author Comment

by:drgleockler
ID: 34155458
Hasn't so far....as soon as you open a PDF it just recreates the key.

Thanks again!
0
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 34155461
No problem at all!
0
 

Author Closing Comment

by:drgleockler
ID: 34155466
Kudos to Jmoody10 for sticking with me on this problem!
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A hard and fast method for reducing Active Directory Administrators members.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question