Skip to content

Instantly share code, notes, and snippets.

View Calvindd2f's full-sized avatar
:electron:
exponential potential

Calvindd2f

:electron:
exponential potential
  • Intuity Technologies
  • ​Ireland
View GitHub Profile
@Calvindd2f
Calvindd2f / Boilplate1.ps1
Last active February 23, 2024 04:17
[object Object]
if (!(Get-Module -Name @{"ExchangeOnlineManagement","Microsoft.Graph","Az"})) {
$null=(Install-Module Microsoft365DSC -Scope CurrentUser -AllowCLobber)
$null=(Install-Module Az -Scope CurrentUser -AllowCLobber)
Import-Module Microsoft365DSC
Update-M365DSCDependencies -ValidateOnly -Scope CurrentUser
}
else {break}
($Application) ? $(@{$appId=$env:appId;$tenantId=$env:tenantId;$secret=(ConvertTo-SecureString -String $env:appSecret -AsPlainText);$thumb=$env:thumb}) : $($scopes='user.read')