Add -ExecutionPolicy Unrestricted back, was removed by #9602.

This commit is contained in:
Chris Church 2015-04-09 13:29:38 -04:00 committed by Brian Coca
parent 1cbc45700e
commit a7a218349a

View file

@ -57,7 +57,7 @@ def _build_file_cmd(cmd_parts, quote_args=True):
'''Build command line to run a file, given list of file name plus args.'''
if quote_args:
cmd_parts = ['"%s"' % x for x in cmd_parts]
return ' '.join(['&'] + cmd_parts)
return ' '.join(_common_args + ['-ExecutionPolicy', 'Unrestricted', '-File'] + cmd_parts)
class ShellModule(object):