Admin Script Editor Script Packager Powershell ActiveDirectory Module
10/07/2015 2293 views
I need to package a PS script as an EXE. The script calls the ActiveDirectory Module.
Works fine as a script. Every time. But when I package it and execute it I get:
Maybe I'm wrong, but my only explanation for that is that the ActiveDirectory Module must not be loading. So I tried specifically launching PS with Arguments -noexit -command import-module ActiveDirectory but no luck. Tried putting the Arguments in quotes but no luck there either.
Any help here would be much appreciated!