Powershell command get-ADGroupMember export to file

I'm having some issues running this command, not sure if i have insufficient rights or if it's something else. To be more specific.
I can run the command get-adgroupmember and then I'm being prompted to enter an identity. I enter the group name as a parameter and the command executes. However once it has been completed i cannont scroll up and export all the group members.
So instead i run the following command get-adgroupmember -identity"group1" | select name | Export-csv -path C:\output\group.csv -notypeinformation
i hit enter and i get "》" and there is no output file anywhere. Am I running the command correctly?
I can run the command get-adgroupmember and then I'm being prompted to enter an identity. I enter the group name as a parameter and the command executes. However once it has been completed i cannont scroll up and export all the group members.
So instead i run the following command get-adgroupmember -identity"group1" | select name | Export-csv -path C:\output\group.csv -notypeinformation
i hit enter and i get "》" and there is no output file anywhere. Am I running the command correctly?
Comments
Free Microsoft Training: Microsoft Learn
Free PowerShell Resources: Top PowerShell Blogs
Free DevOps/Azure Resources: Visual Studio Dev Essentials
Let it never be said that I didn't do the very least I could do.
Slowhand i will have to get you that information in the morning as i am not in the office now. But would the version matter for a command like this? I do not have local admin rights on my machine or elevated access rights in AD. The most i can do is run some queries and searches. Could that be the issue?
It should look something like this:
Additionally have you tried to run it without the export to see if the core portion of the command is working properly?
“Hey! Listen!” ~ Navi
2013: [x] MCTS 70-680
2014: [x] 22-801 [x] 22-802 [x] CIW Web Foundation Associate
2015 Goals: [] 70-410
Free Microsoft Training: Microsoft Learn
Free PowerShell Resources: Top PowerShell Blogs
Free DevOps/Azure Resources: Visual Studio Dev Essentials
Let it never be said that I didn't do the very least I could do.
Yeah that was probably the issue. The folder not being present. I did some further testing, this time did not create the file and used the existing folder. The command run fine and it created the csv file on its own.