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 March 28, 2025: refine caf guidelines (eae1633)