MRToolbox.psm1

Function Copy-MRExample
{

do
{
Write-Host "*** Select an option to copy an MRToolbox example to clipboard ***" -ForegroundColor Yellow
Write-Host "`n [1] Connect to O365 Tenant" -ForegroundColor Yellow
Write-Host " [2] Find Mailbox Location" -ForegroundColor Yellow
Write-Host " [3] Get Move Requests" -ForegroundColor Yellow
Write-Host " [4] AD Sync" -ForegroundColor Yellow
Write-Host "`n [0] Quit" -ForegroundColor Yellow
Write-Host ""  -ForegroundColor Yellow
$input = Read-Host "Please select an option"
switch ( $input )
{
    '1'
    { 
    }
    '2'
    {
    }
    '3'
    {
    }
    '4'
    {
    }
    '0' { exit }
    default
    {
        Write-Host ""
        Write-Host "No Option Selected"
        Write-Host ""
    }
}
} while(1 -eq 1)
}

Function Get-MRHelp {
Write-Host "-------------------------------------------------" -foregroundcolor Yellow
Write-Host " __ __ _____ _______ _ _ " -foregroundcolor Yellow
Write-Host "| \/ | __ \__ __| | | | " -foregroundcolor Yellow
Write-Host "| \ / | |__) | | | ___ ___ | | |__ _____ __" -foregroundcolor Yellow
Write-Host "| |\/| | _ / | |/ _ \ / _ \| | '_ \ / _ \ \/ /" -foregroundcolor Yellow
Write-Host "| | | | | \ \ | | (_) | (_) | | |_) | (_) > < " -foregroundcolor Yellow
Write-Host "|_| |_|_| \_\ |_|\___/ \___/|_|_.__/ \___/_/\_\" -foregroundcolor Yellow
Write-Host " " -foregroundcolor Yellow
Write-Host " A PowerShell toolbox for Microsoft 365." -foregroundcolor Yellow
Write-Host "-------------------------------------------------" -foregroundcolor Yellow
Write-Host "`nAuthor: Marc Rhodes" -foregroundcolor Yellow
Write-Host "Version: 1.0" -foregroundcolor Yellow
Write-Host "`nThis PowerShell module contains a collection of tools for Microsoft 365, Intune, Graph, Azure AD, Conditional Access, zero trust strategies, etc." -foregroundcolor Yellow
Write-Host "`nThe home of this module: https://github.com/sojo1024/MRToolbox" -foregroundcolor Yellow
#Write-Host "Please follow me on my blog https://rhodeshomelab.com, and on LinkedIn." -foregroundcolor Yellow
Write-Host "`nTo get started, explore and copy script examples to your clipboard with:" -foregroundcolor Yellow
Write-Host "Copy-MRExample" -ForegroundColor Cyan
}

Get-ChildItem (Split-Path $script:MyInvocation.MyCommand.Path) -Filter '*.ps1' -Recurse | ForEach-Object { 
        . $_.FullName 
        }

Export-ModuleMember -Function Get-MRHelp, Export-IntuneConfig, Copy-MRExample