I am looking to delete the Outlook profile for my users inside a script. Can this be done? The script will be a DOS one, but I can have it call a VBS if necessary.
Well, you'd have to read in the profile names, which are in the registry. Then you'd have to figure out which ones you wanted to delete. You'd have to delete the respective registry keys. You'd also have to figure out any associated .pst and .ost files, nickname files, exported rules, and other files that could be laying around, as those would need to be deleted as well.
Probably not that easy in "DOS". Dunno why you're attempting to use that. vbs seems like it would be a better fit for ANYTHING these days.
Pat RichardMVP Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
You can use delprof Microsoft to wipe old user profiles off the machine. But that's the windows profile (which would include Outlook profiles). I generally run it as part of a startup script in a GPO to kill off all unused profiles older than x days.
Pat RichardMVP Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.