Jump to content

Hotfix Temp folders not deleting


Recommended Posts

Posted

Hi Guys

Has anyone come across this problem before?

Basically, I am having an issue with Hotfix temp folders not being deleted after it has successfully installed. If I try and delete the folders, I get access denied. The hotfixes are installed via a domain admin service account, It seems the ACL's get screwed along the way. I have managed to find a work around by taking ownership of the folder first and then manage to delete it, but I need to automate the deletion script

The problem is because the folder names that get generated are made up out of very random characters, there is no real way to detect the folder names via a batch script or anything else for that matter???

Please see the attached pic to see what I mean..

Any help would be much appreciated!! :)

Cheers


Posted

Has anyone any ideas on this please?

I have a problem where temporary folders created by MS hotfix installations are not being deleted after an install, thus leaving a mess on the HD.

When I try to delete them, I get an access denied. This is because the ACL gets screwed at installation time and hence I need to restore the ACL using XCACLS

So, I need to do 3 things here

1) Find ALL folders as shown in the attached Pic. All these folders share the common structure of:

C:\<RANDOM File Name Created here>\sp2\update

2) Once they have been found, repermission the folder using XCACLS

3) Finally, delete the temp folder with all sub dirs

:huh:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...