You’ll need an app called Srvcheck.exe: Server Share Check.
This can be obtained with the Windows Server 2003 Resource Kit Tools
At an administrator command prompt run (in directory where srvcheck.exe is located):
obviously replace “server-name” with whatever machine you want the list the user/groups/shares for
To restart a machine remotely use the following (from command prompt):
shutdown /m \\computer -f -r -t 1
To restart if you are already RDP’d in to the machine (from command prompt):
In this case my error looked something like:
"The Tomcat6 service was unable to log on..."
This service account does not have the necessary user right "Log on as a service."
Because I was running Tomcat6 on an active directory domain controller (windows server 2003) I was unable to grant “Log on as a service” rights.
Run the service as “NT AUTHORITY\NetworkService” (no quotes) with a blank password.
Login as a Service with NT . . . → Read More: HowTo: Fix Event Log Error “service account does not have the necessary user right “Log on as a service.”