Disease Posted March 6, 2013 Posted March 6, 2013 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?
Arthur Posted March 7, 2013 Posted March 7, 2013 Which value are you trying to delete? Surely not everything under \Print?
Michael Posted March 7, 2013 Posted March 7, 2013 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.
Disease Posted March 12, 2013 Author Posted March 12, 2013 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.
Disease Posted March 12, 2013 Author Posted March 12, 2013 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
Arthur Posted March 12, 2013 Posted March 12, 2013 @Disease. FWIW, this is the correct syntax... reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print" /f
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now