I am using the following command to disconnect a mapped drive:
net use * /d
Continuing will cancel the connections.
Do you want to continue this operation? (Y/N) [N]:
I am prompted as above:
I want the choice of Y to be applied automatically
I tried the command echo Y|net use * /d
But I am not succeeded.
Need help how to pass Y for the above command so that it should not prompt the user to provide Y or N. Thanks