Selasa, 09 Desember 2014

The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program

Gue dapet tugas untuk melakukan export data user di AD gue ini ke dokumen CSV agar bisa dilakukan perbandingan dengan data lain yang sudah ada, namun setelah dicoba dengan command GET-ADUser, Gue selalu mendapat pesan kesalahan dan tampaknya command tersebut tidak ada. Selalu mendapat pesan seperti ini :



Setelah gue coba konsultasi dengan google, sepertinya modulenya belum diinstall. Langsung saja gue ikuti langkah dari forum Stackoverflow.com. And i made it, the command is work.

Here is the code.

If the ActiveDirectory module is present add
import-module activedirectory
before your code.
To check if exist try:
get-module -listavailable
ActiveDirectory module is default present in windows server 2008 R2.

Sumber : disini
Read More »