Import scripting module inside the PowerManagement module

This commit is contained in:
Manuel Thalmann 2024-08-01 12:24:28 +02:00
parent 294609430e
commit 28cddf6a1b

View file

@ -1,7 +1,7 @@
using namespace Microsoft.Win32; using namespace Microsoft.Win32;
. "$PSScriptRoot/Scripting.ps1";
$null = New-Module { $null = New-Module {
. "$PSScriptRoot/Scripting.ps1";
[RegistryKey] $key = $null; [RegistryKey] $key = $null;
$runOncePath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce"; $runOncePath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce";
$runOnceName = "PortValhalla"; $runOnceName = "PortValhalla";