Microsoft Surface Hub 2 SmCamera User Manual
Page 60
![background image](/files/873833/content/doc060.png)
created: 2022-05-10
editied: 2023-05-30
#>
Function
Get-SaveFilePath
([string]$initialDirectory) {
#prompts for
filename and path for exporting to CSV, if needed
Add-Type
-AssemblyName
System.Windows.Forms
$SaveFileDialog =
New-Object
System.Windows.Forms.SaveFileDialog
$SaveInitialPath =
".\"
$SaveFileName =
"TeamsMeetingRoomLicenses.csv"
$SaveFileDialog.initialDirectory = $SaveInitialPath
#Sets current
starting path
$SaveFileDialog.filter =
"CSV (*.csv)| *.csv"
#Restricts to CSV by
default
$SaveFileDialog.FileName = $SaveFileName
#Default
filename
$SaveFileDialog.ShowDialog()
#actually asks for the filepath
return
$SaveFileDialog.filename
#Returns filepath for writing to CSV
}
Clear-Host
Write-Host
Write-Host
"Welcome to Meeting Room License Checker."
-ForegroundColor
Green
Write-Host
Write-Host
"This tool will look through your Exchange Online and AAD to find
Resource Account Mailbox UPNs."
Write-host
"It will then report which resource accounts have Teams Room
licenses, which have no license, and which have some other licenses"
Write-host
"This is ver 0.25."