Search found 8194 matches

by Alexander Riedel
Tue Feb 07, 2023 9:52 am
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

Most likely it is the same cause as for some other .NET framework and Windows Forms problems. There was a recent update that broke some things. It is not too far fetched that it also affected Windows PowerShell in some areas, since that is based on .NET framework. We are still investigating exactly ...
by Alexander Riedel
Tue Feb 07, 2023 8:58 am
Forum: PowerShell Studio
Topic: Code no longer works when packaged as an exe (but did used to, and hasn't changed)
Replies: 3
Views: 541

Re: Code no longer works when packaged as an exe (but did used to, and hasn't changed)

Yes, that's the one I meant. That did break a few .NET things. Can you please create a code snippet that illustrates the problem, without any real user IDs and post that here with the exact same settings you have in the original project? If you do not want to post it here, you can use this link for ...
by Alexander Riedel
Mon Feb 06, 2023 12:16 pm
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

There must be something else at play here, because any combination I try here works just fine. I would venture a guess that you might need to remove the AD module BEFORE you import the Exchange module, but in a script that runs in PowerShell Studio, the remove is not necessary. PowerShell Studio ALW...
by Alexander Riedel
Mon Feb 06, 2023 9:07 am
Forum: PowerShell Studio
Topic: Powershell command not work when compiled
Replies: 13
Views: 2280

Re: Powershell command not work when compiled

From your description you are launching the executable from a user folder (like 'My Documents') and the elevate to admin. That will make the user folder invalid. Start-process the tries to use the current folder as current directory but has no rights to access it. In general you should never place a...
by Alexander Riedel
Sun Feb 05, 2023 1:40 pm
Forum: Customer Service
Topic: Incorrect message: subscription has expired
Replies: 2
Views: 515

Re: Incorrect message: subscription has expired

I was informed by our store support staff that the credit card charge for your ongoing subscription was denied. The full error reported is: Payment failed because of incorrect card number. Tell the customer to try again with the correct number. If that doesn't work, they should contact their issuing...
by Alexander Riedel
Sun Feb 05, 2023 11:49 am
Forum: Customer Service
Topic: Incorrect message: subscription has expired
Replies: 2
Views: 515

Re: Incorrect message: subscription has expired

Please send the subscription key you are using to sales@sapien.com for evaluation. Please do NOT post it here.
by Alexander Riedel
Fri Feb 03, 2023 1:36 pm
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

If you feel adventurous, replace the PowerShellDebuggerV5.dll here: C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2023\Debugger64 with the one in the attached zip file for a test. No promises. And make sure you backup the original so you can restore that. Let me know if that makes any ...
by Alexander Riedel
Fri Feb 03, 2023 1:19 pm
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

As you can see here, with the sample code you provided it seems to operate.
Of course I do not have an actual AD server running here.
2023-02-03_13-17-04.png
2023-02-03_13-17-04.png (315.58 KiB) Viewed 417 times
by Alexander Riedel
Fri Feb 03, 2023 1:15 pm
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

I have checked around with the debugger in our interface and hosting code and when you select STA all threads that we create are single threaded apartment.
You may get some more information asking Microsoft to investigate why these two modules can have this interaction.
by Alexander Riedel
Fri Feb 03, 2023 12:26 pm
Forum: PowerShell Studio
Topic: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023
Replies: 17
Views: 1212

Re: EXOV3 and ActiveDirectory modules Non-Thread STA issue in PS5.1 and PSS 2023

Ok, here are a few things I would try. You may have done that already, but here it goes. - Reboot. This is a silly one, but COM objects do stick around. Only to be sure is to reboot. - If you use the ISE for testing, restart it every single time. It reuses the runspace so you do not get accurate res...