Forum Discussion
The term '...' is not recognized as the name of a cmdlet
Hi,
I am new to PowerShell. I am running on Win7 and I have the following module installed.
I constantly hit with error: The term '...' is not recognized as the name of a cmdlet, function,....
I tried google around for solutions and there is a lot of articles, but only keeps throwing more error after error. Is there anyway to verify what is missing?
Can anyone point me to the right direction, any step-by-step guide? Like what needs to be installed first, or how to install guide? Or how to check what is still required?
Thanks.
OK, please try the following commands in PowerShell;
Install-Module MSOnline
then,
Import-Module MSOnline
then try to connect to the MS Online service by entering;
Connect-MsolService
You should be prompted now for your M365 Global Admin credentials. Login and you can run the Get-MsolUser commands.
In order to execute the Get-ADUser commands, try running Import-Module activedirectory
Hi, what are you trying to do it PowerShell please? There are any number of modules you may need. It would help if you could explain what you want to achieve and then we can try and advise you.
- clleeBrass Contributor
Hi PeterRising
I would like to run some commands to extract some data. A couple of it will be Get-ADUser and Get-MsolUser
Thanks.
OK, please try the following commands in PowerShell;
Install-Module MSOnline
then,
Import-Module MSOnline
then try to connect to the MS Online service by entering;
Connect-MsolService
You should be prompted now for your M365 Global Admin credentials. Login and you can run the Get-MsolUser commands.
In order to execute the Get-ADUser commands, try running Import-Module activedirectory
- Playd2Copper Contributor