Add AD Domain to DNS Suffix Search List if missing - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the problem and the corrective action here>

Property Details

ID26706
StatusAlpha - Code that was just developed
TitleAdd AD Domain to DNS Suffix Search List if missing - Windows
DomainBESC
Sourcehttps://github.com/jgstew/bigfix-content/blob/master/fixlet/Add%20AD%20Domain%20to%20DNS%20Suffix%20Search%20List%20if%20missing%20-%20Windows.bes
Source IDjgstew
Source Release Date9/14/2020 12:00:00 AM
Added by on 9/15/2020 2:51:27 AM
Last Modified by on 9/15/2020 2:51:27 AM
Counters 49 Views / 12 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 1128 fixlets and 529 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Is the computer Joined to AD? (Relevance 3005967)
Used in 1 fixlet and 1 analsis   * Results in a "string"/number
Show indented relevance
exists dns domainnames of local computers of active directories
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists (it as trimmed string) whose(it != "") of substrings separated by "," of (it as string as lowercase) of values "SearchList" of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" of registries
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists (it as trimmed string) whose(it contains unique value of dns domainnames of local computers of active directories) of substrings separated by "," of (it as string as lowercase) of values "SearchList" of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" of registries

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// TODO: Test

regset "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]" "SearchList"="{ concatenations "," of (it as trimmed string) of ( (unique values of dns domainnames of local computers of active directories) ; it ) of (it as string as trimmed string) of values "SearchList" of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" of registries }"


// concatenations "," of ( (unique values of dns domainnames of local computers of active directories) ; it ) of (it as string as trimmed string) of values "SearchList" of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" of registries

// Reference:
// - https://bigfix.me/relevance/details/3022969
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!