I'm trying to install a msi
file using PsExec from a network path but I get an error saying The system can't find that path specified.
I'm not sure why it's happening – if there's an error in my code or what the problem is. You can see that .bat
file code, the properties with location of the file that causing the error as well as the error in the screenshot below.
So what I'm asking is: why is this not working? (I have checked my permissions and they're all fine.)
Best Answer
If you check the error in the console open by psexec you can see that UNC paths are not supported...
so... you cannot use paths like \...
Just map a drive to the share you want to use... then invoke the *.msi from the mapped drive... et voilá!!! c'est fini!!!
instead of : "psexec \\\.msi" map the drive to the path : net use \\ x: /user: then use : "psexec x:\.msi"