Skip to content

Commit

Permalink
added missing lastRun registry functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
tmmuessig committed Sep 27, 2022
1 parent 11ead6c commit bc9920e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Windows_VDOT.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ it is nearly impossible to get it back. Please review the configuration files a
#>
BEGIN
{
$VDOTVersion = "2.0.2009.1"
[Version]$VDOTVersion = "2.0.2009.1"
# Create Key
$KeyPath = 'HKLM:\SOFTWARE\VDOT'
If (-Not(Test-Path $KeyPath))
Expand All @@ -118,6 +118,10 @@ BEGIN
{
Set-ItemProperty -Path $KeyPath -Name $LastRun -Value $LastRunValue
}
Else
{
New-ItemProperty -Path $KeyPath -Name $LastRun -Value $LastRunValue | Out-Null
}

If (-not([System.Diagnostics.EventLog]::SourceExists("Virtual Desktop Optimization")))
{
Expand Down

0 comments on commit bc9920e

Please sign in to comment.