Re: I have problem executing vbs script with SMS
- From: telekom.yu <telekomyu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 9 Nov 2006 05:36:02 -0800
"Steve Thompson" wrote:
"telekom.yu" <telekomyu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in messageThanks for trying but I don’t think that’s the problem.
news:FFD3C7E6-88EF-45DF-B02B-FE21E366FD3A@xxxxxxxxxxxxxxxx
I have SMS 2003 sp2. Two primary sites, and little less then 7000 clients
(Xp and 2000).
I need to repair Trend Micro client on my XP sms clients. In order to do
that I need to execute file ipXfer.exe with some options. When this file
execute, among other things it restart Trend Micro service. Since I don't
have this file on my Xp clients I need to copy it locally. For all this I
created this vbs script:
------------------------------------------------------------------------------------------------
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\servername\Tm\IpXfer.exe", "c:\windows\system32\"
Set objShell = WScript.CreateObject("WScript.Shell")
Set objExecObject = objShell.Exec("%comspec% /c ipXfer.exe -s TMBGOSC2 -p
80
-m 1 -c 44268")
------------------------------------------------------------------------------------------------
When I execute this script locally everything works fine. File ipXfer.exe
get copied where I want it and gets executed like I want it.
But when I create SMS package and try to advertise it to my XP clients
something goes wrong and I don't get ipXfer.exe file where I want. I just
don't get it copied where I want, and since I don't have file on XP
clients I
can't repair Trend Micro client.
You probably need to define a network client connection account to allow the
local advertisement to gain access to network resources.
Steve
I’m sure that network connection account isn’t the problem because I don’t
have connection problem with other packages.
I recreated my packages from scratch and this time I mange to copy file that
I want where I want but still I’m not sure that that file get executed right
because I don’t see that Trend Micro service restart. Regardless of this I
get success message for my advertisement. I’ve also tried all this with bat
and exe files but same thing, everything works locally but nothing with SMS
distribution. I also tried working with unc name and giving drive letter but
nothing work. Here is part of execmgr.log where everything looks fine.
Mandatory execution requested for program TM fix vbs and advertisement
BN12002E execmgr 9.11.2006 13:17:47 2328
Creating mandatory request for advert BN12002E, program TM fix vbs, package
BN10001D execmgr 9.11.2006 13:17:47 2328
Policy arrived for parent program TM fix vbs execmgr 9.11.2006 13:17:47 3836
(0x0EFC)
Raising event:
[SMS_CodePage(852), SMS_LocaleID(2074)]
instance of SoftDistProgramOfferReceivedEvent
{
AdvertisementId = "BN12002E";
ClientID = "GUID:D4ECBE29-AB61-44B0-850C-F8D79CE999AE";
DateTime = "20061109121747.325000+000";
MachineName = "IT_SCE_5";
ProcessID = 1692;
SiteCode = "BN1";
ThreadID = 3836;
};
execmgr 9.11.2006 13:17:47 3836 (0x0EFC)
Requesting content from CAS for package BN10001D version 1 execmgr 9.11.2006
13:17:47 2328
Raising event:
[SMS_CodePage(852), SMS_LocaleID(2074)]
instance of SoftDistWaitingContentEvent
{
AdvertisementId = "BN12002E";
ClientID = "GUID:D4ECBE29-AB61-44B0-850C-F8D79CE999AE";
DateTime = "20061109121748.603000+000";
MachineName = "IT_SCE_5";
PackageName = "BN10001D";
PackageVersion = "1";
ProcessID = 1692;
ProgramName = "TM fix vbs";
SiteCode = "BN1";
ThreadID = 2328;
};
execmgr 9.11.2006 13:17:48 2328
Successfully raised SoftDistWaitingContentEvent event for program TM fix
vbs execmgr 9.11.2006 13:17:48 2328
Execution Request for program TM fix vbs state change from NotExist to
WaitingContent execmgr 9.11.2006 13:17:48 2328
Content is available for program TM fix vbs. execmgr 9.11.2006 13:17:48 3552
(0x0DE0)
Executing program wscript.exe IpXfer.vbs in Admin context execmgr 9.11.2006
13:17:48 3552 (0x0DE0)
Execution Request for program TM fix vbs state change from WaitingContent to
Running execmgr 9.11.2006 13:17:48 3552 (0x0DE0)
Checking content location \\syma-db.it.telekom.yu\SMSPKGE$\BN10001D\ for
use execmgr 9.11.2006 13:17:48 3552 (0x0DE0)
IsNetResourceAccessible failed with error code 0x00000569 execmgr 9.11.2006
13:17:50 3552 (0x0DE0)
Rolling over to network access account to check content
location execmgr 9.11.2006 13:17:50 3552 (0x0DE0)
Successfully selected content location
\\syma-db.it.telekom.yu\SMSPKGE$\BN10001D execmgr 9.11.2006 13:17:50 3552
(0x0DE0)
Executing program as a script execmgr 9.11.2006 13:17:50 3552 (0x0DE0)
Found executable file wscript.exe with complete path
C:\WINDOWS\system32\wscript.exe execmgr 9.11.2006 13:17:50 3552 (0x0DE0)
Successfully prepared command line "C:\WINDOWS\system32\wscript.exe"
IpXfer.vbs execmgr 9.11.2006 13:17:51 3552 (0x0DE0)
Command line = "C:\WINDOWS\system32\wscript.exe" IpXfer.vbs, Working
Directory = \\syma-db.it.telekom.yu\SMSPKGE$\BN10001D\ execmgr 9.11.2006
13:17:51 3552 (0x0DE0)
Created Process for the passed command line execmgr 9.11.2006 13:17:51 3552
(0x0DE0)
Raising event:
[SMS_CodePage(852), SMS_LocaleID(2074)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "BN12002E";
ClientID = "GUID:D4ECBE29-AB61-44B0-850C-F8D79CE999AE";
CommandLine = "\"C:\\WINDOWS\\system32\\wscript.exe\" IpXfer.vbs";
DateTime = "20061109121751.034000+000";
MachineName = "IT_SCE_5";
PackageName = "BN10001D";
ProcessID = 1692;
ProgramName = "TM fix vbs";
SiteCode = "BN1";
ThreadID = 3552;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "\\\\syma-db.it.telekom.yu\\SMSPKGE$\\BN10001D\\";
};
execmgr 9.11.2006 13:17:51 3552 (0x0DE0)
Raised Program Started Event for Ad:BN12002E, Package:BN10001D, Program: TM
fix vbs execmgr 9.11.2006 13:17:51 3552 (0x0DE0)
Program exit code 0 execmgr 9.11.2006 13:17:52 2324 (0x0914)
Looking for MIF file to get program status execmgr 9.11.2006 13:17:52 2324
(0x0914)
Script for Package:BN10001D, Program: TM fix vbs succeeded with exit code
0 execmgr 9.11.2006 13:17:52 2324 (0x0914)
Raising event:
[SMS_CodePage(852), SMS_LocaleID(2074)]
instance of SoftDistProgramCompletedSuccessfullyEvent
{
AdvertisementId = "BN12002E";
ClientID = "GUID:D4ECBE29-AB61-44B0-850C-F8D79CE999AE";
DateTime = "20061109121752.280000+000";
MachineName = "IT_SCE_5";
PackageName = "BN10001D";
ProcessID = 1692;
ProgramName = "TM fix vbs";
SiteCode = "BN1";
ThreadID = 2324;
UserContext = "NT AUTHORITY\\SYSTEM";
};
execmgr 9.11.2006 13:17:52 2324 (0x0914)
Raised Program Success Event for Ad:BN12002E, Package:BN10001D, Program: TM
fix vbs execmgr 9.11.2006 13:17:52 2324 (0x0914)
Execution is complete for program TM fix vbs. The exit code is 0, the
execution status is Success execmgr 9.11.2006 13:17:52 3552 (0x0DE0)
--
System Administrator
Telecom Serbia
.
- Follow-Ups:
- Re: I have problem executing vbs script with SMS
- From: Steve Thompson
- Re: I have problem executing vbs script with SMS
- References:
- Re: I have problem executing vbs script with SMS
- From: Steve Thompson
- Re: I have problem executing vbs script with SMS
- Prev by Date: Please Help With Boundaries!
- Next by Date: How do I completely cancel a software distribution?
- Previous by thread: Re: I have problem executing vbs script with SMS
- Next by thread: Re: I have problem executing vbs script with SMS
- Index(es):
Relevant Pages
|