Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to refresh GPO remotly

Posted on 2014-12-22
7
Medium Priority
?
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1500 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
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
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 1500 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 56

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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses

705 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