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 ...
6th March 2013, 11:27 AM #1
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.
Can anyone shed any light as to why it is asking for confirmation?
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\" /va /f
7th March 2013, 09:13 AM #2
Which value are you trying to delete? Surely not everything under \Print?
7th March 2013, 09:17 AM #3
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.
12th March 2013, 01:06 PM #4
Yes, our print script puts the printers back in, I have some legacy printers stuck in the registry which show up as ghost printers.
Originally Posted by Arthur
12th March 2013, 01:50 PM #5
Went with this in the end which works:
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
12th March 2013, 06:37 PM #6
@Disease. FWIW, this is the correct syntax...
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print" /f
By Norphy in forum EduGeek.net Site Problems
Last Post: 8th November 2012, 10:24 AM
By sted in forum O/S Deployment
Last Post: 15th July 2011, 09:32 PM
By Aizen-sama in forum Educational IT Jobs
Last Post: 12th January 2009, 05:41 PM
By OutToLunch in forum Scripts
Last Post: 25th September 2006, 12:27 PM
By MartinDixon in forum Windows
Last Post: 16th February 2006, 12:36 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)