How to tell if a domain user is a local admin on the machine
284
Solution 1
Try net localgroup administrators
instead. If you'd like a PowerShell command to check a specific user, take a look at this blog post. I would hope however that there aren't so many local administrators that you can't spot the user in question.
Solution 2
Try
C:\>NET USER SomeUser /domain
instead of
C:\>NET USER MYDOMAIN\SomeUser
Solution 3
Try this command to get all information of the user. it's a powershell command.
GPRESULT -Z /USER [username]
Related videos on Youtube
Author by
Ajith
Updated on September 18, 2022Comments
-
Ajith over 1 year
I have above 50,000 rows of data in my excel sheet. It makes too much of time to insert the data into database table because it runs in for loop(spring boot for backend). Can some one suggest me the best for way for insert the data into database from excel in sql query.
-
Ramhound over 10 yearsYou do understand that a domain level permission would override any local permissions you might assign a local profile right?
-
rtf over 10 years@Ramhound Seems like he's concerned with domain users, not local users. He understands how to check a local account, but not how to check if a domain account is a local admin from the command line.
-
Mike Christensen over 10 yearsCorrect. I was just looking for command line shortcuts for things I was already doing.
-
Rajesh about 3 yearsyou're using spring data JPA or spring JDBC?
-
Ajith about 3 yearswe are using JPA
-
Rajesh about 3 yearsFirst read data from excel and added to POJO List and use repository.saveAll()
-
Ajith about 3 yearsThanks for your effort. Can i get some regards as you mentioned. Because i am new to this language
-
Rajesh about 3 yearsCheck the answer
-
-
Mike Christensen over 10 yearsExactly what I was looking for! Thank you sir.
-
Matthew Williams over 9 yearsSince this question has already has an accepted answer you need to give more detail as to why your method is a more suitable option.
-
Ajith about 3 yearsThanks for effort. Actually we have using java spring boot as backend. So it is not possible in using node js.
-
Chamikara Samarasekara about 3 yearsBut we did 1 million rows within 10 minutes using nodejs app (ram 512, 1 cpu)