Are you trying to target a single users directory at logon via script or are you trying to write a script that you as an Admin can reach out and clean up ALL user profiles at once?

Each users profile directory has security applied to it.
_________________________
Home page: http://www.kixhelp.com/hb/