Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

The term 'Get-ADUser' is not recognized ... in C#-WebService aber wird auf PS-Konsole gefunden

$
0
0

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.



Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>