Tag Archive: powershell

Powershell

PowerShell: Assign Licenses

We frequently assign licenses to a bulk of users when customers migrate to Office 365, and ofcourse we use PowerShell Prereqs: User must have defined a Location/Country. First you’ll need a source with users to assign a license type, and…
Read more

Office 365

, , , , , , ,

Powershell

PowerShell: Set Location

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 youruser@yourdomain.com -UsageLocation NO…
Read more

Azure Active Directory, Office 365

, , , , , ,

Powershell

PowerShell: Export to CSV

This will be the beginning of a series of PowerShell Command Posts PowerShell is often used to apply commands to several Objects without having to to the same shit over and over again. So the first we should learn is…
Read more

Azure Active Directory, Office 365

, , , , , , , ,

PS Azure logo

Confirm All Users have PasswordNeverExpires

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)….
Read more

Azure Active Directory, Office 365

, , , ,

PS Azure logo

Error installing Windows Azure Active Directory Powershell Module

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…
Read more

Azure Active Directory, PowerShell

, , , , ,

PS Azure logo

Exchange Online Shared Mailbox Free

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…
Read more

Exchange Online

, , , , , ,

PS Azure logo

Office 365 Password Never Expires

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.

Azure Active Directory, PowerShell

, , ,