Once the layer is created you will need to create two On Post Events for SVS within the Adobe Acrobat Pro 9 layer that will call a script that will reboot the Print Spooler.
There are a few steps to take to add the On Post Events to the layer:
1- Find out which is the Read Only Redirect Area number of the layer by launching Windows CMD --> Once the window is open type "svscmd enum -v" this will provide you with a list of layers on the machine and also the RO (Read Only) and RW (Read Write) numbers of Redirect areas.
2- Once you know which number is assigned to the "RO=" for Adobe Acrobat Pro 9 layer open Regedit and go to the following location: HKLM\System\Altiris\FSL\RO Number and high light it.
3- After the RO key number of the layer is high lighted, create a couple new Multi-String Value keys: Name the keys OnPostActivate and OnPostDeactivate. After you have created the keys open each one of them and add the following: wscript %VZ_LAYER_METADIR%\RPS.vbs.
4- In order to run the above RPS.vbs file you will have to create it and save it.
5- To create RPS.vbs file open Notepad and paste the following:
'This code will stop and start the print spooler service
'---SCRIPT CONFIGURATION---
strComputer = "."
'---END CONFIGURATION---
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='Spooler'")
For each objService in colServiceList
errReturn = objService.StopService()
Next
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='Spooler'")
For each objService in colServiceList
errReturn = objService.StartService()
Next
WScript.Echo ("Script Complete")
6- Once you have pasted the above information save the file as RPS.vbs in folder C:\fslrdr\RO (Read Only) folder number of the Adobe Acrobat Pro layer\Meta. If the folder Meta doesn't exist within the layer create it.
7- Activate the layer and check that the Adobe Printer shows active in the Printer and Faxes area when the layer is active and that the Adobe Printer doesn't show in the Printer and Faxes area when is not active.
8- Once we know that the layer is working properly export it and test it on different machines.
Contact Tech Support if you still have issues.
Applies To
SVS 2.1.3064.
Adobe Acrobat Pro 9