Forum Discussion

cllee's avatar
cllee
Brass Contributor
May 24, 2020
Solved

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, functi...
  • PeterRising's avatar
    PeterRising
    May 24, 2020

    cllee 

     

    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

     

Resources