Why “net use * /delete” does not work but waits for confirmation in my PowerShell script? July 10, 2023 by Tarik Try this: net use * /delete /y The /y key makes it select Yes in prompt silently