Page 1 of 1 1
Topic Options
#47322 - 2003-10-28 12:14 AM Profile Removal - Windows 98
Bobbler Offline
Lurker

Registered: 2003-10-27
Posts: 2
Hi there,
I wonder if someone could give me a pointer or two on getting rid of Windows 98 profiles using kix32.
I basically want to remove all user profiles except for our admin profile so that I can add some new .DEFAULT USER registry settings to lock down some thing that users shouldnt be messing with.
I have tried using the move and delete functions but because the user profile is being accessed it wont allow me to rename the profiles or delete it.
I also tried what I think may work, which was a script to create a list of the folders and run through them and it was supposed to delete only the ones not listed...
Here it is (PROFLIST is a plain text file containing the directories under c:\windows\profiles)
OPEN (1,"C:\PROFLIST.TXT",2)
$c = ReadLine(1)
$x = UCASE($c)
WHILE @ERROR = 0
SELECT
CASE $x = "ADMINISTRATOR"
? "Admin account found ... not deleting"
CASE $x = "ALL USERS"
? "All Users account found ... not deleting"
CASE $x = "IESETUP"
? "IE6 account found ... not deleting"
CASE $x = "GHOST"
? "Ghost User account found ... not deleting"
CASE 1
Open(2,"C:\PROFDEL.TXT",5)
WriteLine(2,"Removed the following profiles: " + @CRLF)
WriteLine(2,$x + @CRLF)
DEL "C:\OPROFILE\" + $x + "\*.*" /h /d
DEL "C:\WINDOWS\PROFILES\" + $x + "\*.*" /h /d
ENDSELECT
$c = ReadLine(1)
$x = UCASE($c)
LOOP
Close (1)
Close (2)

This is causing me some brainache due to each machine is going to have different user accounts on so I dont want to add specific deletions for any one of the 500 plus accounts.
Any help would be appreciated.

Top
#47323 - 2003-10-28 12:18 AM Re: Profile Removal - Windows 98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about making the restrictions in your logonscript?
this way you don't need to delete any existing profiles and you don't need listen your users get mad as their customizations are gone.
_________________________
!

download KiXnet

Top
#47324 - 2003-10-28 12:32 AM Re: Profile Removal - Windows 98
Bobbler Offline
Lurker

Registered: 2003-10-27
Posts: 2
Ah...thats exactly the point though is to get rid of the existing customisations and replace them with the "corporate" desktop as they are not supposed to be changing the settings in the first place. [Smile]
Top
#47325 - 2003-10-27 01:07 PM Re: Profile Removal - Windows 98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep, and that is exactly what you can do in your logonscript.
_________________________
!

download KiXnet

Top
#47326 - 2003-10-28 04:00 AM Re: Profile Removal - Windows 98
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You should rather upgrade to a supported OS like Windows 2000/XP, which also has better lock-down features.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.022 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