Page 1 of 1 1
Topic Options
#127003 - 2004-09-23 05:02 PM removing certain cached winnt accounts
portal77 Offline
Fresh Scripter

Registered: 2004-08-10
Posts: 9
Loc: Tampa, FL. USA
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.


_________________________
Thanks yo, p77

Top
#127004 - 2004-09-23 05:14 PM Re: removing certain cached winnt accounts
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
How about:
Code:
RMDIR /S "%USERPROFILE%\..\abb*"


Top
#127005 - 2004-09-23 05:17 PM Re: removing certain cached winnt accounts
portal77 Offline
Fresh Scripter

Registered: 2004-08-10
Posts: 9
Loc: Tampa, FL. USA
how do I specify the directory?
_________________________
Thanks yo, p77

Top
#127006 - 2004-09-25 02:42 AM Re: removing certain cached winnt accounts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
The directory is being specified as "%USERPROFILE%\..\abb*". Take the current user profile, go one folder up, then delete all subfoders matching "abb*".
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 191 anonymous users online.
Newest Members
thequeen, ameliaryan, shalomsalami, dkdssdk, Vroon
17639 Registered Users

Generated in 0.029 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org