Running rmdir as a SMSTSPostAction not working

Hi,

I have a folder that causes the error "The User Profile Service failed the logon". I have narrowed it down and figured out what the folder is, C:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files\SQM .  This folder is created by IE 11 IEAK (the install I have customized for deployment). 

I am trying to run the SMSTSPostAction With the Value:

cmd.exe /c "rmdir "c:\users\default\appdata\local\microsoft\windows\temporary internet files\SQM" /S /Q"

I checked the logs, there is no error, but it doesn't actually delete this folder. Am I running the command improperly?

Any help is appreciated! 


September 8th, 2015 5:05pm

My guess is that there are files in that folder that are "in use" by applications. That is why rmdir is unable to delete them and the folder.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 5:12pm

Have you tried doing this within the TS itself as the say the very last step?
September 8th, 2015 6:28pm

Kerwin - Wouldn't the logs throw me an error if that were the case? (maybe not, I don't know, that's why I am asking). I can delete the folder no problem manually, I don't see why it might be in use during a task sequence anyway (there is 1 file, related to IE). 

Jason - Yeah, this is the last step, after a restart to finalize the IE install.

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 9:16am

Try a script to delete the file in that directory.  See here: https://sccmentor.wordpress.com/2013/05/13/the-user-profile-service-service-failed-the-logon/

Jeff

September 9th, 2015 9:47am

Jason - Yeah, this is the last step, after a restart to finalize the IE install.

I thought you said you are setting the post action variable? I mean, actually perform the delete during the TS. There's no reason you have to use the post action variable to simply delete a file. In this case also, that file really needs to be deleted before any users actually log on also which is not necessarily happening using the post ac
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:13am

The logs won't show any results for the TS Post Action. The TS engine simply runs that command-line and does not monitor it.

One more thing, I think your quotes are wrong. Try removing the outermost quotes.

cmd.exe /c rmdir "c:\users\default\appdata\local\microsoft\windows\temporary internet files\SQM" /S /Q

September 9th, 2015 2:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics