location
less than a minute
Save location as variable
$RunFrom = Split-Path -Parent $MyInvocation.MyCommand.Path
$reportfile = "$RunFrom\ExchangeActiveSyncDeviceReport.csv"
map a drive
New-PSDrive -Name F -PSProvider FileSystem -Root \\server\share
Last modified July 21, 2024: update (e2ae86c)