Exception calling "ExecuteReader" with "0" argument(s): "Invalid object name 'AspNetUsers'." At D:\Media\t1\e4ef11ed.ps1:9 char:1 + $rd=$cmd.ExecuteReader() + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SqlException === Admin users (UserType>=10) === Columns: You cannot call a method on a null-valued expression. At D:\Media\t1\e4ef11ed.ps1:14 char:7 + while($rd.Read()){ + ~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At D:\Media\t1\e4ef11ed.ps1:24 char:1 + $rd.Close() + ~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Exception calling "ExecuteScalar" with "0" argument(s): "Invalid object name 'AspNetUsers'." At D:\Media\t1\e4ef11ed.ps1:28 char:1 + $cnt=$cmd.ExecuteScalar() + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SqlException Total users: Tables: Role|RoleClaim|User|UserClaim|UserLogin|UserRole|UserToken|