>>>ATTENTION
ATTENTION: This PowerShell script is not official and is not supported by LANDESK
Please review the Share IT disclaimer here: LANDesk Share IT Disclaimer
It is a tool intended to help support and LANDesk users to quickly gather log files and useful information from a Core Server and / or client devices.
Tested environments:
- Core Server 9.5 SP2
- Windows 7
- Windows 8
- Windows 8.1
- Core Server 9.6
- Windows 7
- Windows 8
- Windows 8.1
>>>DOWNLOAD LINK
>>>VIDEO
>>>GETTING STARTED - TROUBLESHOOTING
- Rights / Requirements
You have to run this script as an Administrator with at least Local Administrator rights and Domain Administrator rights if you want to gather Client's logs.
You have to run this script on a Core Server.
- Execution Policy Change
As default Security Settings are usually preventing scripts to run on a server, you may see this message:
As this script is not altering any file or folder, you can safely run it by putting Yes or Y
Here is the link given by Microsoft about the Execution Policies:
In order to check manually if your policies are authorized to run, you can type in a PowerShell window Get-ExecutionPolicy:
You can then modify it by typing Set-ExecutionPolicy Unrestricted which will lead you to the previous prompt:
Here is a Technet article about these commands that may be useful:
ATTENTION:Please remember to set the Execution Policy back to its default settings when you have finished to run the script
>>>DESCRIPTION
This script will be creating in the C: drive these empty folders and then populate them with your selections:
Once you select any options, this will copy / export the logs and files related to the feature you chose into these folders.
You can then, from the Main menu, compress the folder LDLogsRep, it doesn't require any DLL or program to work. This will give you a "YourCompanyName_LDLogsRep_DateAndTime.zip" into your C: drive.
>>>HOW IT WORKS
When you execute the script, you will first be prompted for your Company Name so that the zip file generated will contain it (easier for Support to identify when we receive plenty of them).
Then here are the menus you will have:
Main Menu
1. Gather Core Server logs | Shows the Server Menu detailed below |
2. Gather Client logs | Shows the Client Menu detailed below |
C. Compress the files | Compress the folder created by the script that will contain all the logs |
Q. Quit and Exit | Quit and Exit the script |
Server Menu
ATTENTION: In order to determine if the server is using "C:\Program Files (x86)" or "C:\Program Files", both paths are tested and the script sets variables according to the result. It means that if you installed LANDESK on another drive, you will have to modify these paths
1. Alerting | Copy alert*.* and sendemai*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
2. AMT | Copy amt*.* and ipmi*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
3. Software Deployment | Copy LANDesk.Scheduler.GlobalScheduler*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
4. Policy Software Deployment | Copy apm*.* and apm*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
5. Licensing | Copy landesk.managementsuite.licensing*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
6. vaminer | Copy vaminer*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
7. Agent - Scheduled Task Handler | Copy scheduletaskhandler*.* and cab_*.* | from C:\Program Files\LANDesk\ManagementSuite\log |
8. Advance Agent | Copy *.exe.log | from C:\Program Files\LANDesk\ManagementSuite\ldlogon\AdvanceAgent |
E. Event Viewer | Export Errors and Warnings from Application and System to CSV files | |
V. Core Version and Patches Installed | Export Patches key and values | from HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDesk\ManagementSuite\Setup\Version |
Q. Quit And Return To Main Menu | Return to the Main menu |
Client Menu
ATTENTION:In order to test the client connectivity, a simple 'ping' is sent to it and will let you access to the Client menu if it worked or simply going back to the Main menu if it doesn't
INFORMATION: The client's Log folder in 9.6 agents is entirely copied from c$\ProgramData\LANDesk\ to the -- FULL LOG FOLDER -- folder in C:\LDLogsRep\Client in order to get all other files that may be useful if not included in your next choices.
1. Security and Patch Manager - Vulscan | Copyvulscan*.*andsoftmo*.log | from c$\ProgramData\vulscan |
2. AntiVirus | Copyldav*.logandmsi_instal*.log | from c$\ProgramData\LANDeskAV |
3. Common Base Agent | Copyresidentagent*.*,residentagent*.*andservicehost*.* | from c$\Program Files (x86)\LANDesk\Shared Files and \Log |
4. Cloud Services Appliance | Copy proxyhos*.log and brokerconfi*.log | from c$\Program Files (x86)\LANDesk\Shared Files, \LDClient and \Log |
5. Inventory Scanner | Copy ldiscn*.log | from c$\ProgramData\LANDesk\Log |
6. Local Scheduler | Copy localSc*.log, ldsystemevent*.log and ldsystemevent*.log | from c$\ProgramData\LANDesk\Log and \LDClient |
7. Software License Monitoring | Copy gatherproduct*.log and *.xml | from c$\Program Files (x86)\LANDesk\LDClient\Data and \proddefs |
8. Software Distribution Policies | Copy policysync*.log | from c$\ProgramData\LANDesk\Log |
9. Software Distribution - Multicasting | Copy policysync*.log and tmcsv*.log | from c$\Program Files (x86)\LANDesk\LDClient\Data and c$\ProgramData\LANDesk\Log |
10. Alerting | Copy aler*.log, tmcsv*.log, tmcsv*.log, createmonitor*.log | from c$\Program Files (x86)\LANDesk\Shared Files and \LDClient |
11. AMT | Copy amtmo*.log | from c$\Program Files (x86)\LANDesk\LDClient and \Log |
E. Event Viewer | Export Errors and Warnings from Application and System to CSV files | |
Q. Quit And Return To Main Menu | Return to the Main menu |