Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mods Template/Functions and Lists in GPO + more... #263

Merged
merged 40 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d000abf
Mods Find/Replace text in file
KnifMelti Jan 17, 2023
17ad60b
Variable Name Change
KnifMelti Jan 18, 2023
d1c0c0a
Escape qoutes if exist in string
KnifMelti Jan 18, 2023
ac98927
Mod Template/Functions - App as User
KnifMelti Jan 18, 2023
21fa9eb
Added Lists in GPO - not active yet
KnifMelti Jan 19, 2023
a6e1a50
GPO Black/White List Activated in WAU
KnifMelti Jan 19, 2023
e518369
Finally a GPO List Array that works with -contains
KnifMelti Jan 20, 2023
0310d8a
Update README.md
KnifMelti Jan 20, 2023
eb5a46d
Update README.md
KnifMelti Jan 20, 2023
de182cd
Update README.md
KnifMelti Jan 20, 2023
f693f2f
Update README.md
KnifMelti Jan 20, 2023
e76e70f
Forgot the GPOList Array for Update
KnifMelti Jan 20, 2023
c6383bc
GPO Revision 4.6
GAJ-san Jan 20, 2023
7fabb31
GPO Revision - Supported on WAU >= 1.16.0
KnifMelti Jan 20, 2023
bce8f56
.Trim() GPO $AppIDs Data
KnifMelti Jan 21, 2023
de8f32b
GPO LIst ERROR handling
KnifMelti Jan 21, 2023
021170b
Small bits
KnifMelti Jan 21, 2023
76e3b4b
Last edit, Done!
KnifMelti Jan 21, 2023
bfe541f
Name/text change
KnifMelti Jan 21, 2023
8d81c11
Update README.md
KnifMelti Jan 22, 2023
a444e2b
Update README.md
KnifMelti Jan 22, 2023
275d225
Update README.md
KnifMelti Jan 22, 2023
57124d5
Update README.md
KnifMelti Jan 22, 2023
a56ee49
Fix in _Mods-Functions
KnifMelti Jan 23, 2023
ceb80f1
Forgot
KnifMelti Jan 23, 2023
4f34b8f
MsiZap example im Template
KnifMelti Jan 24, 2023
36acaeb
Readme in bins
KnifMelti Jan 24, 2023
e1a7e82
$PSScriptRoot\bins\MsiZap.exe for Readme/Template
KnifMelti Jan 24, 2023
27ab5df
Readme fix
KnifMelti Jan 24, 2023
875abbc
Update README.md
KnifMelti Jan 24, 2023
713f2d5
Small bit
KnifMelti Jan 25, 2023
da5a018
Critical Error text now as Notif Message
KnifMelti Jan 25, 2023
7409395
Small bits
KnifMelti Jan 25, 2023
e37bbdf
WinGet MSIXBundle v1.4.10173
KnifMelti Jan 25, 2023
775e360
Text Current
KnifMelti Jan 26, 2023
2e7c64b
Better, less clutter
KnifMelti Jan 27, 2023
730508a
Trim $Critical first...
KnifMelti Jan 27, 2023
688c139
Merge branch 'Romanitho:main' into SmallBits
KnifMelti Jan 28, 2023
b50961c
ADML small text change
KnifMelti Jan 28, 2023
12233c3
Better Mods README in dir
KnifMelti Jan 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions Policies/WAU.admx
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<policyDefinitions revision="4.4" schemaVersion="1.0">
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="4.7" xsi:schemaLocation="" schemaVersion="1.0" xmlns="http://www.microsoft.com/GroupPolicy/PolicyDefinitions">
<policyNamespaces>
<target prefix="WAU" namespace="Romanitho.Policies.WAU"/>
<using prefix="Romanitho" namespace="Romanitho.Policies"/>
</policyNamespaces>
<resources minRequiredRevision="4.4"/>
<resources minRequiredRevision="4.7" fallbackCulture="en-us"/>
<supportedOn>
<definitions>
<definition name="SUPPORTED_WAU_1_15_3" displayName="$(string.SUPPORTED_WAU_1_15_3)"/>
<definition name="SUPPORTED_WAU_1_16_0" displayName="$(string.SUPPORTED_WAU_1_16_0)"/>
</definitions>
</supportedOn>
<categories>
<category displayName="$(string.WAU)" name="WAU">
<parentCategory ref="Romanitho:Cat_Romanitho"/>
</category>
</categories>
<categories><category displayName="$(string.WAU)" name="WAU"/></categories>
<policies>
<policy name="ActivateGPOManagement_Enable" class="Machine" displayName="$(string.ActivateGPOManagement_Name)" explainText="$(string.ActivateGPOManagement_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_ActivateGPOManagement">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -28,7 +23,7 @@
</policy>
<policy name="BypassListForUsers_Enable" class="Machine" displayName="$(string.BypassListForUsers_Name)" explainText="$(string.BypassListForUsers_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_BypassListForUsers">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -38,7 +33,7 @@
</policy>
<policy name="DisableAutoUpdate_Enable" class="Machine" displayName="$(string.DisableAutoUpdate_Name)" explainText="$(string.DisableAutoUpdate_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_DisableAutoUpdate">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -48,7 +43,7 @@
</policy>
<policy name="DoNotRunOnMetered_Enable" class="Machine" displayName="$(string.DoNotRunOnMetered_Name)" explainText="$(string.DoNotRunOnMetered_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_DoNotRunOnMetered">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="0" />
</enabledValue>
Expand All @@ -58,17 +53,31 @@
</policy>
<policy name="UpdatePrerelease_Enable" class="Machine" displayName="$(string.UpdatePrerelease_Name)" explainText="$(string.UpdatePrerelease_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_UpdatePrerelease">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
<disabledValue>
<decimal value="0" />
</disabledValue>
</policy>
<policy name="BlackList_Enable" class="Machine" displayName="$(string.BlackList_Name)" explainText="$(string.BlackList_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.BlackList)">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<list id="BlackList" key="Software\Policies\Romanitho\Winget-AutoUpdate\BlackList" valuePrefix=""/>
</elements>
</policy>
<policy name="WhiteList_Enable" class="Machine" displayName="$(string.WhiteList_Name)" explainText="$(string.WhiteList_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.WhiteList)">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<list id="WhiteList" key="Software\Policies\Romanitho\Winget-AutoUpdate\WhiteList" valuePrefix=""/>
</elements>
</policy>
<policy name="UseWhiteList_Enable" class="Machine" displayName="$(string.UseWhiteList_Name)" explainText="$(string.UseWhiteList_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_UseWhiteList">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -78,21 +87,21 @@
</policy>
<policy name="ListPath_Enable" class="Machine" displayName="$(string.ListPath_Name)" explainText="$(string.ListPath_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.ListPath)" >
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<text id="ListPath" valueName="WAU_ListPath" />
</elements>
</policy>
<policy name="ModsPath_Enable" class="Machine" displayName="$(string.ModsPath_Name)" explainText="$(string.ModsPath_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.ModsPath)" >
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<text id="ModsPath" valueName="WAU_ModsPath" />
</elements>
</policy>
<policy name="NotificationLevel_Enable" class="Machine" displayName="$(string.NotificationLevel_Name)" explainText="$(string.NotificationLevel_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.NotificationLevel)">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<enum id="NotificationLevel" valueName="WAU_NotificationLevel">
<item displayName="$(string.NotificationLevel_Full)">
Expand All @@ -115,7 +124,7 @@
</policy>
<policy name="UpdatesInterval_Enable" class="Machine" displayName="$(string.UpdatesInterval_Name)" explainText="$(string.UpdatesInterval_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.UpdatesInterval)">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<enum id="UpdatesInterval" valueName="WAU_UpdatesInterval">
<item displayName="$(string.UpdatesInterval_Daily)">
Expand Down Expand Up @@ -153,7 +162,7 @@
</policy>
<policy name="UpdatesAtLogon_Enable" class="Machine" displayName="$(string.UpdatesAtLogon_Name)" explainText="$(string.UpdatesAtLogon_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_UpdatesAtLogon">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -163,7 +172,7 @@
</policy>
<policy name="UpdatesAtTime_Enable" class="Machine" displayName="$(string.UpdatesAtTime_Name)" explainText="$(string.UpdatesAtTime_Explain)" presentation="$(presentation.UpdatesAtTime)" key="Software\Policies\Romanitho\Winget-AutoUpdate">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<enum id="UpdatesAtTime" valueName="WAU_UpdatesAtTime">
<item displayName="$(string.UpdatesAtTime01)">
Expand Down Expand Up @@ -291,7 +300,7 @@
</policy>
<policy name="UserContext_Enable" class="Machine" displayName="$(string.UserContext_Name)" explainText="$(string.UserContext_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_UserContext">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -301,7 +310,7 @@
</policy>
<policy name="DesktopShortcut_Enable" class="Machine" displayName="$(string.DesktopShortcut_Name)" explainText="$(string.DesktopShortcut_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_DesktopShortcut">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -311,7 +320,7 @@
</policy>
<policy name="StartMenuShortcut_Enable" class="Machine" displayName="$(string.StartMenuShortcut_Name)" explainText="$(string.StartMenuShortcut_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" valueName="WAU_StartMenuShortcut">
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<enabledValue>
<decimal value="1" />
</enabledValue>
Expand All @@ -321,14 +330,14 @@
</policy>
<policy name="MaxLogFiles_Name" class="Machine" displayName="$(string.MaxLogFiles_Name)" explainText="$(string.MaxLogFiles_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.MaxLogFiles)" >
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<text id="MaxLogFiles" valueName="WAU_MaxLogFiles" />
</elements>
</policy>
<policy name="MaxLogSize_Name" class="Machine" displayName="$(string.MaxLogSize_Name)" explainText="$(string.MaxLogSize_Explain)" key="Software\Policies\Romanitho\Winget-AutoUpdate" presentation="$(presentation.MaxLogSize)" >
<parentCategory ref="WAU"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_15_3"/>
<supportedOn ref="WAU:SUPPORTED_WAU_1_16_0"/>
<elements>
<text id="MaxLogSize" valueName="WAU_MaxLogSize" />
</elements>
Expand Down
33 changes: 24 additions & 9 deletions Policies/en-US/WAU.adml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<policyDefinitionResources revision="4.4" schemaVersion="1.0" >
<displayName/>
<description/>
<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="4.7" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<displayName>WinGet-AutoUpdate</displayName>
<description>WinGet-AutoUpdate GPO Management</description>
<resources >
<stringTable >
<string id="WAU">Winget-AutoUpdate</string>
<string id="SUPPORTED_WAU_1_15_3">Winget-AutoUpdate version 1.15.3 or later</string>
<string id="SUPPORTED_WAU_1_16_0">Winget-AutoUpdate version 1.16.0 or later</string>
<string id="ActivateGPOManagement_Name">Activate WAU GPO Management</string>
<string id="ActivateGPOManagement_Explain">This policy setting is an overriding toggle for GPO Management of Winget-AutoUpdate.</string>
<string id="BypassListForUsers_Name">Bypass Black/White list for User</string>
Expand All @@ -26,13 +26,22 @@ If this policy is disabled or not configured, the default is No.</string>
<string id="UpdatePrerelease_Explain">This policy setting specifies whether to update WAU to PreRelease versions or not (via WAU AutoUpdate).

