Why "net use * /delete" does not work but waits for confirmation in my PowerShell script?
Try this:
net use * /delete /y
The /y
key makes it select Yes in prompt silently
Try this:
net use * /delete /y
The /y
key makes it select Yes in prompt silently