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, 12:27 PM #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
IDG Tech News
7th March 2013, 10:13 AM #2
Which value are you trying to delete? Surely not everything under \Print?
7th March 2013, 10: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, 02: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, 02: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, 07: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, 11:24 AM
By sted in forum O/S Deployment
Last Post: 15th July 2011, 10:32 PM
By Aizen-sama in forum Educational IT Jobs
Last Post: 12th January 2009, 06:41 PM
By OutToLunch in forum Scripts
Last Post: 25th September 2006, 01:27 PM
By MartinDixon in forum Windows
Last Post: 16th February 2006, 01:36 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)