Tuesday, 24 August 2021

Calculate Time to Run the Script


 $starttime = (Get-Date)
    get-mailox

$endtime = (Get-Date)
Write-Host "`n`nTotal Time : $(($endtime-$starttime).totalseconds) Seconds"

No comments:

Post a Comment