minor changes - may be used more later
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
[string]$Global:LogsDirectory
|
[string]$Global:LogsDirectory
|
||||||
[string]$Global:LogFile
|
[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
|
## Setup the MSP management directories
|
||||||
Function Setup-MSPDirectories {
|
Function Setup-MSPDirectories {
|
||||||
If ( Test-Path ${Env:ProgramData} ) { $Global:RootDirectory = "${Env:ProgramData}\${MSPName}" } Else { $Global:RootDirectory = "${Env:SystemDrive}\${MSPName}" }
|
If ( Test-Path ${Env:ProgramData} ) { $Global:RootDirectory = "${Env:ProgramData}\${MSPName}" } Else { $Global:RootDirectory = "${Env:SystemDrive}\${MSPName}" }
|
||||||
@@ -892,4 +895,5 @@ Function Restart-EndpointOnUptime ([timespan]$MaxUptime) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Setup-MSPDirectories
|
Setup-MSPDirectories
|
||||||
Setup-LogFile
|
Setup-LogFile
|
||||||
|
SetToolsScriptLocation
|
||||||
Reference in New Issue
Block a user