Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 427

PowerShell Studio • Windows Forms missing assemblies

$
0
0
Product, version and build: PowerShell Studio 2024 5.8.245
Operating system: Win 11 v22H2
PowerShell version(s):5.1.22621.3672

*** Please add details and screenshots as needed below. ***
1) Create PowerShell Form (myfile.psf)
2) Click Export to File
3) Run the exported file on Server 2022 - lots of red text re: missing assemblies
4) Insert the following lines at top of exported file:

[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")

5) Script runs w/o issue

Statistics: Posted by pplummer — Wed Jun 26, 2024 2:16 pm



Viewing all articles
Browse latest Browse all 427

Trending Articles