10 lines
702 B
PowerShell
10 lines
702 B
PowerShell
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
|
|
|
# RMM variable $EnableOrDisable must be set at runtime!
|
|
# Possible values are: 'enable' or '1' to enable profile prompt, 'disable' or '0' to disable profile prompt
|
|
|
|
Switch ($EnableOrDisable.ToLower().Trim()) {
|
|
{ ($_ -eq 'enable') -or ($_ -eq 1) } { Set-OutlookProfilePrompt -Enable }
|
|
{ ($_ -eq 'disable') -or ($_ -eq 0) } { Set-OutlookProfilePrompt -Disable }
|
|
default { Microsoft.Powershell.Utility\Write-Error "Please enter ""enable"" or ""1"" to enable the profile prompt, or ""disable"" or ""0"" to disable the profile prompt" }
|
|
} |