How can I tell if a user is local or domain?

How can I tell if a user is local or domain?
Answer
use echo %logonserver% command
and check the output. If it is the local machine then you are using a local account and if it is a DC that is mentioned then you are using a domain user. Another option is to use whoami command and: If you are logged using a local account then you will get as a result Computerusername.
 

Tìm kiếm

Back
Top