The UFT log files are located in one of two places depending on how the machine is configured.
%APPDATA%Hewlett-PackardUFTLogs
or
C:UsersAppDataRoamingHewlett-PackardUFTLog
HPE Document [KM00467327](https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM00467327) has many details on how to configure the logs into debug mode to capture details for Support. However I have found this to be very detailed and time consuming to locate the files and change them. I have found [UFTLogs](https://github.com/TomMargrave/UFTLogs) which is a VBScript file that will assist in changing and capturing logs.
## More information about [UFTLogs](https://github.com/TomMargrave/UFTLogs)
### Issues addressed
1. Manual changing of the xml can lead to time lost and manual errors.
2. Confusion on what items were changed and needs to be changed back.
#### Following items are addressed with this code.
1. Check to see if UFT is running. Script will ask you to close UFT and exit.
2. Check to see if UFT remote agent is running. Script will kill agent if running after notifying.
3. Ask to delete UFT current logs.
4. If backup does not exist, creates a back up of the log.config.xml file as log.config.xml.BAK in the same directory.
5. Asks to set UFT Core, License, Help, HTML Report Logger, Mobile and API in debug logging mode. If user answers ''Yes'', log mode will be set to Debug. If user answers ''No'', log mode will remain or be reset to ''Error''.
### Usage:
usage: UFTLogs.vbs
Please add likes or comments if you use this script or find it helpful.