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
The execution policy is remotesigned
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!
Olaf
October 20, 2022, 11:16am
2
Powershelllearner,
Welcome to the forum.
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
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
The execution policy is remotesigned
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
Olaf
October 20, 2022, 3:13pm
5
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:
system
Closed
February 10, 2024, 5:34pm
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.