Migrating uses between Skype for Business and Skype Online lately and have been migrating in batches/pilot groups.
Having gotten sick of upding the filename or file location in the powershell script, i went searching and found a nice article on how to create a open file dialog box.
https://ilovepowershell.com/2017/03/08/how-to-open-a-directory-chooser-window-with-powershell/
I'm sure there is a better/easier to complete, but this worked for me.
++++++++++++++++++++++++++++++++++++++++++++
$connect = Read-host "Connect to O365 Skype Online: [Y|N]?"
if($connect -like "Y")
{
Import-Module SkypeOnlineConnector
$userCredential = Get-Credential
$sfbSession = New-CsOnlineSession -Credential $userCredential
Import-PSSession $sfbSession
}
if($userCredential.UserName -eq $nul)
{
write-host "No Crediential Set for move" -ForegroundColor Red
}
else
{
write-host "connected user"
}
$openChooser = New-Object -TypeName System.Windows.Forms.OpenFileDialog
$openChooser.ShowDialog()
$fileimport = import-csv $openChooser.FileName
foreach($i in $fileimport)
{
write-host -ForegroundColor Cyan $i.displayname -NoNewline
write-host " is currently being migrated"
}
++++++++++++++++++++++++++++++++++++++++++++
Zoom Contact Centre API
Quick note for something recently worked on with Zoom Contact Centre and using APIs ClickSend Using ClickSend t...
-
Always having to look for this article when I want to run the commands.. https://practical365.com/exchange-server/powershell-one-liner-get...
-
So this tweet can across my twitter feed today, I had to share as I think its a fantastic post. Again from Richard Brynteson at maste...
-
Always loosing this command, and takes me a few tries to find it again for what I'm looking for. In the CSCP when looking at the assoc...