get all users in windows code example Example: check user of windows Just type following command-line in terminal!! net user