_DeportModule.ps1
try { Remove-Module AadSupport Write-Host "AadSupport removed." -ForegroundColor Yellow } catch { Write-Host "AadSupport already removed." -ForegroundColor Yellow } try { $file = Get-Content "AadSupport.unpublish" } catch {} if ($file) { ren "AadSupport.psd1" "AadSupport.publish" ren "AadSupport.unpublish" "AadSupport.psd1" } Import-Module -Name ".\AadSupport.psd1" Get-Module AadSupport Write-Host "Empty AadSupport Imported. Ready for Un-Publishing." -ForegroundColor Yellow |