Solved

Add .reg file to startup script

Posted on 2010-11-17
18
1,199 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
Technology Partners: 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 500 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

739 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