Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Power shell command not working in Power shell ISE

$
0
0

I was looking for guidance on a problem I was having and found a post fromBigteddy on TechNet that had this command

Get-ADUser -Identity sam -Properties memberof | select -ExpandProperty memberof

I kept trying it many ways and it always fails in power shell ISE. I get the below output

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 c

orrect and try again.

At line:1 char:11

+ Get-ADUser <<<< -Identity rwhite -Properties memberof | select -ExpandProperty memberof

   + CategoryInfo         : ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException

   + FullyQualifiedErrorId : CommandNotFoundException

 

 

I put the same command in the power shell module window and it works perfectly

 

Any idea how I can make this work for striping purposes in power shell ise


ronald white

Viewing all articles
Browse latest Browse all 15028

Trending Articles



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