Deploy RES ONE Workspace Consoles
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will deploy extra RES ONE Workspace Consoles.

Property Details

ID10568
StatusProduction - Fully Tested and Ready for Production
TitleDeploy RES ONE Workspace Consoles
DomainSYST
SourceRES Software
Source Release Date3/21/2016 12:00:00 AM
Is TaskTrue
Added by on 3/24/2016 5:00:55 AM
Last Modified by on 3/24/2016 5:00:55 AM
Counters 708 Views / 3 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

isWindows (Relevance 1172)
Used in 1113 fixlets and 524 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 24 fixlets   * Results in a true/false
Show indented relevance
not exists service "res" or not exists file (pathname of parent folder of parent folder of file of service "res" & "\pwrtech.exe")

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//SourceReleaseDate: 20160321-102103
prefetch RESWMAgent.msi sha1:29166d1c2cfe9c9c5cdefef5fd85c49b550d0863 size:35611648 http://downloads.ressoftware.com/downloads/cdm/040116/RES-ONE-Workspace-2015-Agent-SR1.msi
//remove agent if it is installed already
prefetch RES-ONE-Workspace-2015.msi sha1:4658f00e56b0a94bec013680a1919f42e3385875 size:48315904 http://downloads.ressoftware.com/downloads/cdm/040116/RES-ONE-Workspace-2015-SR1.msi

action parameter query "WMDB" with description "Please enter the Workspace Manager Database Name (WorkspaceManager)"
action parameter query "WMserver" with description "Please enter the SQL Server Name (BigFixServer)"

If {exists service "res"}
If {exists file (pathname of parent folder of parent folder of file of service "res" & "\pfwsmgr.exe")}
If {exists values "InstallationType" whose (it as string as lowercase contains "server") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of native registry}
If {exists values "InstallationType" whose (it as string as lowercase contains "core") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of native registry}
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]" "Shell"="cmd.exe /c \"cd /d \"%USERPROFILE%\" & start cmd.exe /k runonce.exe /AlternateShellStartup"
else
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]" "Shell"="explorer.exe"
EndIf
EndIf
waithidden cmd /C net stop "res"
wait msiexec /x __Download\RESWMAgent.msi autoruncomposer=no remove=all reboot=R /qn
EndIf
EndIf
If {(parameter "DNSNAME" of action) != ""}
    wait msiexec /i __Download\RES-ONE-Workspace-2015.msi RSENVGUID={(parameter "GUID" of action)} RSPASSWORD={parameter "RESPW" of action} RSPWHASHED=Yes RSDISCOVER=No RSLIST={preceding text of first ":" of (if ((it does not contain "127.0.0.1" and it does not contain "::1") of name of registration server) then (name of registration server) else if (exists setting "_BESRelay_PostResults_ParentRelayURL" of client and exists value of setting "_BESRelay_PostResults_ParentRelayURL" of client as string) then (preceding text of first "/" of (following text of first "//" of (value of setting "_BESRelay_PostResults_ParentRelayURL" of client))) else "BES Root Server")}:{parameter "RESRELPORT" of action} DBTYPE=MSSQL DBSERVER={parameter "WMserver" of action} DBNAME={parameter "WMDB" of action} RSRESOLVE={parameter "DNSNAME" of action} INHERITSETTINGS={parameter "INHERIT" of action} /qn
else
    wait msiexec /i __Download\RES-ONE-Workspace-2015.msi RSENVGUID={(parameter "GUID" of action)} RSPASSWORD={parameter "RESPW" of action} RSPWHASHED=Yes RSDISCOVER=No RSLIST={preceding text of first ":" of (if ((it does not contain "127.0.0.1" and it does not contain "::1") of name of registration server) then (name of registration server) else if (exists setting "_BESRelay_PostResults_ParentRelayURL" of client and exists value of setting "_BESRelay_PostResults_ParentRelayURL" of client as string) then (preceding text of first "/" of (following text of first "//" of (value of setting "_BESRelay_PostResults_ParentRelayURL" of client))) else "BES Root Server")}:{parameter "RESRELPORT" of action} DBTYPE=MSSQL DBSERVER={parameter "WMserver" of action} DBNAME={parameter "WMDB" of action} INHERITSETTINGS={parameter "INHERIT" of action} /qn
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