Gerenios / AADInternals

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

Allow suppression of import-module message #70

Closed 3pichaxz0r closed 1 year ago

3pichaxz0r commented 1 year 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 1 year 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 1 year 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.