I have a batch script which I am trying to open a file (powershell script on a network location). If I put the path as a local c:\test.ps1 it works fine but I cant seem to get it to work with the network file structure.
@echo off
(set/p adminuser=Enter Your Admin Account: )
runas /user:%userdomain%\%adminuser% "powershell "\\Server\share$\IT Support\Test\Test Share\test.ps1""
Any ideas?
Thanks.