Solved

Add .reg file to startup script

Posted on 2010-11-17
18
1,196 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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 …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

12 Experts available now in Live!

Get 1:1 Help Now