Differences

This shows you the differences between the selected revisions of the page.

2013-07-09 2013-09-03
cannot use relative paths (martin) execution policy (martin)
Line 15: Line 15:
<code> <code>
powershell.exe -File upload.ps1 powershell.exe -File upload.ps1
 +</code>
 +
 +Note that by default, executing PowerShell scripts is disabled. To override that, you can either lift the restriction by typing using ''[[http://technet.microsoft.com/en-us/library/hh849812.aspx|Set-ExecutionPolicy]]'' cmdlet on PowerShell administrator console((Run ''powershell.exe'' as Administrator to get PowerShell console)):
 +
 +<code powershell>
 +Set-ExecutionPolicy Unrestricted
 +</code>
 +
 +or use ''-ExecutionPolicy'' argument for every script run:
 +
 +<code>
 +powershell.exe -ExecutionPolicy Unrestricted -File upload.ps1
</code> </code>

Last modified: by martin