I am trying to run the cmd-script startup task in the role of Windows Azure.
These are the two lines of the script command file:
powershell $command = "set-executionpolicy Unrestricted" powershell $command = ".\setupAgent.ps1" -NonInteractive >; out.txt
Now the problem is that I get an error message from the shell saying:
D:\Users\UserAccount>powershell $command = "set-executionpolicy Unrestricted" 'powershell' is not recognized as an internal or external command, operable program or batch file.
It seems like some kind of different code pages are used or something related to this because these special characters are not in my cmd file. The cmd file was created in Windows 8 through VS 2012 Ultimate.
Do you have an idea how I can fire special characters at the beginning of a command there? If I copy the command from the cmd file to the console through the remote desktop, it works fine!
sebastian87
source share