- I use this PowerShell script on Run Command in azure VM page. Image1
Test-NetConnection -ComputerName [name] -Port 445
Invoke-Expression -Command "cmdkey /add:[path] /user:[username] /pass:[password]
net use Y: \[path] /u:[username]
- Return success
- But when I enter the VM and found that error as below: Image2
I have no idea what wrong with that. Does anyone encounter that problem, too?
You mount drive using
net usethis has been an on going thing with Windows for a while.Check the drive letter in
Command PromptorPowershell, if the mount command was successful it should be there.