That line is in the heart of the CheckService function (in the latest version). 
That would mean that whichever account you are using does not have permissions 
to check one of the services configured to be checked.

So...

- Which of the script are you using version?
- How are you running the script on these systems?
- Which services are configured to be checked?
- Can you post the log file please?

J


From: [email protected] [mailto:[email protected]] On 
Behalf Of Casey Robertson
Sent: Friday, January 16, 2015 12:16 PM
To: [email protected]
Subject: [mssms] Error writing to event log with ConfigMgr startup script

Using Jason's wonderful vbscript to install the client on a number of systems.  
Having a weird error though - there are 16 web servers that in theory are 
identically configured.  However on half of them it works fine and on the other 
half I get this:

C:\Windows\Temp\ConfigMgrStartup.vbs(497, 3) Microsoft VBScript runtime error: 
Permission denied
    + CategoryInfo          : NotSpecified: (C:\Windows\Temp...rmission 
denied:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
    + PSComputerName        : XXX-API-SOAP-06

This would appear to be not having enough permissions to write to the event 
log.  After a quick look at basic registry permissions, machine permissions, 
local admins etc I can't see a delta between a working machine and a 
non-working machine.  Probably missing something obvious but any ideas??


Casey Robertson
Systems Engineer
W 619.878.9099
E [email protected]<mailto:[email protected]>

MINDBODY, Inc.
4051 Broad Street, Suite 220
San Luis Obispo, CA 93401

  [Logo-for-email-signature.jpg] <http://www.mindbodyonline.com/>





Reply via email to