Feb 04 2022 01:19 AM
Hi there,
in my script i am writing "connect-AzureAD"
This asks for me a authentication. Once authentication completes, it shows me a message like below with my details.
Account Environment TenantId TenantDomain AccountType
------- ----------- -------- ------------ -----------
xxxxxx xxxxx xxxxxxx xxxx xxxx
i would like to hide this from my script output. Is that possible ?
Feb 04 2022 01:54 AM
SolutionYou can use
$null = connect-AzureAD
if you want to dispose of the output from the connection or
$var = connect-AzureAD
if you want to have the output available for later processing
Feb 04 2022 03:00 AM