Solved

Add .reg file to startup script

Posted on 2010-11-17
18
1,192 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
  • 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
 

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

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 to another domain controller. Log onto the new domain controller with a user account t…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now