Solved

how to refresh GPO remotly

Posted on 2014-12-22
7
331 Views
Last Modified: 2014-12-22
I want to send a command through Lansweeper to refresh computer policy

so basically what I want to do is

 psexec \\{smartname} gpupdate /force /boot

but it doesn't work

psexec \\{smartname} gpupdate

works fine by the way
0
Comment
Question by:Physimed
7 Comments
 
LVL 3

Expert Comment

by:kola12
ID: 40512881
Hi. You should use " mark.
Try this:
psexec \\{smartname} "gpupdate /force /boot"

By the way... in my environment work booth of comands:
psexec \\{smartname} "gpupdate /force /boot" and psexec \\{smartname} gpupdate /force /boot
0
 

Author Comment

by:Physimed
ID: 40512921
Doesn't work :(

Lansweeper give this message; Errorcode: 80020009
0
 
LVL 3

Assisted Solution

by:kola12
kola12 earned 500 total points
ID: 40512933
Try on one remote computer this:
psexec \\{smartname} cmd

When you connect to remote pc execute:
gpupdate /force /boot

If you have permissions you will be do this without error
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 3

Expert Comment

by:TropicalBound
ID: 40512934
Error Code 80020009 can indicate that the path is not found.   Try this (In this example, psexec is located in C:\PSTools.  Modify accordingly for your folder structure):

cmd /K C:\PSTools\psexec \\{smartname} "gpupdate /force /boot"
0
 

Author Comment

by:Physimed
ID: 40512938
not working either

I'm quite sure my path is good because the command psexec \\{smartname} gpupdate

(without parameters) is working fine
0
 
LVL 3

Accepted Solution

by:
kola12 earned 500 total points
ID: 40512944
Try on one remote computer this:
psexec \\{smartname} cmd

When you connect to remote pc execute:
gpupdate /force /boot

If you have permissions you will be do this without error
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40512945
Kola12's advice will solve it.
Please note that specops has a free ADUC mmc menu extension that will perform what you need:
http://www.specopssoft.com/products/specops-gpupdate
(as well as restart/shutdown/update search/wake-on-LAN)
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

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

823 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