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

0 Votes

Description

This task will deploy the RES ONE Workspace Relay for Windows.

Property Details

ID10560
StatusProduction - Fully Tested and Ready for Production
TitleDeploy RES ONE Workspace Relay for Windows
DomainBESC
SourceRES Software
Source Release Date3/21/2016 12:00:00 AM
Is TaskTrue
Added by on 3/24/2016 5:00:46 AM
Last Modified by on 3/24/2016 5:00:46 AM
Counters 1532 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 1111 fixlets and 524 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 73 fixlets and 6 analyses   * Results in a true/false
Show indented relevance
version of client >= "9.0"
Used in 44 fixlets   * Results in a true/false
Show indented relevance
not exists service "RESRLS"
Used in 4 fixlets   * Results in a true/false
Show indented relevance
exists relay service or exists service "BESRootServer"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//SourceReleaseDate: 20160321-102103

prefetch WMRELAY86.MSI sha1:e68d4c183d4b6dea4da9e441f7fa08fcc480e0a6 size:2846720 http://downloads.ressoftware.com/downloads/cdm/040116/RES-ONE-Workspace-2015-SR1-Relay-Server(x86)-9.10.1.0.msi
prefetch WMRELAY64.MSI sha1:79820c3a7ff54a1cd723c7fd670ef1e0deb84bf6 size:2846720 http://downloads.ressoftware.com/downloads/cdm/040116/RES-ONE-Workspace-2015-SR1-Relay-Server(x64)-9.10.1.0.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)"
action parameter query "serviceaccount" with description "Please enter the RES Service Account (domain\res.service)"
action parameter query "GUID" with description "Please enter the RES Environment ID. DO NOT INCLUDE CURLY BRACES {}(WM Console/Administration/Relay Servers/Settings)"
action parameter query "DBConn" with description "Connect Windows Relay Server to Datastore?"


delete __createfile
delete wuid_patch.ps1
createfile until __done

$Arch64 = $null
$current_wuid = $null
$OSArchitecture = [IntPtr]::Size

{"%69"}{"%66"} ($OSArchitecture = 8) {"%7B"}$Arch = {"%22"}\Wow6432Node{"%22"}{"%7D"}

$WUID_PATH = {"%22"}HKLM:\SOFTWARE$Arch\Microsoft\Windows\CurrentVersion\WUID{"%22"}

{"%69"}{"%66"} ((test-path -Path $WUID_PATH)) {"%7B"}
$current_wuid = (Get-ItemProperty -Path $WUID_PATH).'(default)'
{"%7D"}
{"%65"}{"%6C"}{"%73"}{"%65"} {"%7B"}
New-Item -Path $WUID_PATH -ItemType Directory -force
{"%7D"}
{"%69"}{"%66"} (!$current_wuid){"%7B"}
Set-ItemProperty -Path $WUID_PATH -name '(default)' -Value ([GUID]::NewGuid()).ToString('B').ToUpper()
{"%7D"}
__done
copy __createfile "{value of variable "temp" of environment}\wuid_patch.ps1"
waithidden powershell.exe -executionpolicy unrestricted -file "{(value of variable "temp" of environment) & "\wuid_patch.ps1"}"
delete "{value of variable "temp" of environment}\wuid_patch.ps1"

IF {parameter "DBConn" of action as lowercase = "yes"}

delete __createfile
delete "{value of variable "temp" of environment}\relayconfig.xml"
delete "{value of variable "temp" of environment}\relayconfigansi.xml"
createfile until __done
="1.0" encoding="UTF-16"?>


="{(parameter "GUID" of action)}">
yes
{parameter "WMDB" of action}@{parameter "WMserver" of action}

0
yes
{value of variable "ALLUSERSPROFILE" of environment & "\RES\Relay Server"}


2
yes
{parameter "WMserver" of action}
{parameter "WMDB" of action}


yes
="yes">

MSSQL
no



{parameter "RESRELPORT" of action}

__done
copy __createfile "{value of variable "temp" of environment}\relayconfigansi.xml"
wait CMD /U /C Type "{value of variable "temp" of environment}\relayconfigansi.xml" >> "{value of variable "temp" of environment}\relayconfig.xml"

IF {x64 of operating system}
wait msiexec /i __Download\WMRELAY64.MSI ConfigFile="{value of variable "temp" of environment}\relayconfig.xml" SERVICEACCOUNTNAME={parameter "serviceaccount" of action} SERVICEACCOUNTPASSWORD={parameter "secret" of action} /qn /log "{(value of variable "temp" of environment) & "\installWMRelay.log"}"
ELSE
wait msiexec /i __Download\WMRELAY86.MSI ConfigFile="{value of variable "temp" of environment}\relayconfig.xml" SERVICEACCOUNTNAME={parameter "serviceaccount" of action} SERVICEACCOUNTPASSWORD={parameter "secret" of action} /qn/log "{(value of variable "temp" of environment) & "\installWMRelay.log"}"
ENDIF


else

delete __createfile
delete "{value of variable "temp" of environment}\relayconfig.xml"
delete "{value of variable "temp" of environment}\relayconfigansi.xml"
createfile until __done
="1.0" encoding="UTF-16"?>


="{(parameter "GUID" of action)}">
yes
{parameter "WMDB" of action}@{parameter "WMserver" of action}

0
{value of variable "ALLUSERSPROFILE" of environment & "\RES\Relay Server"}


3
{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}
="yes">{parameter "RESPW" of action}
yes



{parameter "RESRELPORT" of action}

__done
copy __createfile "{value of variable "temp" of environment}\relayconfigansi.xml"
wait CMD /U /C Type "{value of variable "temp" of environment}\relayconfigansi.xml" >> "{value of variable "temp" of environment}\relayconfig.xml"

                                                                                                                
IF {x64 of operating system}
wait msiexec /i __Download\WMRELAY64.MSI ConfigFile="{value of variable "temp" of environment}\relayconfig.xml" /qn /log "{(value of variable "temp" of environment) & "\installWMRelay.log"}"
ELSE
wait msiexec /i __Download\WMRELAY86.MSI ConfigFile="{value of variable "temp" of environment}\relayconfig.xml" /qn /log "{(value of variable "temp" of environment) & "\installWMRelay.log"}"
ENDIF

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