L
lforbes
Hi,
I run a Windows 2003 Domain with hundreds of XP and 2K clients. Even
though the Logons to Cache is set to "0" and the "delete roaming
profiles on logoff" is checked, the machines are STILL caching
roaming profiles.
Most of the time it is just the Application Data folder but often it
is the entire profile. The XP machines are the worst offenders.
I have thousands of users logging onto different machines all the time
so I am accumulating hundreds of profile folders in the Documents and
Settings folders on the machines. All I want there are Administrator,
All Users, Default User, LocalService and NetworkService.
I wanted to create startup batch file to delete them but it doesn’t
seem that the Command line does such a thing.
RMDIR works only if I specifiy the exact directory name. Eg. a*.*
doesn’t work.
I thought I could Move the directories into another directory and
delete that, BUT the Move Command only moves files.
Does anyone know of a vbscript or any trick to delete all BUT the
Administrator, All Users, Default User, LocalService and
NetworkService Profile Folders.
Cheers,
Lara
PS. The Reason I don’t want cached credentials is my users have
mandatory profiles with lots of Group Policies. If a profile is
cached, it will allow logon even if the Domain is not available and
"therefore" the Group Policies don’t apply.
I run a Windows 2003 Domain with hundreds of XP and 2K clients. Even
though the Logons to Cache is set to "0" and the "delete roaming
profiles on logoff" is checked, the machines are STILL caching
roaming profiles.
Most of the time it is just the Application Data folder but often it
is the entire profile. The XP machines are the worst offenders.
I have thousands of users logging onto different machines all the time
so I am accumulating hundreds of profile folders in the Documents and
Settings folders on the machines. All I want there are Administrator,
All Users, Default User, LocalService and NetworkService.
I wanted to create startup batch file to delete them but it doesn’t
seem that the Command line does such a thing.
RMDIR works only if I specifiy the exact directory name. Eg. a*.*
doesn’t work.
I thought I could Move the directories into another directory and
delete that, BUT the Move Command only moves files.
Does anyone know of a vbscript or any trick to delete all BUT the
Administrator, All Users, Default User, LocalService and
NetworkService Profile Folders.
Cheers,
Lara
PS. The Reason I don’t want cached credentials is my users have
mandatory profiles with lots of Group Policies. If a profile is
cached, it will allow logon even if the Domain is not available and
"therefore" the Group Policies don’t apply.