나는 다음 사용할 수 있는 사용자 목록을 쿼리하지 잡을라는데 아래의 오류 및 windows 2008년 server 했으나 실패했다.
$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
이 경우 추가 스티브디레스토리 모듈에서는
import-module activedirectory
전에 코드에.
시도하시겠습니까 여부를 확인할 수 있습니다.
get-module -listavailable
기본적으로 windows server 2008년 R2 에 존재하는 스티브디레스토리 모듈에서는 설치하는 것이 이런 식으로.
Import-Module ServerManager
Add-WindowsFeature RSAT-AD-PowerShell
할꺼이나 위해 필요한 일을 하나 이상의 DC 에 windows 2008년 과 R2 Active Directory 도메인 웹 서비스 (더스) 이 설치되어 있다.
어떻게 설치하려면 Windows Server 2008년 의 읽기 here
확인란 [here] (http://blogs.msdn.com/b/rkramesh/archive/2012/01/17/how-to-add-active-directory-module-in-powershell-in-windows-7.aspx) 를 추가하는 방법을 스티브디레스토리 모듈에서는 없는 경우 기본적으로. 이 후 어떤 시스템에서든지 수행할 수 있게 자신의 active directory 도메인 control" 액세스하려면 "; 서버.
문제를 막기 위해 오래되었는가 링크 (MSDN 블로그 사라질 수 없는 이유 없이 내가 과거에) 은 기본적으로 Windows 7 을 다운로드하여 설치해야 합니다 [원격 서버 관리 도구 (KB958830)] (http://www.microsoft.com/en-us/download/details.aspx? id = 7887). 못하며창조된 설치한 후 다음 단계:
Windows server 에디션입니다 확인 할 수 없는 경우 이미 다운로드 및 설치 하지만 [Active Directory 관리 게이트웨이형 서비스] (http://www.microsoft.com/en-us/download/details.aspx? id =, = en& 디스플레랑 2852). 이러한 경우 링크 막아야 할 수 있는 KB 문서 작업, 또는 다운로드하십시오 이름과 것들이었다고요 검색하겠습니다 여전히 합니다.
그 후, PS Active Directory 패키지로의 볼 수 있습니다.