के नाम के रूप में पहचाना नहीं गया है, मैंने विंडोज 2008 सर्वर में उपयोगकर्ताओं को सूचीबद्ध करने के लिए निम्न क्वेरी का उपयोग किया है, लेकिन विफल रहा है और नीचे त्रुटि मिली है।'Get-ADUser' शब्द को cmdlet
$server='client-pc-1';$pwd= convertto-securestring 'password$' -asplaintext -
force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'Administrator',$pwd; invoke-command -computername $server -credential
$cred -scriptblock {Get-ADUser -Filter (enabled -ne $true)}
अपवाद नीचे दिया गया है ... क्या कोई इसे हल करने में मेरी सहायता कर सकता है?
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
and try again.
+ CategoryInfo : ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
संपादन '[regex] 'के लिए @ShayLevy धन्यवाद \ s'';) –
एनपी :) हालांकि मैं यह करने के लिए बदल जाएगा: प्राप्त मॉड्यूल ActiveDirectory -listavailable –
@ShayLevy हाँ, यह एक विशिष्ट जांच करने के लिए बेहतर है मॉड्यूल! मेरा इरादा उपयोगकर्ता मॉड्यूल लोड करने के बारे में जानने के लिए user1805353 की मदद करना था। –