Similar to:
Get-ADUser -Filter {memberOf -ne "cn=GroupT,ou=Sales,dc=domain,dc=com"} | Select Name, sAMAccountName | Export-Csv .\Users.csv -NoTypeInformation
You must specify the full distinguished name of the group. I selected sAMAccountName as well as Name, as Name does not uniquely identify users in AD. If you need users not members of multiple groups, then "-AND" or "-OR" more similar clauses
in the Filter parameter, according to your intent.
Richard Mueller - MVP Enterprise Mobility (Identity and Access)