![]() The error I get at the "Connect-MsolService" is :Ĭonnect-MsolService : Unable to authenticate your credentials. #Add-AzureRmAccount -Credential $Cred -ServicePrincipal -TenantId $tenantId $Cred = new-object -typename -argumentlist $AdminName, $Pass ![]() ![]() $Pass = ConvertTo-SecureString "application-key" -AsPlainText –Force The script is currently emailing via an Office 365 Mail account. In some scenarios, you might want to set temporary password for set of new users who. Run the below command to change the password for a single O365 user. A standard AD user is fine the script does not need any admin rights over AD. Reset Office 365 User Password using PowerShell Set Password for Single User. ![]() Is this not possible? I am currently using this code, that works with my Admin account but not with service credentials (that work with Azure) : $AdminName = "application-id" Updated on 1 July 2015 The password policy in Office 365 (O365) is a little more strict than that of an on premise environment as certain characters that are available in Active Directory may not. Download RSAT for Windows 10 or to more easily install the RSAT tools via PowerShell Install all RSAT tools via PowerShell The script will need to run run by a domain user in the domain your are querying. ![]() I can find information about how to create Service Principals for Office365 with Powershell - but I can't find any how to login with them in Powershell. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |