Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the CLI itself

$foo = (Get-ADGroupMembers -identity"blah_SEC")
echo $foo

Works.

But when I do the same exact thing in a .ps1 file it says the parameters are missing and prompts me to input them.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.