minor changes - may be used more later

This commit is contained in:
2023-09-15 16:46:10 -04:00
parent 9d7c5d59ba
commit a3278beb71
+4
View File
@@ -9,6 +9,9 @@
[string]$Global:LogsDirectory
[string]$Global:LogFile
# Define the root path for the MSP in the Windows Registry
[string]$Global:MSPRegistryRoot = "HKEY_LOCAL_MACHINE\SOFTWARE\${MSPName}"
## Setup the MSP management directories
Function Setup-MSPDirectories {
If ( Test-Path ${Env:ProgramData} ) { $Global:RootDirectory = "${Env:ProgramData}\${MSPName}" } Else { $Global:RootDirectory = "${Env:SystemDrive}\${MSPName}" }
@@ -893,3 +896,4 @@ Function Restart-EndpointOnUptime ([timespan]$MaxUptime) {
Setup-MSPDirectories
Setup-LogFile
SetToolsScriptLocation