Configure Hyper-V Guest Relay
Log In or Register to download the BES file, and more.

0 Votes

Description

All of my virtual Hyper-V hosts are also relays within my environment.  Therefore this task will detect guests and configure their relays to be its parent host/relay.

Property Details

ID81
TitleConfigure Hyper-V Guest Relay
DomainBES
CategoryConfiguration
Sourcedanielheth@bigfix.me
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date7/20/2012 12:00:00 AM
KeywordsHyper Configure Guest Relay relays
Added by on 10/17/2012 9:31:55 AM
Last Modified by on 10/17/2012 9:37:44 AM
Counters 2314 Views / 2 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 274)
Used in 251 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
name of operating system starts with "Win"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists key "Guest" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine" of native registry
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists value "PhysicalHostNameFullyQualified" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" of native registry
Used in 6 fixlets   * Results in a true/false
Show indented relevance
NOT exists service "BESRootServer"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
(value "RegisteredOrganization" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of native registry) = "Moran IT"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
if exists setting "__RelayServer1" of client then NOT( (value of setting "__RelayServer1" of client as string) contains (value "PhysicalHostNameFullyQualified" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" of native registry as string) ) else true

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//1. configure manual relay selection
setting "__RelaySelect_Automatic"="0" on "{now}" for client
//now configure host server
setting "__RelayServer1"="http%3a%2f%2f{value "PhysicalHostNameFullyQualified" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters" of native registry}%3a52311%2fbfmirror%2fdownloads%2f" on "{now}" for client
//keep client settings clean, delete unneeded settings
setting delete "__RelayServer2" on "{now}" for client
setting delete "_BESClient_RelaySelect_TertiaryRelayList" on "{now}" for client
setting delete "_BESClient_RelaySelect_FailoverRelay" on "{now}" for client
//also clear the HostSelector value since it is the "cache" for the relay to talk to
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions]" "HostSelector"=""
relay select
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!