Forum Discussion
cllee
May 24, 2020Brass Contributor
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...
- May 24, 2020
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
hritwizagupta
Oct 30, 2023Copper Contributor
hey i got the error after this command,
[Net.ServicePointManager]::SecurityProtocol = "tls12"
Andres-Bohren
Nov 01, 2023Iron Contributor
You should set the TLS 1.2 Registry Keys
https://blog.icewolf.ch/archive/2020/12/03/admins-setzt-endlich-die-tls-1-2-eintrage-fur-dotnetpowershell/
This is just a temporary workaround
[System.Net.ServicePointManager]::SecurityProtocol = "tls12"
And you need to Run PowerShell as Administrator to install the Module
https://blog.icewolf.ch/archive/2023/10/29/powershell-module-microsoft-online-sharepoint-powershell-16-0-24211-12000/
Or use the Scope Parameter
Install-Module MSOnline -Scope CurrentUser
Regards
Andres
https://blog.icewolf.ch/archive/2020/12/03/admins-setzt-endlich-die-tls-1-2-eintrage-fur-dotnetpowershell/
This is just a temporary workaround
[System.Net.ServicePointManager]::SecurityProtocol = "tls12"
And you need to Run PowerShell as Administrator to install the Module
https://blog.icewolf.ch/archive/2023/10/29/powershell-module-microsoft-online-sharepoint-powershell-16-0-24211-12000/
Or use the Scope Parameter
Install-Module MSOnline -Scope CurrentUser
Regards
Andres