Windows Server 2000/2003 Thread, Delprof.exe in Technical; Hi Guys,
I want to use delprof to clean off all local profiles in C:\documents and settings on all machines. ...
-
18th May 2009, 08:14 PM #1
- Rep Power
- 0
Delprof.exe
Hi Guys,
I want to use delprof to clean off all local profiles in C:\documents and settings on all machines. So i placed delprof.exe in the netlogon share on one of the domain controllers then create a .bat file with this line \\curricsvr2\netlogon\delprof.exe /q /i. I then link the .bat file to an OU under computer configuration as a startup script. Did a gpupdate /force on the client machines, after the machines restarted the policy did not run.
Any ideas why delprof did not run? Your answers would be appreciated
Thanks
-
-
IDG Tech News
-
18th May 2009, 08:21 PM #2 Did you put the batch file with the .exe? What happens when you run it manually?
-
-
18th May 2009, 08:24 PM #3
- Rep Power
- 0
Yes i have put tcuted he bat file with the exe. when i run the bat file maually it executed fine.
-
-
18th May 2009, 08:25 PM #4
- Rep Power
- 0
Yes i have put the exe in the bat file, and when run manually it executed fine.
-
-
18th May 2009, 08:26 PM #5 Did you check the path in the group policy.
Try creating a new policy just for this script and see what happens
-
-
18th May 2009, 08:30 PM #6
- Rep Power
- 0
I have created a new policy as well as using an existing policy. It seems to recognise that the policy is there but does not do anything.
-
-
18th May 2009, 08:31 PM #7 Is the computer directly in that OU or is it in a sub OU?
Is there anything in the event log on the client.
-
-
18th May 2009, 08:37 PM #8
- Rep Power
- 0
Yes the computer is directly in the OU that the policy is linked to
-
-
18th May 2009, 08:47 PM #9 have you tried a GP result and what does the event log say?
-
-
18th May 2009, 09:12 PM #10
- Rep Power
- 0
Will try GP Result and check the logs tomorrow and let you know.
Thanks for all your help so far.
-
-
18th May 2009, 09:18 PM #11 If you enter your code into a logon script, does it run correctly? I am not 100% sure whether delprof can run at computer level.
-
-
18th May 2009, 10:38 PM #12 Turn on Displaying scripts 
I can't remember where the option is without looking...
Computer > Administrative Templates > System > Scripts
I think that's the correct path (you can also set the maximum wait time in the same branch)
There should be an option which when Enabled, shows the prompt window and what the script is currently up-to.
if nothing happens, you might have to add a pause in so you can see.....
Not 100% sure but, can delprof even be run from a network location? I rolled it out through a batch file to the C:\ drive of all the PC's and run it from there....
-
-
18th May 2009, 10:40 PM #13 
Originally Posted by
Michael
If you enter your code into a logon script, does it run correctly? I am not 100% sure whether delprof can run at computer level.
I didnt think it can run at login because some user accounts will be locked?
-
-
18th May 2009, 10:43 PM #14
I didnt think it can run at login because some user accounts will be locked?
Very true, but it'll just skip them as the files will be in use. Alternatively you could use the X number of days inactive option.
-
-
18th May 2009, 10:45 PM #15
-
Thanks to NeoPlosive from:
mullet_man (31st May 2009)
SHARE:
Similar Threads
-
By mmoseley in forum Windows
Replies: 7
Last Post: 19th October 2008, 10:37 PM
-
By choran in forum Windows
Replies: 1
Last Post: 19th November 2007, 01:55 PM
-
By spacemanvic in forum Windows
Replies: 7
Last Post: 14th December 2006, 11:58 PM
-
By Behuck in forum Windows
Replies: 17
Last Post: 14th December 2006, 02:52 PM
-
By _Bat_ in forum Windows
Replies: 6
Last Post: 8th September 2006, 05:29 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