Open pompushko opened 3 years ago
$AccountGSuiteLicenses = Get-GSUserLicense -User (get-aduser $UserAccount.SamAccountName -property EmailAddress).EmailAddress -CheckAll
Does it have any timeouts? This part of code in big script. Some times it return null or empty ;( Any ideas? Thank you.
Curious what the -verbose output says. when you run the command by itself from the console?
$AccountGSuiteLicenses = Get-GSUserLicense -User (get-aduser $UserAccount.SamAccountName -property EmailAddress).EmailAddress -CheckAll
Does it have any timeouts? This part of code in big script. Some times it return null or empty ;( Any ideas? Thank you.