Load-Module equivalient in PowerShell v1

Posted by friism on Server Fault See other posts from Server Fault or by friism
Published on 2011-01-13T21:38:57Z Indexed on 2011/01/13 21:55 UTC
Read the original article Hit count: 650

Filed under:
|

(Cross-post from Stackoverflow)

For reasons of script portability, I need to dynamically load snap-ins in a PowerShell script (ie. I don't want to actually install it). This is easily accomplished in PowerShell v2 with the Load-Module function. I need to run this particular script on a machine where I, for various reasons, do not want to install PowerShell v2, but have v1.

Is there a Load-Module equivalent in PowerShell v1?

© Server Fault or respective owner

Related posts about powershell

Related posts about powershell-v2.0