+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
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. ...
  1. #1

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    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

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Did you put the batch file with the .exe? What happens when you run it manually?

  3. #3

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Yes i have put tcuted he bat file with the exe. when i run the bat file maually it executed fine.

  4. #4

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Yes i have put the exe in the bat file, and when run manually it executed fine.

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Did you check the path in the group policy.

    Try creating a new policy just for this script and see what happens

  6. #6

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    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.

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Is the computer directly in that OU or is it in a sub OU?

    Is there anything in the event log on the client.

  8. #8

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Yes the computer is directly in the OU that the policy is linked to

  9. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    have you tried a GP result and what does the event log say?

  10. #10

    Join Date
    Jan 2009
    Location
    England
    Posts
    37
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Will try GP Result and check the logs tomorrow and let you know.
    Thanks for all your help so far.

  11. #11

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    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.

  12. #12
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    42
    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....

  13. #13

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Quote Originally Posted by Michael View Post
    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?

  14. #14

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    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.

  15. Thanks to Michael from:

    actech (23rd May 2009)

  16. #15

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    19

  17. Thanks to NeoPlosive from:

    mullet_man (31st May 2009)



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. DelProf not deleting all profiles issue!
    By mmoseley in forum Windows
    Replies: 7
    Last Post: 19th October 2008, 11:37 PM
  2. delprof all stations
    By choran in forum Windows
    Replies: 1
    Last Post: 19th November 2007, 01:55 PM
  3. delprof broke java HELP
    By spacemanvic in forum Windows
    Replies: 7
    Last Post: 14th December 2006, 11:58 PM
  4. Replies: 17
    Last Post: 14th December 2006, 02:52 PM
  5. Delprof... is it necessary?
    By _Bat_ in forum Windows
    Replies: 6
    Last Post: 8th September 2006, 06: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
  •