I am a complete Poweshell Newbie, may someone please help me with this ?
I have to export all members of a certain AD group into a csv File, this ps-statement should do the job:
C:\Users\xyz> Get-ADGroupMember "Accounts" | ft name,samaccountname | Export-Csv "C:\GroupMembers.csv"
But I just get that as an error :
The term 'C:\Users\xyz>' 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
At line:1 char:1
+ C:\Users\xyz> Get-ADGroupMember "Accounts" | ft name,samaccountname | Ex ...
+ CategoryInfo : ObjectNotFound: (C:\Users\xyz>:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
It seem that I need to install some more components to access ad objects ?
Thanks in Advance