+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 48
Learning Network Manager Thread, User has no icons in Technical; I have a .vbs that runs at startup will post it tommorow when I get in, I looked at delprof.exe ...
  1. #16
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    I have a .vbs that runs at startup will post it tommorow when I get in, I looked at delprof.exe but for whatever reason decided to go for the .vbs file.

    You will have to remove it on all the machines she logged onto whilst this has been effecting her... sucks I know.

    With students we used to just clear it off there current machine and hope they don't logon to another machine that is carrying the bad profile, which if they reported it stright away should only be the current machine...

  2. Thanks to mossj from:

    Little-Miss (16th September 2009)

  3. #17

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    Right, i emptied her profile on the server, and removed her profile from one of the affected computers and it now works so i suspect it was a corrupt profile.

    So then, if i find a script to remove profiles this will help to stop this happening?

  4. #18

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    10,702
    Thank Post
    1,784
    Thanked 2,169 Times in 1,604 Posts
    Rep Power
    769
    Quote Originally Posted by Little-Miss View Post
    Right, i emptied her profile on the server, and removed her profile from one of the affected computers and it now works so i suspect it was a corrupt profile.

    So then, if i find a script to remove profiles this will help to stop this happening?
    Using delprof.exe or whatever will clear things down on a regular basis and make your life easier when fixing this problem - you will still need to check the profile has been deleted on the local machine, but not all the local machines.

    However, as far as prevention is concerned, it boils down to educating your users to logoff and crossing your fingers that it doesn't 'just happen' (it got me this morning )

    Another tip:

    When sorting out the profile on the server, don't just delete the corrupt one.

    Rename it to OLD or whatever.
    Get the user has logged on (which creates a new profile) and then log off (and the profile is saved back to the server).
    You can then copy favourites over from the stuffed profile to the new and any extra desktop icons... you may redirect both, in which case you don't need to do this before deleting the corrupt profile. users like this!

  5. Thanks to elsiegee40 from:

    Little-Miss (16th September 2009)

  6. #19
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    cleanprofile.vbs
    Code:
    ON ERROR RESUME NEXT	
    	' Clears user profiles on computer startup	
    	' leaves the following folders	
    	' Administrator	
    	' RM Default User	
    	' Default User	
    	' All Users	
    	' ClassMate	
    	' Reference : http://msdn2.microsoft.com/en-us/library/9kcx47hd.aspx	
    	dim oktodelete, fso, f, foldercollection	
    	set fso = CreateObject("Scripting.FileSystemObject")	
    	set f = fso.getfolder("C:\Documents and Settings")	
    	set foldercollection = f.subfolders
    	for each folder in foldercollection
    	    oktodelete = true
    	    if instr(1, folder.path, "Administrator") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "RM Default User") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "Default User") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "All Users") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "ClassMate") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "LocalService") then
    	        oktodelete = false
    	    end if
    	    if instr(1, folder.path, "NetworkService") then
    	        oktodelete = false
    	    end if
    	    if oktodelete then
    	        'wscript.echo "Deleting Folder : " & folder.path
    	        fso.deletefolder folder.path, true
    	    end if
    	next
    As a startup script, works for us and leaves the folders that we don't want it touch. It has to be a startup script because when a user logs on some of there profile files get locked for the duration that machine is on, hence you wouldn't be able to delete it after they have logged off or when shutting down.

    It won't stop it happening (I think thats an advantage of madatory profiles), but it will mean the fix is just clearing there profile on the server (ensuring there not logged on anywhere before hand)
    Last edited by mossj; 16th September 2009 at 10:48 AM.

  7. Thanks to mossj from:

    Little-Miss (16th September 2009)

  8. #20

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    Right, bear with me here. There is somewhere to put startup/shutdown scripts isnt there....where do i find it...

  9. #21
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Sorry,

    Make sure you put the .vbs in a share accessable by all (I assume it has to be all) I put mine in the netlogon share ""\\domain\netlogon"

    on your DC (I assume it has to be your dc) go to start>admin tools>gpo management

    Open up your forest , then domain, then your actual domain, then right click on group policy objects and click new.

    Enter a name for the object i.e "cleanprofiles", then find it and right click>edit

    It should open up the group policy management editor

    go to Computer config>policies>windows settings> scripts. right click on startup and go to properties.

    Click add and browse to the UNC share (don't use IP addresses (use servernames instead), it mucks it up for us)

    Ok everything and close the Group policy management editor.

    In group policy management you will need to link to the ou's of the computers you want to clean. so right click on the OU's and click 'link existing gpo'. Select the gpo and click ok.

    Open up command prompt on the server and type "gpupdate /force", if it asks you if you want to logoff users hit "n" for no.

    That should be that wait a 15 mins or so for the computers to start picking it up and you should be all good.

  10. Thanks to mossj from:

    Little-Miss (16th September 2009)

  11. #22

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    you're a star mossj!!

  12. #23

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    well that script works perfectly.

    I cant decide what to do though..i know its not a big deal, but using that script means that everytime a user logs on to a computer, maybe on they use everyday, its has to go through that whole thing with that box in the top left corner. I know that takes about 30 seconds, but i imagine it may be a little irritating...fussy i know...

  13. #24

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,109
    Thank Post
    1,367
    Thanked 2,374 Times in 1,671 Posts
    Rep Power
    703
    Can't you set it to run when they log off?

  14. Thanks to witch from:

    Little-Miss (16th September 2009)

  15. #25

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    10,702
    Thank Post
    1,784
    Thanked 2,169 Times in 1,604 Posts
    Rep Power
    769
    Trouble is many of the profiles won't delete until the machine has been rebooted, so it's better to do it on Startup (Not Logon)

  16. Thanks to elsiegee40 from:

    Little-Miss (16th September 2009)

  17. #26

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    Do yours do that everytime Elsie?

  18. #27

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    You should be EXTREMELY careful including delprof or any script based methods of deleting profiles at logoff. Remember teachers may typically logon to their laptops on the domain, and this would delete their local profile and their documents!

  19. Thanks to Michael from:

    Little-Miss (16th September 2009)

  20. #28

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    Yup, was aware of that!

    I've done it by OU, and at the mo none of the laptops are on the domain but when they are they will go into their own OU and i shall be very careful where i apply the script!!

  21. #29

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,515
    Thank Post
    2,374
    Thanked 742 Times in 455 Posts
    Blog Entries
    2
    Rep Power
    541
    Am i better doing this manually when there is a problem or what? If so that sucks

  22. #30

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    I would do it manually as and when required. I wouldn't recommend scripting it. You're then in full control.

  23. 2 Thanks to Michael:

    elsiegee40 (17th September 2009), Little-Miss (16th September 2009)

SHARE:
+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. program icons
    By shafia2009 in forum Windows Server 2000/2003
    Replies: 1
    Last Post: 16th September 2009, 10:13 PM
  2. Graphics/Icons
    By Quackers in forum Web Development
    Replies: 5
    Last Post: 19th March 2009, 12:38 PM
  3. Free Icons
    By kiran in forum Web Development
    Replies: 4
    Last Post: 5th February 2009, 11:57 AM
  4. app icons
    By mac_shinobi in forum Mac
    Replies: 1
    Last Post: 11th September 2008, 07:06 PM
  5. Networking Icons
    By StewartKnight in forum General Chat
    Replies: 6
    Last Post: 23rd October 2007, 10:54 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
  •