Solved

SCCM Heart Beat

Posted on 2014-03-17
7
501 Views
Last Modified: 2014-03-21
I have a short script I'm trying to push out to my domain computers that uses psexec to force each of the machines to updated their SCCM heart beat. when I ran it I got an error that said: " 'psexec' is not recognized as an internal or external command,
operable program or batch file. "My script is fairly simple and my psexec and script are in the root of C: on the host computer. the script looks like:

C:\Windows\system32>psexec \\<computername> -u <domain\adminusername> -p <password> WMIC/namespace:\\root\ccm path sms_client CALL TriggerSchedule '{0000
0000-0000-0000-0000-000000000003}'

when I run the WMIC from command line on my local computer it works just fine, when I try to script it, not so much.

please assist.
0
Comment
Question by:AlfonsoPina
  • 5
7 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
Comment Utility
Have you tried the WMIC /node:"computername" switch

This should take psexec completely out of the equation.
0
 

Author Comment

by:AlfonsoPina
Comment Utility
no but I'll try it now as a matter of fact
0
 

Author Comment

by:AlfonsoPina
Comment Utility
well, I'm still getting invalid parameter. the fact is that I simply don't want to walk around to 120 desktops and update the SCCM heartbeat. I was trying to do it this way but if you have a better suggestion, so be it.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 31

Accepted Solution

by:
merowinger earned 500 total points
Comment Utility
psexec \\<computername> -u <domain\adminusername> -p <password> cmd /c "WMIC/namespace:\\root\ccm path sms_client CALL TriggerSchedule '{0000
0000-0000-0000-0000-000000000003}'"
0
 

Author Comment

by:AlfonsoPina
Comment Utility
well, that got me closer, now I just get this error:

'0000-0000-0000-0000-000000000003}'"' is not recognized as an internal or extern
al command,
operable program or batch file.
0
 

Author Comment

by:AlfonsoPina
Comment Utility
found my error there, i had word wrap on when I pasted it and it cut off 4 of the "0's" but now I'm getting:

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com


Executing (sms_client)->TriggerSchedule()
ERROR:
Description = Access denied
cmd exited on sddc05wk842d209 with error code -2147217405.
0
 

Author Closing Comment

by:AlfonsoPina
Comment Utility
actually, with one little change to this statement I was able to get it to work. it appears that our network has some sort of security measure that blocks my credentials the way I put them in. so this one worked.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 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

10 Experts available now in Live!

Get 1:1 Help Now