CLI Get Users with State string

Attempting to run the following command and output to file to get a list of all inactive users in system. It is however pulling a list of all users. Any suggestions. THanks

gc users list --autopaginate --state string="inactive" > C:\Users\JRR9485\GC\inactiveusers.json

Looks like I found..,see below

gc users list -a --state=inactive > C:\Users\JRR9485\GC\inactiveusers.json

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.