Hide the Automation Manager

Hide the Automation Manager

If you haven’t switched to DCOM yet, and still use Remote OLE Automation, you must launch the Automation Manager program on the server machine, in order to let the server respond to requests coming from client workstations.

The Automation Manager displays a visible window at launch time, which then minimize itself. However, a user can easily bring it on the foreground and accidentally close it, thus stopping the support for Remote OLE Automation on that machine. For this reason, it’s advisable that production systems load the Automation Manager in hidden mode, which can be done using the /HIDDEN option on the command line:

C:WINNTSYSTE;32AUTMGR32.EXE /HIDDEN

If the Automation Manager is loaded in this way, the only way to interactively stop it – short of a machine reboot – is to locate the Task Manager and end the program from there. Alternatively, you can use the following VB routine to close it programmatically:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal _    lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _    hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _    lParam As Any) As LongConst WM_CLOSE = &H10' Return True if the Automation Manager has been ' successfully closed, False otherwiseFunction CloseAutomationManager() As Function    Dim handle As Long    handle = FindWindow("MSAutMgr32", vbNullString)    If handle Then        ' Try to close the Automation Manager        SendMessage handle, WM_CLOSE, 0, ByVal 0&    End If    ' Return True if the Automation Manager isn't running any longer    CloseAutomationManager = (FindWindow("MSAutMgr32", vbNullString) = 0)End Function

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes