+ Post New Thread
Results 1 to 6 of 6
Windows Thread, Trying to delete a reg key in XP but /f still ass for confirmation in Technical; As per the title, trying to delete a reg key even though I am using /f it is still asking ...
  1. #1
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,092
    Thank Post
    116
    Thanked 70 Times in 48 Posts
    Rep Power
    56

    Trying to delete a reg key in XP but /f still ass for confirmation

    As per the title, trying to delete a reg key even though I am using /f it is still asking for confirmation.

    Script
    Code:
    reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\" /va /f
    Can anyone shed any light as to why it is asking for confirmation?

  2. #2


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,754
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    Which value are you trying to delete? Surely not everything under \Print?

  3. #3

    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 just need to put a minus sign in front of the registry entry you wish to delete (in your code). You should be able to set this as a startup script.

    Alternatively you can use GPP with 2008 R2 Server and XP clients.

  4. #4
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,092
    Thank Post
    116
    Thanked 70 Times in 48 Posts
    Rep Power
    56
    Quote Originally Posted by Arthur View Post
    Which value are you trying to delete? Surely not everything under \Print?
    Yes, our print script puts the printers back in, I have some legacy printers stuck in the registry which show up as ghost printers.

  5. #5
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,092
    Thank Post
    116
    Thanked 70 Times in 48 Posts
    Rep Power
    56
    Went with this in the end which works:

    Code:
    echo Y | reg DELETE "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\Support\" /v test

    Thanks for the responses

  6. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,754
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    @Disease. FWIW, this is the correct syntax...

    Code:
    reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print" /f

SHARE:
+ Post New Thread

Similar Threads

  1. [OPEN] Bug/Error: Trying to delete a draft blog post
    By Norphy in forum EduGeek.net Site Problems
    Replies: 0
    Last Post: 8th November 2012, 10:24 AM
  2. trying to get xp to deploy in english not yank
    By sted in forum O/S Deployment
    Replies: 2
    Last Post: 15th July 2011, 09:32 PM
  3. Former 6th former trying to get IT technician post in East Devon
    By Aizen-sama in forum Educational IT Jobs
    Replies: 6
    Last Post: 12th January 2009, 05:41 PM
  4. Replies: 3
    Last Post: 25th September 2006, 12:27 PM
  5. Replies: 3
    Last Post: 16th February 2006, 12:36 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
  •