Solved

powershell script to setup logon service account on multiple servers

Posted on 2016-07-15
4
13 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hi all.   The other day I had to change the passwords for a bunch of users on the fly. Because they were so many, I decided to do it in an automated way and I would like to share it with you all.   If you are not doing it directly in a Domain Co…
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

13 Experts available now in Live!

Get 1:1 Help Now