Page 1 of 1

Powershell StarwindX doesn't support current apartment

Posted: Mon Mar 26, 2018 5:53 pm
by chell
Hi

I have written a power shell script that is scheduled to run before a hyperv cluster-aware updating. The script runs correctly when I start it manually, but when the cluster-aware service runs the script I get an error StarwindX doesn't support current apartment. You need to run this script with -STA switch to use StarwindX.
Any ideas?

thanks

Re: Powershell StarwindX doesn't support current apartment

Posted: Tue Mar 27, 2018 1:32 pm
by Boris (staff)
Check this blog article. I believe it is definitely what you are trying to achieve.
https://www.starwindsoftware.com/blog/w ... e-updating