Search

Index

Revindex Task Scheduler

Load assemblies (PowerShell)

Last updated on 2015-04-17 1 mins. to read

To load additional assemblies in PowerShell, you can use the following approach:

[Reflection.Assembly]::LoadFile("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll") | out-null 

$connectionString = [System.Configuration.ConfigurationManager]::ConnectionStrings["SiteSqlServer"]

Comments


Powered by Revindex Wiki