Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-01-26
4
Medium Priority
?
175 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 25

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 1000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

916 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