A user asked if anyone had a working ControlUp script to analyze Outlook Add-in load time. The user was provided with a script that specified a path to the Outlook Add-in manifest file, created a new Outlook Application object, recorded the start time, loaded the Add-in, recorded the end time, calculated the load time, then displayed the result in seconds. The user thanked the other for the help.
Read the entire ‘Analyzing Outlook Add-in Load Time with ControlUp Script’ thread below:
Hi, someone maybe already have a working CU script that shows the Outlook Add-in load time to analyze quickly if customer tells outlook start is slow?
Give this a whirl Simon. I don’t have outlook to test this script.
https://chat.openai.com/c/1024ac91-f4b9-4d77-b258-a3edd1ab8ff0
Specify the path to the Outlook Add-in manifest file
$manifestPath = "C:\Path\To\Your\AddinManifest.xml"
Create a new Outlook Application object
$outlook = New-Object -ComObject Outlook.Application
Record the start time
$startTime = Get-Date
Load the Add-in
$outlook.Addins.Add($manifestPath)
Record the end time
$endTime = Get-Date
Calculate the load time
$loadTime = $endTime – $startTime
Display the load time in seconds
Write-Host "Add-in Load Time: $($loadTime.TotalSeconds) seconds"
Release the Outlook COM object
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($outlook) | Out-Null
Cool. Thanks will try tomorrow
Continue reading and comment on the thread ‘Analyzing Outlook Add-in Load Time with ControlUp Script’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers