Deploy RES ONE Workspace Consoles
| 0 Votes |
Description
Property Details
| 10568 | |
| Production - Fully Tested and Ready for Production | |
| Deploy RES ONE Workspace Consoles | |
| SYST | |
| RES Software | |
| 3/21/2016 12:00:00 AM | |
| True | |
| RESQA on 3/24/2016 5:00:55 AM | |
| RESQA on 3/24/2016 5:00:55 AM | |
| 2846 Views / 3 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
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: |

