+ Post New Thread
Page 5 of 6 FirstFirst 123456 LastLast
Results 61 to 75 of 76
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 ...
  1. #61

    Join Date
    Jul 2010
    Location
    Ava
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Two Groups. Teachers and students.

    Quote Originally Posted by ajbritton View Post
    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

  2. IDG Tech News

  3. #62

    Join Date
    Sep 2009
    Location
    Elkton, Maryland
    Posts
    13
    Thank Post
    0
    Thanked 6 Times in 1 Post
    Rep Power
    7
    Quote Originally Posted by rvdmast View Post
    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!!!

  4. #63

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    7,035
    Thank Post
    1,157
    Thanked 1,144 Times in 863 Posts
    Rep Power
    388
    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.

  5. #64

    Join Date
    Sep 2009
    Location
    Elkton, Maryland
    Posts
    13
    Thank Post
    0
    Thanked 6 Times in 1 Post
    Rep Power
    7
    Quote Originally Posted by elsiegee40 View Post
    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.

  6. #65

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    7,035
    Thank Post
    1,157
    Thanked 1,144 Times in 863 Posts
    Rep Power
    388
    Quote Originally Posted by LinuxGold View Post
    They are STUDENTS -- no roaming profile for them to save bandwidth. Thanks for the caution.
    I've got in on my students as well

  7. #66

    Join Date
    Sep 2009
    Location
    Elkton, Maryland
    Posts
    13
    Thank Post
    0
    Thanked 6 Times in 1 Post
    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.

  8. #67

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    7,035
    Thank Post
    1,157
    Thanked 1,144 Times in 863 Posts
    Rep Power
    388
    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!

  9. #68

    Join Date
    Mar 2010
    Location
    Leeds
    Posts
    153
    Thank Post
    9
    Thanked 24 Times in 22 Posts
    Rep Power
    9
    This worked a treat thank you very much.

  10. #69

    Join Date
    Dec 2010
    Location
    Ellensburg, WA
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Behuck View Post
    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.

  11. #70
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,206
    Thank Post
    19
    Thanked 129 Times in 125 Posts
    Rep Power
    41
    HI

    Just be careful and dont apply the script to laptops and machines with local profiles or you will not be popular.

    Richard

  12. #71
    OND
    OND is offline

    Join Date
    Jan 2012
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by elsiegee40 View Post
    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.

  13. #72
    36Degrees's Avatar
    Join Date
    Jan 2010
    Location
    Nottingham
    Posts
    884
    Thank Post
    109
    Thanked 115 Times in 100 Posts
    Rep Power
    40
    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.

  14. #73
    OND
    OND is offline

    Join Date
    Jan 2012
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by 36Degrees View Post
    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.

  15. #74
    36Degrees's Avatar
    Join Date
    Jan 2010
    Location
    Nottingham
    Posts
    884
    Thank Post
    109
    Thanked 115 Times in 100 Posts
    Rep Power
    40
    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.

  16. #75
    OND
    OND is offline

    Join Date
    Jan 2012
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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:
+ Post New Thread
Page 5 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Replies: 8
    Last Post: 17th November 2007, 10:04 PM
  2. need a script to delete shortcuts
    By philtomo-25 in forum Scripts
    Replies: 2
    Last Post: 1st November 2007, 04:50 PM
  3. Delete Profile on LogOff
    By roland in forum How do you do....it?
    Replies: 11
    Last Post: 20th September 2007, 09:43 PM
  4. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 10
    Last Post: 13th June 2007, 03:51 PM
  5. Script to delete printer
    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
  •