Quantcast
Channel: LANDESK User Community : Document List - All Communities
Viewing all articles
Browse latest Browse all 6338

Gathering Core Server and Clients' logs / useful files - Powershell Script

$
0
0

>>>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:

Script execute.png

 

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:

execution policy.png

 

You can then modify it by typing Set-ExecutionPolicy Unrestricted which will lead you to the previous prompt:

setexecpolicy.png

 

    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:

treesize1.pngtreesizeserver.pngtreesizeclient.png

 

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:

script menu.pngmenu server.pngmenu client.png

 


Main Menu

 

 

1. Gather Core Server logsShows the Server Menu detailed below
2. Gather Client logsShows the Client Menu detailed below
C. Compress the filesCompress the folder created by the script that will contain all the logs
Q. Quit and ExitQuit 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. AlertingCopy alert*.* and sendemai*.*from C:\Program Files\LANDesk\ManagementSuite\log
2. AMTCopy amt*.* and ipmi*.* from C:\Program Files\LANDesk\ManagementSuite\log
3. Software DeploymentCopy LANDesk.Scheduler.GlobalScheduler*.*from C:\Program Files\LANDesk\ManagementSuite\log
4. Policy Software DeploymentCopy apm*.* and apm*.*from C:\Program Files\LANDesk\ManagementSuite\log
5. LicensingCopy landesk.managementsuite.licensing*.*from C:\Program Files\LANDesk\ManagementSuite\log
6. vaminerCopy vaminer*.*from C:\Program Files\LANDesk\ManagementSuite\log
7. Agent - Scheduled Task HandlerCopy scheduletaskhandler*.* and cab_*.*from C:\Program Files\LANDesk\ManagementSuite\log
8. Advance AgentCopy *.exe.logfrom C:\Program Files\LANDesk\ManagementSuite\ldlogon\AdvanceAgent
E. Event ViewerExport Errors and Warnings from Application and System to CSV files
V. Core Version and Patches InstalledExport Patches key and valuesfrom HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDesk\ManagementSuite\Setup\Version
Q. Quit And Return To Main MenuReturn 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*.logfrom c$\ProgramData\vulscan
2.  AntiVirusCopyldav*.logandmsi_instal*.logfrom c$\ProgramData\LANDeskAV
3.  Common Base AgentCopyresidentagent*.*,residentagent*.*andservicehost*.*from c$\Program Files (x86)\LANDesk\Shared Files and \Log
4.  Cloud Services ApplianceCopy proxyhos*.log and brokerconfi*.logfrom c$\Program Files (x86)\LANDesk\Shared Files, \LDClient and \Log
5.  Inventory ScannerCopy ldiscn*.logfrom c$\ProgramData\LANDesk\Log
6.  Local SchedulerCopy localSc*.log, ldsystemevent*.log and ldsystemevent*.logfrom c$\ProgramData\LANDesk\Log and \LDClient
7.  Software License MonitoringCopy gatherproduct*.log and *.xmlfrom c$\Program Files (x86)\LANDesk\LDClient\Data and \proddefs
8.  Software Distribution PoliciesCopy policysync*.logfrom c$\ProgramData\LANDesk\Log
9.  Software Distribution - MulticastingCopy policysync*.log and tmcsv*.logfrom c$\Program Files (x86)\LANDesk\LDClient\Data and c$\ProgramData\LANDesk\Log
10. AlertingCopy aler*.log, tmcsv*.log, tmcsv*.log, createmonitor*.logfrom c$\Program Files (x86)\LANDesk\Shared Files and \LDClient
11. AMTCopy amtmo*.logfrom c$\Program Files (x86)\LANDesk\LDClient and \Log
E. Event ViewerExport Errors and Warnings from Application and System to CSV files
Q. Quit And Return To Main MenuReturn to the Main menu

Viewing all articles
Browse latest Browse all 6338

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>