Last active
February 5, 2025 10:57
-
-
Save 2legit2git/f1ebd37b848707b507414534f0cecf4b to your computer and use it in GitHub Desktop.
Fix for N-Central Take Control issue on February 3, 2025. Adds "LogLevel=8" to BASupSrvc.ini and restarts Take Control services. I found all of our installations had the file located in the first $FileName variable. Uncomment the line that corresponds to the correct location for the .ini.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$FileName = "C:\ProgramData\GetSupportService\BASupSrvc.ini" | |
#$FileName = "C:\ProgramData\GetSupportService_N-central\BASupSrvc.ini" | |
#$FileName = "C:\ProgramData\GetSupportService_LOGICnow\BASupSrvc.ini" | |
$Pattern = "[Main]" | |
$FileOriginal = Get-Content $FileName | |
[String[]] $FileModified = @() | |
Foreach ($Line in $FileOriginal) | |
{ | |
$FileModified += $Line | |
if ( $Line.Trim() -eq $Pattern ) | |
{ | |
#Add Lines after the selected pattern | |
$FileModified += "LogLevel=8" | |
} | |
} | |
Set-Content $fileName $FileModified | |
Restart-Service -Name BASupportExpressStandaloneService_N_Central | |
Restart-Service -Name BASupportExpressSrvcUpdater_N_Central |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment