This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# +----------------------------------------------------------------------------+ | |
# | Author : Eugène Dauphin | | |
# | File : Connect.ps1 | | |
# | Version : 1.1 | | |
# | Purpose : Connect to an Office 365 Tenant | | |
# | | | |
# | Synopsis: | | |
# | Usage : .\Connect.ps1 .\FolderNameOfConnection | | |
# +----------------------------------------------------------------------------+ | |
# | Maintenance History | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# +----------------------------------------------------------------------------+ | |
# | Author : Eugène Dauphin | | |
# | File : StoreCredentials.ps1 | | |
# | Version : 1.1 | | |
# | Purpose : Store credentials for a tenant | | |
# | | | |
# | Synopsis: | | |
# | Usage : .\StoreCredentials.ps1 .\FolderNameOfConnection | | |
# +----------------------------------------------------------------------------+ | |
# | Maintenance History | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$site = Get-SPOSite -Identity https://mydemo-my.sharepoint.com/personal/sarad_mydemo_onmicrosoft_com | |
Set-SPOUser -Site $site.Url -LoginName admin@mydemo.onmicrosoft.com -IsSiteCollectionAdmin $true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-MsolUser | Set-MsolUser -PreferredLanguage "nl-nl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-SPOnline -Url "https://tenant.sharepoint.com/sites/contoso" -Credentials $cred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Mailbox | Get-MailboxRegionalConfiguration | Set-MailboxRegionalConfiguration -Language nl-nl -DateFormat "d-M-yyyy" -TimeFormat "HH:mm" -TimeZone "W. Europe Standard Time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ADUser -SearchBase "OU=Optional,OU=Accounts,DC=demo,DC=nl" -Filter * -Properties PreferredLanguage | ForEach-Object {Set-ADUser $_.SAMAccountName –replace @{PreferredLanguage="nl-NL"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ctx = Get-SPOContext | |
$web = Get-SPOWeb | |
function AddSupportedUILanguageToWeb($web) | |
{ | |
$web.Url | |
$web.IsMultilingual = $true | |
$web.AddSupportedUILanguage(1043) | |
$web.Update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "Newtonsoft.Json" | |
using System; | |
using System.Net; | |
using Newtonsoft.Json; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
// parse query parameter | |
string lat = req.GetQueryNameValuePairs() |