If this policy is disabled or not configured, the default is No.</string>
<string id="BlackList_Name">Application GPO Blacklist</string>
<string id="BlackList_Explain">Provide the WinGet IDs of applications you want to exclude.

If this policy is disabled or not configured, GPO Blacklist is not used.</string>
<string id="WhiteList_Name">Application GPO Whitelist</string>
<string id="WhiteList_Explain">Provide the WinGet IDs of applications you want to include.

If this policy is disabled or not configured, GPO Whitelist is not used.</string>
<string id="UseWhiteList_Name">Use WhiteList instead of BlackList</string>
<string id="UseWhiteList_Explain">This policy setting specifies whether to use a WhiteList or not.
<string id="UseWhiteList_Explain">This policy setting specifies whether to use a Whitelist or not.

If this policy is disabled or not configured, the default is No.</string>
<string id="ListPath_Name">Get Black/White List from external Path (URL/UNC/Local)</string>
<string id="ListPath_Explain">If this policy is enabled, you can set a (URL/UNC/Local) Path to external lists other than the default.

<string id="ListPath_Name">Get Black/White List from external Path (URL/UNC/GPO/Local)</string>
<string id="ListPath_Explain">If this policy is enabled, you can set a (URL/UNC/GPO/Local) Path to external lists other than the default.
If "Application GPO Blacklist/Whitelist" is set in this GPO the Path can be: GPO

If this policy is disabled or not configured, the default ListPath is used (WAU InstallLocation).</string>
<string id="ModsPath_Name">Get Mods from external Path (URL/UNC/Local)</string>
<string id="ModsPath_Explain">If this policy is enabled, you can set a (URL/UNC/Local) Path to external mods other than the default.
Expand Down Expand Up @@ -126,9 +135,15 @@ Default size is 1048576 = 1 MB
If this policy is disabled or not configured, the default size is used.</string>
</stringTable>
<presentationTable>
<presentation id="BlackList">
<listBox refId="BlackList">BlackList:</listBox>
</presentation>
<presentation id="WhiteList">
<listBox refId="WhiteList">WhiteList:</listBox>
</presentation>
<presentation id="ListPath">
<textBox refId="ListPath">
<label>(URL/UNC/Local) Path:</label>
<label>(URL/UNC/GPO/Local) Path:</label>
</textBox>
</presentation>
<presentation id="ModsPath">
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Setting it to 1 keeps the original one and just let it grow.

**-MaxLogSize**
Specify the size of the log file in bytes before rotating.
Default is 1048576 = 1 MB
Default is 1048576 = 1 MB (ca. 8000 lines)

**-WingetUpdatePath**
Specify Winget-AutoUpdate installation location. Default: `C:\ProgramData\Winget-AutoUpdate` (Recommended to leave default).
Expand All @@ -96,7 +96,9 @@ Disable Winget-AutoUpdate update checking. By default, WAU auto updates if new v
Use White List instead of Black List. This setting will not create the "excluded_apps.txt" but "included_apps.txt".

**-ListPath**
Get Black/White List from external Path (**URL/UNC/Local**) - download/copy to Winget-AutoUpdate installation location if external list is newer.
Get Black/White List from external Path (**URL/UNC/GPO/Local**) - download/copy to Winget-AutoUpdate installation location if external list is newer.
If `-ListPath` is set to **GPO** the Black/White List can be managed from within the GPO itself under **Application GPO Blacklist**/**Application GPO Whitelist**.
Thanks to [Weatherlights](https://github.com/Weatherlights) in [#256 (reply in thread)](https://github.com/Romanitho/Winget-AutoUpdate/discussions/256#discussioncomment-4710599)!

**-ModsPath**
Get Mods from external Path (**URL/UNC/Local**) - download/copy to `mods` in Winget-AutoUpdate installation location if external mods are newer.
Expand Down Expand Up @@ -185,7 +187,7 @@ The **GPO ADMX/ADML** validated with:
[Windows 10 - Validate ADMX for Ingestion](https://developer.vmware.com/samples/7115/windows-10---validate-admx-for-ingestion)
Read more in the `README.md` under the directory **Policies**.

![image](https://user-images.githubusercontent.com/102996177/212422844-9366c6aa-ee7a-490f-97f0-bffb5ab146ab.png)
![image](https://user-images.githubusercontent.com/102996177/213920242-7ff8e2b4-d926-4407-b860-1e5922e29c3e.png)

## Help
In some cases, you need to "unblock" the `install.bat` file (Windows Defender SmartScreen). Right click, properties and unblock. Then, you'll be able to run it.
Expand Down
5 changes: 3 additions & 2 deletions Winget-AutoUpdate-Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ function Install-WinGet {
#Check Package Install
$TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" }

If ([Version]$TestWinGet.Version -ge "2022.927.3.0") {
#Current: v1.4.10173 = 1.19.10173.0 = 2023.118.406.0
If ([Version]$TestWinGet.Version -ge "2023.118.406.0") {

Write-Host "WinGet is Installed" -ForegroundColor Green

Expand All @@ -194,7 +195,7 @@ function Install-WinGet {

#Download WinGet MSIXBundle
Write-Host "-> Not installed. Downloading WinGet..."
$WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.3.2691/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
$WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.4.10173/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile($WinGetURL, "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle")

Expand Down
6 changes: 5 additions & 1 deletion Winget-AutoUpdate/User-Run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,15 @@ else {
#Test if there was a list_/winget_error
if (Test-Path "$WorkingDir\logs\error.txt") {
$MessageType = "error"
$Critical = Get-Content "$WorkingDir\logs\error.txt" -Raw
$Critical = $Critical.Trim()
$Critical = $Critical.Substring(0, [Math]::Min($Critical.Length, 50))
$Message = "Critical:`n$Critical..."
}
else {
$MessageType = "success"
$Message = $NotifLocale.local.outputs.output[9].message
}
$Message = $NotifLocale.local.outputs.output[9].message
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
}
catch {
Expand Down
Loading