<< Back to Script Library

Ivanti Environment Manager Logging – Disable

Disables Environment Manager logging on the selected endpoint if Environment Manager is installed. This SBA requires EM 8.6 or higher.

Version: 2.2.6
Created: 2018-03-26
Modified: 2018-06-06
Creator: Landon Winburn
Downloads: 43
Tags:
The Script Try this script with ControlUp Copy Script Copied to clipboard
Const HKEY_LOCAL_MACHINE =  &H80000002
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!.rootdefault:StdRegProv")

If oReg.EnumKey(HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "", "") <> 0 Then
  Wscript.Echo "Environment Manager not installed."
  Wscript.Quit
End If

oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "LockdownLogging"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "LockdownLoggingProcesses"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "LockdownDebugLevel"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "FbrCorruptionChecking"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "EMLoaderDebugging"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "DebugPath"
oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment Manager", "EmLoaderDebugLevel"

If oReg.EnumKey(HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "", "") = 0 Then
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "Enabled"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "LogLevel"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "LogSessionName"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "LogFileName"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "LogFileSizeLimitMB"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "BufferSizeKB"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "MaxBuffers"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "MinBuffers"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "LoggingMode"
  oReg.DeleteValue HKEY_LOCAL_MACHINE, "SOFTWAREAppSenseEnvironment ManagerEventTracing", "Components"
End If

Wscript.Echo "Environment Manager logging disabled."
START YOUR TRIAL

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.