Add BigFixConnector to Admin Role
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will add the AD group to the RES ONE Workspace Technical Manager admin role that is used for the BigFix connector.

Property Details

ID10561
StatusProduction - Fully Tested and Ready for Production
TitleAdd BigFixConnector to Admin Role
DomainBESC
SourceRES Software
Source Release Date3/21/2016 12:00:00 AM
Is TaskTrue
Added by on 3/24/2016 5:00:47 AM
Last Modified by on 3/24/2016 5:00:47 AM
Counters 1440 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

Used in 20 fixlets   * Results in a true/false
Show indented relevance
exists setting "RES_IEM_Integration_Endpoint" whose (value of it = "1") of client
Used in 43 fixlets   * Results in a true/false
Show indented relevance
exists file (pathname of parent folder of parent folder of file of service "res" & "\pwrtech.exe")
Used in 4 fixlets   * Results in a true/false
Show indented relevance
10 < 1

Actions

Action 1 (default)

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


action parameter query "domainname" with description "Please enter your BigFix domain name (demo-res.com)"
action parameter query "BigFixConnector" with description "Please enter your BigFix AD group name (BigFixConnector)"

delete __createfile
delete "{(value of variable "temp" of environment) & "\bigfixconnectorguid.vbs"}"
createfile until __end
Set wmi = GetObject("winmgmts://./root/cimv2")

groupname = "{parameter "BigFixConnector" of action}"

qry = "SELECT * FROM Win32_Group WHERE Name='" & groupname & "'"
For Each group In wmi.ExecQuery(qry)
sid = group.SID
Next

If Not IsEmpty(sid) Then
WScript.Echo sid
Else
WScript.Echo "SID For group " & groupname & " could not be resolved."
End If
__end

copy __createfile "{(value of variable "temp" of environment) & "\bigfixconnectorguid.vbs"}"

delete "{(value of variable "temp" of environment) & "\bigfixconnectorguid.txt"}"

waithidden cmd /c cscript /nologo "{(value of variable "temp" of environment) & "\bigfixconnectorguid.vbs"}" >> "{(value of variable "temp" of environment) & "\bigfixconnectorguid.txt"}"

delete __createfile
createfile until __end
="1.0"?>



    9.9.3.0
    
        
            
                BigFix Connector
                
                yes
                {"%7b"}5B635250-F7F6-4673-A756-8AB92106B0F1{"%7d"}
                yes
                
                
                    
                
                ="or">
                    
                        group
                        {parameter "domainname" of action}\{parameter "BigFixConnector" of action}
                        {line of file ((value of variable "temp" of environment) & "\bigfixconnectorguid.txt") as string}
                    
                
            
        
    


__end
delete {(value of variable "temp" of environment) & "\adminrole.xml"}
copy __createfile {(value of variable "temp" of environment) & "\adminrole.xml"}

wait "{pathname of parent folder of parent folder of file of service "res" & "\pwrtech.exe"}" /add "{value of variable "temp" of environment}\adminrole.xml"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments