Uploaded as a part of version 2.0.0
This commit is contained in:
parent
ace304c20e
commit
95701bd3cd
1 changed files with 15 additions and 11 deletions
|
|
@ -79,20 +79,24 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** Most of the work done in version 2.0.0 is done by Chad Bower // @Brower_Cha on Twitter **
|
** Most of the work done in version 2.0.0 is done by Chad Brower // @Brower_Cha on Twitter **
|
||||||
** I have added the additional protocols/scripts and rewritten some minor things **
|
** I have added the additional protocols/scripts and rewritten some minor things **
|
||||||
** As well as added support for dynamic deadline retrieval for software updates **
|
** As well as added support for dynamic deadline retrieval for software updates **
|
||||||
** Stuff has been rewritten to suit my understanding and thoughts of the script **
|
** Stuff has been rewritten to suit my understanding and thoughts of the script **
|
||||||
|
|
||||||
2.0.0 - Huge changes to how this script handles custom protocols
|
2.0.0 - Huge changes to how this script handles custom protocols
|
||||||
- Added Support for Software Updates : Searches for an update (IPU) and will store in variable
|
- Added Support for Custom Actions/Protocols within the script under user context removing the need for that to be run under SYSTEM/ADMIN
|
||||||
- Added Support for Custom Actions/Protocols within the script under user context removing the need for that to be run under SYSTEM/ADMIN
|
<Option Name="Action" Value="ToastRunUpdateID:" />
|
||||||
<Option Name="Action" Value="ToastRunUpdateID:" />
|
<Option Name="Action" Value="ToastRunPackageID:" />
|
||||||
- Added Support to dynamically create Custom Action Scripts to support Custom Protocols
|
<Option Name="Action" Value="ToastRunApplicationID:" />
|
||||||
- Added New XML Types for SoftwareUpdates :
|
<Option Name="Action" Value="ToastReboot:" />
|
||||||
<Option Name="RunUpdateTitle" Enabled="True" Value="Version 1909" />
|
- Added Support to dynamically create Custom Action Scripts to support Custom Protocols
|
||||||
<Option Name="RunUpdateID" Enabled="True" Value="3012973" />
|
- Added Support for Software (Feature) Updates : Searches for an update and will store in variable
|
||||||
- Added support for getting deadline date/time dynamically for software updates
|
- Added new XML Types for Software Updates:
|
||||||
|
- <Option Name="RunUpdateID" Enabled="True" Value="3012973" />
|
||||||
|
- <Option Name="RunUpdateTitle" Enabled="True" Value="Version 1909" />
|
||||||
|
- Added support for getting deadline date/time dynamically for software updates
|
||||||
|
- Configure DynamicDeadline with the UpdateID
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://www.imab.dk/windows-10-toast-notification-script/
|
https://www.imab.dk/windows-10-toast-notification-script/
|
||||||
|
|
@ -243,7 +247,7 @@ function Get-GivenName() {
|
||||||
$RegKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData"
|
$RegKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData"
|
||||||
$DisplayName = (Get-ChildItem -Path $RegKey | Where-Object {$_.GetValue("LoggedOnUserSID") -eq $LoggedOnSID} | Select-Object -First 1).GetValue("LoggedOnDisplayName")
|
$DisplayName = (Get-ChildItem -Path $RegKey | Where-Object {$_.GetValue("LoggedOnUserSID") -eq $LoggedOnSID} | Select-Object -First 1).GetValue("LoggedOnDisplayName")
|
||||||
if ($DisplayName) {
|
if ($DisplayName) {
|
||||||
Write-Log -Message "Given name found in WMI with the CCM client: : $GivenName"
|
Write-Log -Message "Given name found in WMI with the CCM client: $GivenName"
|
||||||
$GivenName = $DisplayName.Split()[0].Trim()
|
$GivenName = $DisplayName.Split()[0].Trim()
|
||||||
$GivenName
|
$GivenName
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue