How do I pass the password to a net use command without being prompted?
Please try using:
net use H: \\MYSERVER\MYFOLDERS\Backup oasddkjkla /user:ABCCompany\JoeUser
net use w: \\myserver\fileshare /user:MyID MyPassword
If you have a space in the password you need to put it in quotes, for example:
net use w: \\myserver\fileshare /user:"tom jone" "go to it"