Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I am trying to run a Windows PowerShell script to auto-create a document within our Windchill system (we are running Windchill 10.1 M050), but I am having difficulty getting the script to run properly. I get errors saying that it cannot run the Java executable. Is this a permissions issue? What permissions are needed for a server to run scripts on a different server like this? Below is a copy of the PowerShell script that I am using (for the server-to-server communication, I replaced the drive letter with the shared server directories) -- it works when running within PowerShell on the Windchill server itself but won't work when trying to run from an external server.
D:\ptc\Windchill_10.0\Windchill\bin\windchill wt.load.LoadFromFile -d D:\partnumberimports\TEST1234DOC.xml -u [username] -p [password] -CONT_PATH "/wt.inf.container.OrgContainer=IntelliServ/wt.inf.library.WTLibrary=_AvailableForUse_1"