Solved

What command should I execute to have PSEXEC initiate a GPUPDATE for 400 remote machines?

Posted on 2015-01-26
4
148 Views
Last Modified: 2015-02-19
I have a text file called "Computers.txt". It is located on a server that has PSEXEC installed. It is located in the following path on the server C:\Computers.

I need to execute a GPUpdate to all remote machines. In my text file, all it show is for example:

PCTest1
PCTest2

And so on. That is all I need in the text file right?

So, since I have to execute this command from a server (I have domain admin rights), how would I execute the command?

Given the info above, please type the psexec command exactly as should be.
0
Comment
Question by:joukiejouk
  • 2
4 Comments
 
LVL 23

Expert Comment

by:NVIT
ID: 40572127
Try:
psexec @C:\Computers\computers.txt -u domain\adminname -p password -s -c gpupdate /force

Open in new window

0
 
LVL 3

Accepted Solution

by:
kola12 earned 500 total points
ID: 40572188
You should use this:
psexec @C:\Computers\computers.txt -u domain\adminname -p password gpupdate /force
0
 

Author Comment

by:joukiejouk
ID: 40574189
So when I executed the command, this is what I get (below screen shot ). What does error code -1 mean? Did it fail? I know error code -0 mean it's successful.

update error
0
 
LVL 3

Expert Comment

by:kola12
ID: 40574583
You should get this (this is polish language version):

\\COMPUTERNAME1:

Trwa aktualizowanie zasad...

Aktualizacja zasad użytkownika została ukończona pomyślnie.
Aktualizacja zasad komputera została ukończona pomyślnie.

gpupdate exited on COMPUTERNAME1 with error code 0.

\\COMPUTERNAME2:

Trwa aktualizowanie zasad...

Aktualizacja zasad użytkownika została ukończona pomyślnie.
Aktualizacja zasad komputera została ukończona pomyślnie.

gpupdate exited on COMPUTERNAME2 with error code 0.

...


Maybe you don't have privilage to computers...
0

Featured Post

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

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

8 Experts available now in Live!

Get 1:1 Help Now