Revert "Add PowerShell exception handling and turn on strict mode."

This commit is contained in:
James Cammarata 2015-08-23 21:09:16 -04:00
parent 3aedc0bca9
commit db65503778
9 changed files with 22 additions and 286 deletions

View file

@ -167,7 +167,7 @@ class Connection(ConnectionBase):
elif '-EncodedCommand' not in cmd_parts:
script = ' '.join(cmd_parts)
if script:
cmd_parts = self._shell._encode_script(script, as_list=True, strict_mode=False)
cmd_parts = self._shell._encode_script(script, as_list=True)
if '-EncodedCommand' in cmd_parts:
encoded_cmd = cmd_parts[cmd_parts.index('-EncodedCommand') + 1]
decoded_cmd = to_unicode(base64.b64decode(encoded_cmd))