Calling .exe
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Calling .exe
When I hover over qwinsta, it says unknown. I've tried creating a path variable, wrapping in quotes and, used .\qwinsta but it still says unknown. In the PS ISE I can run it no problem. Is there another way I can bring it into the form? I tried copying the file into the directory where the project sits.
Re: Calling .exe
You are likely running the 32 bit PowerShell host/engine. quinsta is only available as a 64 bit tool on 64 bit platforms. Be sure you are using the "PowerShell Vx 64 bit" setting.
Re: Calling .exe
It was V5 64 Bit. I gave up and just created it as a script then packaged it as an exe for the CmdLine challenged. Thanks for taking the time to look at it.
Re: Calling .exe
If you are running a 32 bit application on a 64 bit system QWINSTA will not be available.
To access 64 bit programs from a 32 bit session we can do this:
C:\Windows\Sysnative\qwinsta.exe
To access 64 bit programs from a 32 bit session we can do this:
C:\Windows\Sysnative\qwinsta.exe