Solved

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

Posted on 2015-01-26
4
156 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 24

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

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
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 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…

820 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