Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to find who is the Local System Account?

Posted on 2016-10-01
8
Medium Priority
?
65 Views
Last Modified: 2016-11-09
I have 2 accounts(admin1 and admin2) both have same rights,administrator rights
,so i use a tool called ''nssm''becouse i want to run a .bat file as system and the tool is super ok but Have only 2 options:

    1.Log on as Local System Account + this option i desire: Allow service interract with Desktop

    2.Use this account(set user and pass),this allow me to run only in backround
If i set 1'st option the tool runs on Admin2 desktop after i restart the PC and i want to run only in admin1, so i want to make ADMIN1 the oly Local System Account


P.S
I think the tool not so good..any ideas?
thanks
0
Comment
Question by:john lambert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 98

Expert Comment

by:John Hurst
ID: 41824995
Right Click on Computer and select Manage. Go to Users and Groups, Users and the users will list on the right. See if there is a description (you can also select Properties of any user).
0
 
LVL 35

Expert Comment

by:ste5an
ID: 41825168
What kind of batch is it and how often do you want to run it?

Maybe scheduled tasks is an option.
0
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 41825269
A process can only interact with the desktop of the same user (by default). Everything different needs special and sophisticated setup.
A scheduled task (as mentioned above) with a user can interact with the desktop of that user, so it should be a solution. You do not need any additional application to manage this.

But to give better advice, we would need to know the details of what you want to do and the batch does.
1
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
LVL 71

Assisted Solution

by:Qlemo
Qlemo earned 2000 total points
ID: 41826173
From private message:

well i use a Scanner.bat and i need to run it 24/24h with all costs,even if they restart or log off my acc., the .bat file must run as system and start only on my desktop(we are 4 administrators) every time rdp Power is ON.
You can't do that, unless your RDP session is running 24/7 too. As said, a scheduled task has to run under the same account as yours to be able to display a window. Running the batch as System by changing the account inside the batch file is feasible, but tricky and prone to failure. Whatsoever, logging off your RDP session kills the task.
If you want to run the task without need to have a RDP session, you won't get a window ever.

The only reliable way is to have a generator and a viewer process running independent from each other. The generator process might e.g. write into a file, changed each day to make cleanup easy (if kind of logging), or a file replaced which each go and only containing the most recent  results (whatever they are).
1
 

Author Comment

by:john lambert
ID: 41826354
someone work for a such of script using some c# things etc....
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 41826376
Without knowing what the script does, no-one will be able to tell. You can try to create a Gig project for this with a suitable description.
0
 
LVL 56

Expert Comment

by:McKnife
ID: 41827032
John, your setup is not clear to me.
Running processes as system and at the same time visible on your desktop is possible using psexec -s -i some.exe, by the way. psexec is downloadable from Microsoft.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question