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
Open a command prompt or from start/run type: net use \\somecomputeronmynetwork\somelocation$ /delete You can also use the following command to list “remembered” connections: net use