Jump to content

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


Recommended Posts

Posted

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

 

Script


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

 

Can anyone shed any light as to why it is asking for confirmation?

Posted

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.

Posted
Which value are you trying to delete? Surely not everything under \Print? :confused:

 

Yes, our print script puts the printers back in, I have some legacy printers stuck in the registry which show up as ghost printers.

Posted

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 :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...