PSGSuite icon indicating copy to clipboard operation
PSGSuite copied to clipboard

Get-GSUserLicense in some cases return null

Open pompushko opened this issue 4 years ago • 1 comments

$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.

pompushko avatar Mar 19 '21 14:03 pompushko

Curious what the -verbose output says. when you run the command by itself from the console?

phatmandrake avatar Apr 09 '21 15:04 phatmandrake