Solved

powershell script to setup logon service account on multiple servers

Posted on 2016-07-15
4
14 Views
Last Modified: 2016-07-18
Hello,
Do you have a script or command line to specific logon account name for the specific service on multiple computers

For example,
the service name called "xyz" and I need to set up logon account svc_appadmin to run this service.

thank you so much for your help in advance.
0
Comment
Question by:creative555
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Gary Dewrell earned 500 total points
ID: 41715955
0
 

Author Comment

by:creative555
ID: 41716256
hm. Isn't it the old way to do it using win32?
How about using powershell remoting so that I can update it on all computers from one computer?

something like this using psremoting:
invoke-command -computer pc01, pc02, pc03 {get-service -name servicename} etc.

I have powershell remoting enabled and all computers are running 2012.

Please help
0
 
LVL 12

Expert Comment

by:Gary Dewrell
ID: 41716257
If you were only getting the service information or setting  those properties that can be set using the set-service cmdlet then yes you would be correct. Unfortunately the set-service cmdlet does not allow you to set the logon account or password.
0
 

Author Closing Comment

by:creative555
ID: 41717630
thank you so much!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
A brief introduction to what I consider to be the best editor for PowerShell.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to dynamically set the form action using jQuery.

895 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now