Hallo zusammen,
Folgendes Problem:
Auf einer PowerShell-Konsole kann ich Get-ADUser aufrufen und bekomme ein Ergebnis. Das ActiveDirectory-Module ist also installiert.
Mein C#-WebService, der einen Runspace auf denselben Server öffnet, findet das CmdLet Get-ADUser nicht:
The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct
Andere CmdLets wie z.B. Get-Mailbox findet er allerdings.
Tipps? Muss ich eine activedirectory.dll? einbinden?
Ich komme eher aus der Java-Ecke und bin (noch) nicht so vertraut mit C#.
Vorab Danke für Ideen.