BES Web Reports: Enable PDF Reports - Part 2/2
Log In or Register to download the BES file, and more.

0 Votes

Description

BES Web Reports now has the ability to generate PDF reports. PDFs can be sent by clicking the "Email Report" link or by setting the "PDF" format option when creating or editing a scheduled activity.

This feature is disabled by default. Use this task to enable this feature on the server hosting the BESWebReportsServer service. This task will take up to the following actions:

  • Install Internet Explorer 7
  • Install GPL GhostScript 8.60
  • Install Flash Player for Internet Explorer
  • Add your Web Reports host to Internet Explorer's trusted sites list for the system account
  • Modify your PATH to include GhostScript
  • Set registry values to enable this feature under the key "HKLM\Software\BigFix\Enterprise Server\BESReports"
  • Add a PostScript file printer named "BES Web Reports Printer"

Note: Client machines may briefly display DOS windows during action execution.

Important Note: This is the second in a series of two tasks that enable PDF email reports. Depending on client system configuration, this task may become relevant after client machines have completed  and been restarted. Client machines which do not become relevant for this task require no further action to enable PDF email reports.


Property Details

ID459
TitleBES Web Reports: Enable PDF Reports - Part 2/2
CategorySupport
Download Size0
SourceBigFix
Source ID<Unspecified>
Source Severity<Unspecified>
KeywordsReports PDF BES partOneLink innerHTML
Added by on 10/17/2012 1:15:32 PM
Last Modified by on 10/17/2012 1:15:32 PM
Counters 6709 Views / 14 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 6 fixlets   * Results in a true/false
Show indented relevance
exists service "BESWebReportsServer"
Used in 3 fixlets   * Results in a true/false
Show indented relevance
exists key "HKEY_LOCAL_MACHINE\Software\Bigfix\Enterprise Server" whose (value "BESWebReportsInstalled" of it = 1) of registry
Used in 3 fixlets   * Results in a true/false
Show indented relevance
version of registration server >= "7.0.9"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
((name of it = "Win2003" AND service pack major version of it >= 1) OR ((version of registration server >= "7.2") AND (((name of it = "WinVista" AND product type of it != nt workstation product type) OR (name of it = "Win2008"))) AND (exists regapp "iexplore.exe")) OR ((version of registration server >= "8") AND (((name of it = "Win2008R2"))) AND (exists regapp "iexplore.exe"))) of operating system
Used in 46 fixlets   * Results in a true/false
Show indented relevance
NOT pending restart
Used in 1 fixlet   * Results in a true/false
Show indented relevance
((version of regapp "iexplore.exe" >= "7") AND (exists key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript 8.60" of registry) AND (exists folder "macromed\flash" whose (exists file whose (((it starts with "flash" AND it ends with ".ocx") OR (it = "swflash.ocx")) of (name of it as lowercase) AND version of it >= "9") of it) of system folder) AND (exists key ("HKEY_USERS\" & ((if (it = "LocalSystem") then ("S-1-5-18") else if (it = "LocalService") then ("S-1-5-19") else if (it = "NetworkService") then ("S-1-5-20") else if (it contains "@") then (component string of sid of security account (it)) else (string value of select (("SID from Win32_UserAccount where NAME='" & following text of last "\" of it & "' and DOMAIN='" & ((if it = "." then computer name else it) of preceding text of last "\" of it) & "'") of ((login account of service "BESWebReportsServer") as string)) of wmi)) of login account of service "BESWebReportsServer") & "\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\" & (first match (regex "^[^:]+") of first match (regex "[^/]+$") of (it as string)) of value "Hostname" of key "HKLM\SOFTWARE\BigFix\Enterprise Server\Installer\" of registry) whose (exists value "http" whose (it = 2) of it AND exists value "https" whose (it = 2) of it) of registry) AND (exists key "HKLM\Software\BigFix\Enterprise Server\BESReports" whose (((exists value "PDFEnable" whose (it = "1") of it) OR (exists key "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" whose (exists value (((value "EnterpriseServerFolder" of key "HKLM\SOFTWARE\BigFix\Enterprise Server" of x32 registry) as string) & "BESReportsData\ArchiveData\__pdf\out.ps") of it) of native registry)) AND value "PDFPostScriptPath" of it = (((value "EnterpriseServerFolder" of key "HKLM\SOFTWARE\BigFix\Enterprise Server" of x32 registry) as string) & "BESReportsData\ArchiveData\__pdf\out.ps") AND value "PDFPrinterName" of it = "BES Web Reports Printer") of registry) AND (exists key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" whose ((exists key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript 8.60" whose (exists value "UninstallString" of it) of registry) AND ((it contains parenthesized part 1 of (first match (regex "^(.*)uninstgs.exe") of (value "UninstallString" of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript 8.60" of registry as string)) & "gs8.60\bin" AND it contains parenthesized part 1 of (first match (regex "^(.*)uninstgs.exe") of (value "UninstallString" of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript 8.60" of registry as string)) & "gs8.60\lib") of (value "Path" of it as string))) of registry) AND (exists key "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" whose (exists value (((value "EnterpriseServerFolder" of key "HKLM\SOFTWARE\BigFix\Enterprise Server" of x32 registry) as string) & "BESReportsData\ArchiveData\__pdf\out.ps") of it) of native registry) AND (exists key ("HKU\" & ((if (it = "LocalSystem") then ("S-1-5-18") else if (it = "LocalService") then ("S-1-5-19") else if (it = "NetworkService") then ("S-1-5-20") else if (it contains "@") then (component string of sid of security account (it)) else (string value of select (("SID from Win32_UserAccount where NAME='" & following text of last "\" of it & "' and DOMAIN='" & ((if it = "." then computer name else it) of preceding text of last "\" of it) & "'") of ((login account of service "BESWebReportsServer") as string)) of wmi)) of login account of service "BESWebReportsServer") & "\Software\Microsoft\Internet Explorer\PageSetup") of registry))
Used in 1 fixlet   * Results in a true/false
Show indented relevance
NOT (exists key "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\BES Web Reports Printer" of registry)

Actions

Action 1

Action Link Click here for more information about BES Web Reports.
Script Type URL
http://support.bigfix.com/product/documents/BESWebReports-7.0.pdf
    

Action 2

Action Link Click here for more information about enabling the PDF Email Reports feature of BES Web Reports.
Script Type URL
http://support.bigfix.com/documents/Web_Reports_PDF/webreports_pdf.html
    

Action 3

Action Link Click here for more information about Internet Explorer 7.
Script Type URL
http://msdn2.microsoft.com/en-us/ie/aa740486.aspx
    

Action 4

Action Link Click here for more information about GPL GhostScript 8.60.
Script Type URL
http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl860.htm
    

Action 5

Action Link Click here for more information about Adobe Flash Player.
Script Type URL
http://www.adobe.com/support/flashplayer/
    

Action 6

Action Link Click here to initiate the deployment process.
Script Type BigFix Action Script
// Set up a param for SID of Web Reports user
parameter "WRUser" = "{((if (it = "LocalSystem") then ("S-1-5-18") else if (it = "LocalService") then ("S-1-5-19") else if (it = "NetworkService") then ("S-1-5-20") else if (it contains "@") then (component string of sid of security account (it)) else (string value of select (("SID from Win32_UserAccount where NAME='" & following text of last "\" of it & "' and DOMAIN='" & ((if it = "." then computer name else it) of preceding text of last "\" of it) & "'") of ((login account of service "BESWebReportsServer") as string)) of wmi)) of login account of service "BESWebReportsServer")}"
// Add the printer (no restart required)
delete __appendfile
delete add_ps_printer.bat
appendfile @ECHO OFF
appendfile rundll32 printui.dll,PrintUIEntry /if /b "BES Web Reports Printer" /f %windir%\inf\ntprint.inf /r "{((value "EnterpriseServerFolder" of key "HKLM\SOFTWARE\BigFix\Enterprise Server" of x32 registry) as string) & "BESReportsData\ArchiveData\__pdf\out.ps"}" /m "{if name of operating system = "Win2003" then "Apple Color LW 12/660 PS" else if (((version of registration server >= "7.2") AND (((name of it = "WinVista" AND product type of it != nt workstation product type) OR (name of it = "Win2008"))) AND (exists regapp "iexplore.exe")) of operating system) then "Canon PS-NX90" else "Xerox Phaser 6180MFP-D PS"}"
move __appendfile add_ps_printer.bat
waithidden add_ps_printer.bat
// Settings from BESMakePDF to make Win2k8 pick up the printer right away
regset "[{"HKEY_USERS\" & (parameter "WRUser") & "\Software\Microsoft\Windows NT\CurrentVersion\Windows"}]" "Device"="BES Web Reports Printer,winspool,Ne00:"
// Set the last of the regkeys to enable the feature
if {NOT exists key "HKLM\Software\BigFix\Enterprise Server\BESReports" whose (value "PDFEnable" of it = "1") of registry}
regset "[HKEY_LOCAL_MACHINE\Software\BigFix\Enterprise Server\BESReports]" "PDFEnable"="1"
endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!