minor changes - may be used more later
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user