Summary: Easily find the Windows PowerShell ApartmentState.
Image may be NSFW.
Clik here to view. How can I easily find the Windows PowerShell ApartmentState?
Image may be NSFW.
Clik here to view. Use the $host automatic variable, and select the ApartmentState property from the RunSpace object, as shown here.
PS C:\> $Host.RunSpace.ApartmentState
STA
Image may be NSFW.
Clik here to view.
Clik here to view.
