Skip to content

Instantly share code, notes, and snippets.

@2legit2git
Last active February 5, 2025 10:57
Show Gist options
  • Save 2legit2git/f1ebd37b848707b507414534f0cecf4b to your computer and use it in GitHub Desktop.
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.
$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