How do I add to the list of .NET assemblies that are loaded at start up in PowerShell?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re on PowerShell 2.0 use the Add-Type cmdlet to add the assemblies e.g.:
You can use the AssemblyName parameter to add one of the standard .NET assemblies. If you have your own custom assemblies that you want to always load use the -Path parameter e.g.:
Invoke the Add-Type cmdlet from your profile to make sure the .NET types contained in the added assemblies are always available in your PowerShell sessions. For more info on profiles execute: