Single sign-on is also known as identity federation. [Net.ServicePointManager]::SecurityProtocol = "tls12". Appreciate your help. by Specify this parameter if the AD FS 2.0 server is used remotely. Hi, what are you trying to do it PowerShell please? Using PowerShell in Windows Original KB number:   2669552. Can anyone point me to the right direction, any step-by-step guide?

Empowering technologists to achieve more by humanizing tech.

A couple of it will be Get-ADUser and Get-MsolUser.

Sounds like you may be behind a proxy server? Community to share and get the latest about Microsoft Learn. Try also running this command; Net.ServicePointManager]::SecurityProtocol = "tls12". I am running on Win7 and I have the following module installed.

OK, please try the following commands in PowerShell; then try to connect to the MS Online service by entering; You should be prompted now for your M365 Global Admin credentials. What is the difference?Thanks. This cmdlet must be run before running other single sign-on cmdlets. There are any number of modules you may need. Thanks. I tried google around for solutions and there is a lot of articles, but only keeps throwing more error after error. Deleted The output should look similar to the following: If the MSOnline module isn't present, use Windows PowerShell to import the MSOnline module. @PeterRising Thanks. Glad you have got it to work.

Try again please with correct command. The term is not recognized as the name of a cmdlet, function, script file, or operable program. You can use ‘get-module’ in PowerShell to see if the module is present and correct. If you do not specify parameters for this cmdlet, you are prompted for credentials to connect to the different systems. In the output, check that the MSOnline module is present. Single sign-on is also known as identity federation. The specified logfile is shared by all single sign-on cmdlets for the session. If the AD FS 2.0 server is used remotely, you must specify the computer name of the primary AD FS 2.0 server. Sorry, I missed a bracket at the start. on If not specified, the Windows PowerShell module creates a log file in %USERPROFILE%\Documents\MicrosoftOnline. To resolve this issue, follow these steps. Is there anyway to verify what is missing? The Set-MsolADFSContext cmdlet sets the credentials to connect to Microsoft Online and to the Active Directory Federation Services 2.0 (AD FS 2.0) server.

Specifies the log file used to log all single sign-on cmdlet operations for the Windows PowerShell session. At the Windows PowerShell command prompt, type Get-Module, and then press Enter. The error goes on to say that you should check the spelling of the name, or if a path was included to verify that the path is correct and try again.