skip to Main Content

Create a new AzureAD user and add to distribution list

I'm running a script to add a new user to Azure AD $AzureADConnection = Connect-AzureAD $AdminEmail = $AzureADConnection.Account.Id Connect-ExchangeOnline -UserPrincipalName $AdminEmail -ShowProgress $false $ADUserParameters = @{ DisplayName = $DisplayName GivenName = $FirstName SurName = $LastName UserPrincipalName = $UserPrincipalName MailNickName =…

VIEW QUESTION

Azure – smtplib.SMTPAuthenticationError: (535, b'5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully

File "C:UsersSanketPatilAppDataLocalProgramsPythonPython38libsmtplib.py", line 655, in auth raise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (535, b'5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [PN2PR01CA0009.INDPRD01.PROD.OUTLOOK.COM]') Process finished with exit code 1 I have enabled SMTP auth…

VIEW QUESTION

Azure – Powershell Function -WhatIf for cmdlet without the -WhatIf support?

For these cmdlets below, I try to create the function with the [CmdletBinding(SupportsShouldProcess)] line, but not sure that it will work. Using: https://learn.microsoft.com/en-us/powershell/module/msonline/set-msoluserlicense?view=azureadps-1.0 How can the script be modified to support the -WhatIf parameter? function Remove-License { [CmdletBinding(SupportsShouldProcess)] param ([String]…

VIEW QUESTION
Back To Top
Search