location

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 April 2, 2025: change button text (a924976)