This report shows AD users without Logon Script but some users don't need to be checked.
Some user OU examples:
OU=Spain, OU=EUROPE, OU=User_Accounts, DC=mydomain, DC=net
OU=
Common_Users, OU=Spain, OU=EUROPE, OU=User_Accounts, DC=mydomain, DC=net
OU=
IT, OU=Spain, OU=EUROPE, OU=User_Accounts, DC=mydomain, DC=net
OU=IT, OU=
TEST, OU=Spain, OU=EUROPE, OU=User_Accounts, DC=mydomain, DC=net
OU=Greece, OU=EUROPE, OU=User_Accounts, DC=mydomain, DC=net
I don't need to list the Highlighted ones but will need list only the users with
OU=SPAINMany thanks
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.LogonScript,
tblADusers.OU
From tblADusers
Where tblADusers.LogonScript Is Null