Windows Thread, Script to delete profile at log off? in Technical; Originally Posted by ajbritton
I do the lot. GPO setting + UPHCLEAN + DELPROF /Q /I /R.
Would this setup ...
-
29th July 2010, 09:31 PM #61
- Rep Power
- 0
Two Groups. Teachers and students.

Originally Posted by
ajbritton
I do the lot. GPO setting + UPHCLEAN + DELPROF /Q /I /R.
Would this setup work for this scenario?
I have teachers on roaming profiles I do want them to be able to keep their profile but I want to delete profiles older than 6 months (to start).
I have Students who only use lab computers and have roaming profiles, I do not want their profiles to be saved on the local pc.
We have a AD Domain and I would like to use GPO's as much as possible. Can the UPHCLEAN.msi and the delprof be pushed out and work as I have previously stated I needed? I have not used delprof or upclean before so I am a little leary about using them
-
-
IDG Tech News
-
17th September 2010, 05:08 PM #62
- Rep Power
- 7

Originally Posted by
rvdmast
One really doesn't need to use batch files, delprof, GPO's or commercial utility's,
the answer is really simple:
make the users member of the group "Domain Guests" or the local Guests group, and their profiles will be deleted immediatly after logoff automatically.
This functionality is built-in by design.
They can still remain in the domain users group too, so it won't affect their rights.
I am ETERNALLY indebted to you!!!
-
-
17th September 2010, 05:10 PM #63 Domain Guests is great, BUT the profile is not saved back to the server if this is set. So don't do it on roaming profiles, otherwise you'll get complaints.
-
-
17th September 2010, 05:12 PM #64
- Rep Power
- 7

Originally Posted by
elsiegee40
Domain Guests is great, BUT the profile is not saved back to the server if this is set. So don't do it on roaming profiles, otherwise you'll get complaints.
They are STUDENTS -- no roaming profile for them to save bandwidth. Thanks for the caution.
-
-
17th September 2010, 05:15 PM #65 
Originally Posted by
LinuxGold
They are STUDENTS -- no roaming profile for them to save bandwidth. Thanks for the caution.
I've got in on my students as well
-
-
17th September 2010, 05:19 PM #66
- Rep Power
- 7

I've been having hard time trying to explain what "profile" means to teachers. They assign a number on laptop so student will return back to certain laptop to retrieve their files. It is a headache for them to keep up with which laptop go to whom. I need to figure out a way to explain why students have their OWN home drive, networked to a server and that students can log in ANYWHERE as long as they kept their files on H: drive. Is there any article on Internet that introduces a non-technical audience to Windows profile and how they are different to network drive? I find explaining "A-B-C" of basic computer jargons very difficult.
-
-
17th September 2010, 05:29 PM #67 As far as my teachers and students are concerned, nothing is stored on any computer and everything is stored on the servers. I demonstrate this by showing them that they can't see the C: drive in My Computer because 'it isn't there' (I know
) If the computer/laptop they are using can't talk to the servers, they can't access their files. I don't mention profiles and it's generally understood that anyone can log on anywhere... except the office because the computers there are different.
The office computers aren't different, but it keeps the office staff happy!
-
-
15th October 2010, 11:53 AM #68 This worked a treat thank you very much.
-
-
6th December 2010, 10:59 PM #69
- Rep Power
- 0

Originally Posted by
Behuck
I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile.
I have been looking for a method to do the same thing. We did not have this problem until we moved to Novell ZCM10.x.x. Prior to that change our students had volatile profiles (except grad students) and the profile was deleted at logoff. Now the system tries to delete the profile from Windows XP Pro at logoff. It deletes the registry entry but can not delete the directory. For that reason, when the student logs on next time it tries to create a new profile but because the directory already exists it makes a second profile such that a directory and profile now exists such as username, username.hostname.001, username.hostname.002. etc. Even admins are having that problem so even though their profile already exists it still tries to create another one and another one.
We do not use domains and use Novell networking as our network os. Has anyone else moved to Zen10 and run into this same problem? How were you able to delete the profile crumbs?
Thank you.
Last edited by ChrisH; 6th December 2010 at 11:44 PM.
-
-
7th February 2011, 01:28 PM #70 HI
Just be careful and dont apply the script to laptops and machines with local profiles or you will not be popular.
Richard
-
-
11th January 2012, 11:23 AM #71
- Rep Power
- 0

Originally Posted by
elsiegee40
Domain Guests is great, BUT the profile is not saved back to the server if this is set. So don't do it on roaming profiles, otherwise you'll get complaints.
Thanks for the headsup!...
Is there a way to delete all the profiles AFTER they are stored/saved on a server?
That would help me out allot!
Cheers,
OND.
-
-
11th January 2012, 01:46 PM #72 We run a startup script to clear the machine of profiles - that way they are saved to the server at log off but don't clog the machine.
-
-
11th January 2012, 01:51 PM #73
- Rep Power
- 0

Originally Posted by
36Degrees
We run a startup script to clear the machine of profiles - that way they are saved to the server at log off but don't clog the machine.
36Degrees,
Thanks for sharing that information.
Is it possible to pm/show me that script...so we can learn from it and maybe also use?
Thanks,
OND.
-
-
11th January 2012, 02:04 PM #74 No problem - pretty sure I found it on the web (here?) and amended it accordingly. Just amend as necessary where I've put notes (REM) and save as a batch file and run as a startup script.
Code:
@echo off
c:
cd\
cd "c:\Documents and Settings\" REM Path to where profiles are on the local machine
dir *.* /b /o:d > \dirs.txt
for /f "tokens=*" %%a in (\dirs.txt) do call :DelFiles "%%a"
del \dirs.txt
exit /b
:DelFiles %1
set Flag=0
if %1=="All Users" set Flag=1 REM Don't delete All Users profile
if %1=="Administrator" set Flag=1 REM Don't delete Administrator profile
if "%Flag%"=="0" (
cd %1
attrib *.* -r /s
cd..
rem change rd %1 /s /q
rem for no confirmation
rd %1 /s /q
)
Last edited by 36Degrees; 11th January 2012 at 02:08 PM.
-
-
11th January 2012, 02:09 PM #75
- Rep Power
- 0
Thank you very much!
I appreciate it very much...i will look into it and try to configure it for our use!
Thanks again!
OND.
-
SHARE:
Similar Threads
-
By FN-GM in forum Scripts
Replies: 8
Last Post: 17th November 2007, 10:04 PM
-
By philtomo-25 in forum Scripts
Replies: 2
Last Post: 1st November 2007, 04:50 PM
-
By roland in forum How do you do....it?
Replies: 11
Last Post: 20th September 2007, 09:43 PM
-
By Mr_M_Cox in forum Scripts
Replies: 10
Last Post: 13th June 2007, 03:51 PM
-
By tosca925 in forum Scripts
Replies: 2
Last Post: 31st August 2005, 07:45 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules