Tag: O365

  • PowerShell: Set Location

    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 With Imported CSV: Command: Import-CSV -Path C:CSVfile.csv | ForEach-Object | Set-MsolUser -UsageLocation NO

    Read more
  • PowerShell: Import from CSV

    PowerShell: Import from CSV

    You can Export information to a CSV File, so lets see how the Import from a CSV File works in PowerShell for Office 365. Commandlet: Import-CSV -Path C:YourCSVfile.csv If you read my article about Export-CSV we have a CSV with all our UserPrincipalNames or you can specify what to Select inside a CSV-file: Command: Import-CSV -Path […]

    Read more
  • PowerShell: Export to CSV

    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 to Export to CSV file, leveraging Get-MSolUser, which will give us a list of users […]

    Read more

Ehlo!

I am Roy Apalnes, a Microsoft Cloud Evangelist working av Sopra Steria. Main focus in Microsoft Security and Endpoint Management, with a bigger picture in mind.

Featured Posts