Tag Archive: powershell
Office 365 requires all users to have a Location before we can assign a license. Feel free to leverage Export and Import CSV. Commandlet: Set-MsolUser -UsageLocation For a specific user the command will be: Command: Set-MsolUser -UserPrincipalName email@example.com -UsageLocation NO…
So with PowerShell we can grant users the policy of PasswordNeverExpires, which in some cases are good enough security. Perhaps togethere with a second factor for authentication. PS Command: Get-MsolUser | Set-MsolUser -All -PasswordNeverExpires $true ($false will do the upposite)….
Error: “In order to install Windows Azure Active Directory Module for Windows PowerShell, you must have Microsoft Online Services Sign-In Assistant version 7.0 or greater installed on this computer” But you allready have installed the newest named MS Online Services Sign-In…
Microsoft have made it available to create free mailboxes in Exchange Online These mailboxes do not have a Active Directory User attached, so they can only be reached trough other Office 365 MailboxEnabledUsers. New-Mailbox -Name “NameIT” -Alias NameIT -Shared…
Microsoft Online Service Portal (MOSP) doesn’t allow you to set passwords to never expires, but for some customers it is wanted and for some service accounts not beeing federated its also wanted. Connect to Micorosoft Online Services.
$LiveCred = Get-Credential
Connect-MsolService -Credentials $LiveCred
Get-MsolUser BillieJean | Set-MsolUser -PasswordNeverExpires $true/$false