Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.2k stars 210 forks source link

Allow suppression of import-module message #70

Closed 3pichaxz0r closed 9 months ago

3pichaxz0r commented 11 months ago

When importing the module | out-null is ignored and messages are still written to the console. Proposed change would be to change use from write-host to something that supports out-null

3pichaxz0r commented 11 months ago

When the module is loaded and it attempts to change the console window title it also throws an error when run in a non-interactive environment.

NestoriSyynimaa commented 9 months ago

The doesn't seem to be a good alternative for Write-Host at the moment :( I surrounded setting the title in try-catch block.