Connect-MsolService incorrectly shows as having a -CurrentCredentials parameter in PowerShell help

You may find that running Get-Help against the "Connect-MsolService" cmd incorrectly shows as having a -CurrentCredentials parameter in PowerShell help.

This switch parameter is not actually available

Connect-MsolService -CurrentCredentials
Connect-MsolService : A parameter cannot be found that matches parameter name 'CurrentCredentials'.
At line:1 char:22
+  Connect-MsolService -CurrentCredentials
+                      ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Connect-MsolService], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.Administration.Automation.ConnectMsolServic
   e

You can see this in the online documentation for the cmdlet, a PSCredential must actually be provided.
https://msdn.microsoft.com/en-us/library/azure/dn194123.aspx

Why not check out our Network Automation Tool, for automatically creating Office365 accounts.


Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Enable function lock for F1-F12 on HP ZBook mobile workstations