term get is not recognised at the name of cmdlet

I trying to execute a script to extract current security on the server but I get the following error:
term get is not recognised at the name of cmdlet

The script I’m trying to run is:

Get-adgroupmember -identity “domain admins” | select name

  1. The execution policy is remotesigned
  2. Tried to execute using normal user and as an admin

Would you please let me know what I may be missing?

Thank you in advance!

Powershelllearner,
Welcome to the forum. :wave:t4:

Please sahre the complete error message formatted as code.

BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink:

Is this all code you have in your script? If not, please share either the complete code or at least the relevant part of it.

I trying to execute a script to extract current security on the server but I get the following error:
term get is not recognised at the name of cmdlet

The script I’m trying to run is:

Get-adgroupmember -identity “domain admins” | select name

  1. The execution policy is remotesigned
  2. Tried to execute using normal user and as an admin

Would you please let me know what I may be missing?

Thank you in advance!
[/quote]

PS C:\ > poweshell>

Thank you for your response.

Here is the full script:

PS C:\ > poweshell> Get-adgroupmember -identity “domain admins” | select name

I’m afraid it will be nearly impossible to give any helpful advice with the information you shared. Sorry.

Is the AD module installed?

Get-Module ActiveDirectory -ListAvailable

When running the following script, it’s not bringing back anything:
Get-Module ActiveDirectory -ListAvailable

Then that’s why you get an error. You need to install the ActiveDirectory PowerShell module: