Information on comparing multi element file versioning.
https://invoke-thebrain.com/2018/12/comparing-version-numbers-powershell/
Work around for:unable to resolve package source 'https://www.powershellgallery.com/api/v2/'
andWARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection.
https://vanbrenk.blogspot.com/2017/09/install-module-unable-to-resolve.html
Information on trimming strings.
https://devblogs.microsoft.com/scripting/trim-your-strings-with-powershell/
Storage of Objects as files to be used between PowerShell sessions.
https://devblogs.microsoft.com/scripting/learn-how-to-save-powershell-objects-for-offline-analysis/
Running a PowerShell script as a sheduled task.
powershell.exe -ExecutionPolicy Bypass -File C:\Install\Script.ps1 -WindowStyle Hidden
(Where C:\Install\Script.ps1
is the script you wish to run, and -WindowStyle Hidden can be use to hide the window.)
Connect to 365 powershell services.
$domainHost="Company Part of company.onmicrosoft.com Here!!!!"
$credential = Get-Credential
Connect-MsolService -Credential $credential
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
Connect-SPOService -Url https://$domainHost-admin.sharepoint.com -credential $credential
Import-Module SkypeOnlineConnector
$sfboSession = New-CsOnlineSession -Credential $credential
Import-PSSession $sfboSession
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $exchangeSession
$SccSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $SccSession -Prefix cc
Ensure that non-AD synced account does not prompt for password change
Set-MsolUser -UserPrincipalName [email protected] -PasswordNeverExpires $true
Change login credentials after renaming AD account
Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName [email protected]