Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Q. In a PowerShell workflow how can I load assemblies for certain actions?

$
0
0

A. In regular PowerShell assemblies can be loaded using Add-Type or [Reflection.Assembly]::LoadWithPartialName(<assembley>) however this is not legal in a PowerShell workflow. Instead you need to use a section of InlineScript and contain the assembly load and usage within it. For example:

Read More


Viewing all articles
Browse latest Browse all 6937

Trending Articles