Tuesday, November 29, 2011

Powershell and JScript Issue

So I was reading PowerShell ABC's - J is for JavaScript and it talks about embedding JavaScript into a PowerShell script and thought I could write something similar.


Here is my code and for some reason it is not working.  I can execute the JavaScript in a JavaScript console and it works just fine.  Any help would be much appreciated.


EDIT: The error i was getting
Exception calling "ISODate" with "0" argument(s): "Object doesn't support this property or method"


EDIT: So apparently this throws an error on 64bit machines, I first ran this on WinXP:

Retrieving the COM class factory for component with CLSID {0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC} failed due to the following error: 80040154.

No comments:

Post a Comment