Why not just put the batch file and DELPROF in the GPO as well? That way it's cached on the PCs and should run if disconnected.Quote:
Originally Posted by Gatt
Printable View
Why not just put the batch file and DELPROF in the GPO as well? That way it's cached on the PCs and should run if disconnected.Quote:
Originally Posted by Gatt
Pay Geoff....Pay? hehe
[PS i'm going to merge this with the exact same topic as the other one thats at the top of this board *rolls eyes*]
Nath
It's donationware. You just have to redownload it every 2 months:
Quote:
Remote Profile Cleaner is available as donationware only. The complete program is available as a Windows installer and can be downloaded from the links on the bottom of this page. Please notice that a serial number is not required to install or use Remote Profile Cleaner for non-commercial usage. Unregisterd versions will expire two months after their release date. If you choose to register your copy of Remote Profile Cleaner, a serial number is send to you as soon as we receive your minimum donation of € 45.00
Craig
"Delprof doesn't need to be copied to the client - I run it from a batch file stored in the NETLOGON share using GPO logoff script"
tried that & it doesn't work for me - batch file doesn't support UNC path & also I think user has insufficient access to run delprof - any ideas?
run it at machine startup.
I have placeed a bat file to run Delprof in NETLOGON and using GPO logoff script. I believe that it is deleting my test profile, but the logoff script runs before the "network connections" screen and then "saving your settings" screen appears, which I believe, is placing the profile right back in the "Documents and Settings" folder. How do I set the logoff script to run at the very end or how do I switch off the "save your settings" process?
you can't delete a profile that's in use.
you can't alter when logoff scripts are run within the logoff process.
D'oh - silly me - I run it at startup :oops:Quote:
Originally Posted by Geoff
The only problem I can see now is slower logon times if the computer has to create a local user profile everytime someone logs on.
The GPO setting doesnt appear to work for me?
Does anyone have a guide on how to use delprof & uphclean?
Or do i literally just wack delprof into netlogin/a share, set it as a log off script with the /q /i /r variables?
Then install the UPHClean on each workstation?
I run this batch file on startup using machine GPO. (Not log off, sorry) Have been doing it for donkeys. We have a user naming convention for all students whereby username starts with year of entry (e.g 08 this year :nerd: ) leaves the other profiles I want to keep (none student) on the PCs.
----------------
@echo off
c:
cd\documents and settings
for /f %%f IN ('dir /b 03*; dir /b 04*; dir /b 05*; dir /b 06*; dir /b 07*; dir /b 08*; dir /b 09*') DO rd /s /q %%f
-----------------
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.
Not sure what the policy is but noticed that our Windows 2008 Server/Vista systems are automatically deleting all profiles automatically (at logoff!) - bit annoying at times but great for the kids & teacher accounts and saves me having to run DELPROF at machine boot!
i use this in one of my logon scripts
just edit the excludelist to allow for profiles you wish to keep.Code:'function to delete profiles
Function Delprof()
On Error Resume Next
Dim obtainfolder
Dim Pathfinder
Dim strPath
Set fso = CreateObject("Scripting.FileSystemObject")
strPath = "C:\Documents and Settings\"
userexcludelist = "Administrator,All Users,Default User,localservice,networkservice,"
Set f = fso.GetFolder(strPath)
' Loop through all subfolders
For Each fldrItem in f.SubFolders
fldrName = fldrItem.name
If Right(strPath,1) <> "\" Then
Pathfinder = strPath & "\" & fldrName
Else
Pathfinder = strPath & fldrName
End If
If InStr(1, userexcludelist, fldrName, 1) Then
Else
set obtainfolder = fso.GetFolder(Pathfinder)
obtainfolder.Delete true
End If
Next
' Clean up objects
Set fso = Nothing
Set fc = Nothing
but the rules still apply, you cannot delete ones in use.
this seems to include all the ones used since the machine booted, not just the logged on one.
BoX