Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Persistently loaded libraries

$
0
0

Hi All,
I’ve got a few libraries that I use frequently in PowerShell, which I call/load/import using the;
[System.Reflection.Assembly]::LoadFile(‘C:\path\to\my.dll’);

Though I have to make that call each time I start PowerShell. It’s not the end of the world, but *surely* there’s a way I can configure PowerShell to load these dlls on startup? I have tried putting them into a file created to match the $profile variable, but I’m not convinced this $profile is being used (as even a simple set-location command doesn’t seem to take effect). Calling the profile as a script, however, does work.

Any advice is appreciated.


Viewing all articles
Browse latest Browse all 13067

Trending Articles