Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install Acrobat Reader 6

Status
Not open for further replies.

kccane03

MIS
Oct 15, 2003
55
US
I've tried pushing Acrobat from SMS 2003 and it doesn't seem to work. I've created the package, advertisement, and I see it in the collection. When I check the Status, it tells me it's been completed successfully. But on the client I don't see any action. What am I missing? I have it setup to run from the Distribution Point.

Thanks.
 
before it will install you have to uninstall the old version...is the package doing this or is it a new install?
 
It's a new install. I uninstalled a Acrobat Reader on one of my test PC's.
 
Have ya tried any other software pushes to the same machine? (I'm just trying to figure out id this is a acrobat thing or sms thing)
 
I'm trying office now. I'll let you know how it goes.
 
Here are afew things I'm thinkin here:

Can ya run the sms package directly from the machine,

if that works then its safe to say its the dp and not the package, what I have read in the past with 2003 is that if you changed the name of your site server (installed it as zzz and then re-installed it as xxx) the schema gets screwed up and when they re-installed again back to the 1st name, everything worked right. I'm sure with a bit of research there must be a way to update the schema info without a re-install.

 
Here's the status. I ran the advertisement for Office XP this morning. It states this:

Program started for advertisement "PS12000E" ("PS100008" - "Custom (quiet)").

Command line: "C:\WINNT\system32\setup.exe" /qb- TRANSFORMS="New Custom Setup File.MST" /nosp /m off10
Working directory: \\BCCOC-SMS\SMSPKGD$\PS100008User context: NT AUTHORITY\SYSTEM

On the client machine I don't see anything, even in the Run Advertised Programs utility.

I started this about 15-20 minutes ago. Does it take awhile to see something?
 
not to ask a stupid question BUT could you have a dup of that machine? the only reason I ask is that it seems like its running from the view of the site, and obviously it isn't on the client your looking at...running somewhere else?
 
Nope. That's the only one I know of. There shouldn't be another out there. I could change the name and try again.
 
Ok, I've found some problems in the Site Status, Component Status area. Under SMS_DISTRIBUTION_MANAGER, here were the last errors:

1st:
SMS Distribution Manager failed to process package "Reader" (package ID = PS100006).

Solution: Review the previous status messages for further clarification about this problem.

Here are the 2 previous.

SMS Distribution Manager is retrying to distribute package "PS100006".
______________________________________________________

SMS Distribution Manager is starting to distribute package "Reader" to distribution point "["Display=\\XXXXX-SMS\"]MSWNET:["SMS_SITE=PS1"]\\XXXXX-SMS\".

Package ID : PS100006
Distribution Point : ["Display=\\XXXXX-SMS\"]MSWNET:["SMS_SITE=PS1"]\\XXXXX-SMS
I'm not sure exactly what it's trying to say.
 
on the dp sms should have installed a folder/share called smspkg"drive letter"$ ya see it??

if not you might have also set it up to be an dp share that you set up..check the rights on that.

from MS there is the SMSAdmin.pdf file which will go over in detail this whole thing starts in chapter 5 then in chapter 15 it hammers on some details.
 
One last thing, unlike 2.0 you cant use a netapp server as a dp with 2003
 
I'm now getting this error:

The program for advertisement "PS12000C" will not be run ("PS100006" - "Adobe Acrobat Reader 6"). The program settings indicate that this program should only be run on computers where the previous attempt to run this program was not successful. The previous attempt to run this program was successful. This program was previously run successfully at 2004/03/12 11:47:01.

Is there anyway to change this. I would like it to run, even if I already ran it successful.
 
this vbs run on the client machine will do it.


******************************************************************** ' ' Rerunadvertisement.vbs ' ' Syntax: ' cscript.exe Rerunadvertisement.vbs <packageid> <programID> <advertid> [machine] ' wscript.exe Rerunadvertisement.vbs <packageid> <programID> <advertid> [machine] ' '******************************************************************** const HKEY_LOCAL_MACHINE = &H80000002 const KEY_EXECUTION_HISTORY = "SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\Execution History\" const QUERY_SCHEDULES = "select ScheduledMessageID from CCM_Scheduler_ScheduledMessage where ScheduledMessageID LIKE " dim sMachine dim oNamespace dim bCscript dim oRegProvider dim oInParam dim sPackageID dim sProgramID dim sAdvertID '******************************************************************** ' ' OUT function ' '******************************************************************** sub OUT(sText) if (bCscript = true) then WScript.Echo(sText) end if end sub '******************************************************************** ' ' Main ' '******************************************************************** ' ' Determine script host ' if (InStr(lcase(WScript.FullName), "cscript") > 0) then bCScript = true else bCScript = false end if if (WScript.Arguments.Count < 3) then OUT "Usage : cscript/wscript Rerunadvertisement.vbs <PackageID> <ProgramID> <AdvertID> [Machine]" WScript.Quit -1 end if ' ' Get advert to rerun and the target machine name ' sPackageID = WScript.Arguments(0) sProgramID = WScript.Arguments(1) sAdvertID = WScript.Arguments(2) if (WScript.Arguments.Count > 3) then sMachine = WScript.Arguments(3) OUT "Connecting to machine " & sMachine else sMachine = "." OUT "Connecting to local machine" end if ' ' we first connect to the registry and delete the program history ' OUT "Deleting program history for program " & sProgramID & " from package " & sPackageID on error resume next set oNamespace = GetObject("winmgmts://" & sMachine & "/root/default") if (Err.number <> 0) then OUT "Failed to connect to WMI on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if OUT "Successfully connected to WMI" Set oRegProvider = oNamespace.Get("StdRegProv") if (Err.number <> 0) then OUT "Failed to get the StdRegProv class on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if ' ' search the system subkeys for the program. we will not look in the user subkey ' dim arrSubKeys dim sSubKey dim sValue dim bFound dim dwRet oRegProvider.EnumKey HKEY_LOCAL_MACHINE, KEY_EXECUTION_HISTORY & "System\" & sPackageID, arrSubKeys if (Err.number <> 0) then OUT "Failed to EnumKey on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if bFound = false for each sSubKey in arrSubKeys oRegProvider.GetStringValue HKEY_LOCAL_MACHINE, KEY_EXECUTION_HISTORY & "System\" & sPackageID & "\" & sSubKey, "_ProgramID", sValue if (Err.number <> 0) then OUT "Failed to GetStringValue for subkey " & sSubKey & " on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if if (LCase(sProgramID) = LCase(sValue)) then ' we've found the required key, delete and exit the loop oRegProvider.DeleteKey HKEY_LOCAL_MACHINE, KEY_EXECUTION_HISTORY & "System\" & sPackageID & "\" & sSubKey if (Err.number <> 0) then OUT "Failed to Delete history for subkey " & sSubKey & " on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if bFound = true exit for end if Next ' ' may want to change this logic and run it even if it was never run before ' if (bFound = true) then OUT "Succesfuly deleted program history for program " & sProgramID & " from package " & sPackageID else OUT "Failed to locate the given advertisement in the system history." OUT "Advertisement will not rerun." WScript.Quit -1 end if ' ' Now connect to the policy namespace on the machine and retrieve the schedule message id ' on error resume next set oNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm/policy/machine") if (Err.number <> 0) then OUT "Failed to connect to WMI on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if OUT "Successfully connected to WMI" dim oSet dim oObj dim sTriggerID dim sPattern sPattern = sAdvertID & "-" & sPackageID & "%" OUT("Executing query " & QUERY_SCHEDULES & sPattern) Set oSet = oNamespace.ExecQuery(QUERY_SCHEDULES & "'" & sPattern & "'" ) if (Err.number <> 0) then OUT "Failed to Query schedules on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if ' ' there should only ever be 1 object ' if (oSet.Count <> 1) then OUT "Unable to identify the trigger ID. Program will not rerun." WScript.Quit -1 end if for each oObj in oSet sTriggerID = oObj.ScheduledMessageID exit for Next OUT "Successfuly retrieved schedule trigger " & sTriggerID ' ' Invoke SMS_Client.TriggerSchedule method ' OUT "Executing program rerun" set oNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm") if (Err.number <> 0) then OUT "Failed to connect to WMI on " & sMachine & ": " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if OUT "Successfully connected to WMI" dim oSMSClient Set oSMSClient = oNamespace.Get("SMS_Client") if (Err.number <> 0) then OUT "Failed to get the SMS_Client class " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 end if oSMSClient.TriggerSchedule sTriggerID if (Err.number <> 0) then OUT "Method failed: " & Err.Description & " (" & Err.number & ")" WScript.Quit -1 else OUT "Successfully triggered program for rerun." end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top