portal77
(Fresh Scripter)
2004-09-23 05:02 PM
removing certain cached winnt accounts

Is this a possible scenario using kixtart? How complicated?

Previous User Removal Logon Script

Reason: After a constant build up of agents Ids on random stations due to roaming profiles, can cause multiple problems with proprietary applications.

Function: Removes c:\winnt\profiles\, besides the Administrator, All Users, and Default User folders. Basically removes all folders in the profiles sub-directory that have an “abb” prefix.




Richard H.Administrator
(KiX Supporter)
2004-09-23 05:14 PM
Re: removing certain cached winnt accounts

How about:
Code:
RMDIR /S "%USERPROFILE%\..\abb*"



portal77
(Fresh Scripter)
2004-09-23 05:17 PM
Re: removing certain cached winnt accounts

how do I specify the directory?

Sealeopard
(KiX Master)
2004-09-25 02:42 AM
Re: removing certain cached winnt accounts

The directory is being specified as "%USERPROFILE%\..\abb*". Take the current user profile, go one folder up, then delete all subfoders matching "abb*".