|
Re: how to start a written script
"Jens Diekers" <JensDiekers@discussions.microsoft.com> wrote in message
news:6951874B-719C-4BB0-9D23-185FDB53245D@microsoft.com...
> Hello again,
>
> i hope i don't have a stupid question. Look, when i will start a written
> .ps1 script from the commandline (in this context: powershell.exe -noexit
> &"c:\tmp\script.ps1"), the powershell starts, but the script won't
> execute. i
> have also set the executionpolicy to unrestricted. Where is the trick?
>
> Thanks for your support...
The '&' should be inside the double quotes eg
powershell.exe -noexit "& 'c:\tmp\script.ps1'"
--
Jon |