I am working on a program for my company that requires an check function on the user's username, which requires the AD module to be installed ONLY when the program is opened. It works fine on my PC, but I am an admin and I run Windows 10. The rest of my environment is Windows 7.
My code:
Import-Module "\\FileServer\common\IT\Powershell\Modules\ActiveDirectory"
The error:
Import-Module: Could not load file or assembly 'file://\\bmh01-fs03\common\IT\Powershell\Modules\ActiveDirectory\Microsoft.ActiveDirectory.Management' or one of its dependencies. The ststem cannot find the file specified.
Is it something within the AD module? And why does it work on my PC and not a users?
[adsi]stuff is on win7 systems. it is on mine. if you only need that one user validation test, then the[adsi]calls otta be able to handle the job.