XP Need help with batch script to delete files from Crypto\RSA\S-1-5-18 folder

MrValentine

[H]ard|Gawd
Joined
Jul 5, 2004
Messages
1,798
OK first look at this MS kb.
http://support.microsoft.com/kb/822904
Look at step 4 of the Workaround. Try it on a XP SP3 fully patched box.
I cant even list the files at command line with DIR. (File not found)

The only way I can delete the file is to do so using explorer, and it does fix the orginal issue just like the kb says it should.
Anyone got any ideas? I have a few hundred machines to run this on, and doing it manually in the gui is not an option.
 
What's the issue? From the looks of it VSS is broke. I doubt the soulution you've listed is a fix since you won't be running DCpromo on a XP workstation. There's quite a few ways to rebuild your snapshot writers from scratch if they are broken.

Check this link out as it may pertain to your problem.

http://support.microsoft.com/kb/940184
 
I see what the issue is... the file resides in a system protected folder

create a batch file and copy everything\paste into batch file below the line you should be able to have the batch script run after log on.

_______________________________________________________________________

@echo off
net stop schedule
attrib -a -s "C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\S-1-5-18\d42*"
del "C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\S-1-5-18\d42*"
net start schedule
exit
 
Last edited:
@echo off
net stop schedule
attrib -a -s "C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\S-1-5-18\d42*"
del "C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\S-1-5-18\d42*"
net start schedule
exit

Worked like a champ!!! Thanks tmillszero1!!!

I added a couple lines at the end to delete and re-add my scheduled task!! Now to get on lansweeper and pull a list of PC's that havent run it in a week, and run this batch on them!!!
 
Back
Top