/build/static/layout/Breadcrumb_cap_w.png

How to Import Multiple Windows Monitoring Log Enablement Package (LEP) via PowerShell Script




1.     In order to import Log Enablement Package for Windows Server 2003 we need to use the Logman remote

        functionality and execute it on a Windows Server 2008 or later operating system. The

        PowerShell script ImportLEPRemotely.PS1 allows for the importing of Windows Server 2003 and later

        Log Enablement Package but must be ran from a Windows Server 2008 or later machine. This script contains

        a ServerList file which allows for specific or global targeting of servers on the network.

        The ServerList file contains two sections. The first is called [All_Servers], which is a list of

        Log Enablement Package that will be imported on all servers. The second section is called [Specific _Servers]

        and it lists the Log Enablement Package to be applied to defined servers.

                       [All_Servers]

                       WSR_Processor_Alerts

                       WSR_Memory_Alerts

                       WSR_Disk_Alerts

 

 

                       [Specific_Servers]

                       Server1 = AD_AddressBook_Alerts;  AD_AsychronousThreadQueue_Alerts

                       Server2  = AD_AddressBook_Alerts;  AD_AsychronousThreadQueue_Alerts

                       Server3 = SQLServer_Workload_Alerts; SQLServer_DataAccess_Alerts

 

                       Once you have configured your list add the ImportLEPRemotely.PS1 file and all relevant

                       Log Enablement Package files to the same directory.

 

2.    Open PowerShell and run the script. If Successful all Log Enablement Package on the remote machines should

       be imported.

       If you get an Access denied error you may need to configure the firewall on these remote servers.

       This can easily be done thru GPO.      

 

      Enable Performance Monitor access on Remote Systems

1.    Go to Run and type gpmc.msc.

2.    Click on the plus sign next to Forest then Domains, and the plus sign next to the Domain where you will be creating the Group Policy.

3.    Click the plus sign next to Group Policy Objects then right click and select New.

i338T8.png



4.    The New GPO Dialog is displayed. Enter the name of the GPO and click Ok.

whQRgB.png



4.    Right Click on the domain you would like to link and select Link an existing GPO….

WEzLHB.png



5.    Right Click on the domain you would like to link and select Link an existing GPO….

owiPi1.png



6.    Select the GPO you would like to link.

udUXlo.png



7.    Right click the new GPO and select Edit.

c2BEm7.png



8.    The Group Policy Management Editor is displayed. Click on the plus sign next to

       Computer Configuration and navigate to the Windows Firewall with Advanced Security and

        right click on the Inbound Rules and select New Rule…

L29D6Z.png



9.    The New Inbound Rule Wizard is displayed.  In the right panel choose the Predefined:

       radio button and select Performance Logs and Alerts from the drop down box.

reI7bV.png



10.     In the Wizard click Next for the default selections, then click Finish.

  W727PE.png



11.    Close all open windows and rerun the script.


Comments

This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