Add BigFixConnector to Admin Role
| 0 Votes |
Versioning - This is the latest version.
| 1 | Add BigFixConnector to Admin Role | 1/26/2016 5:10:08 PM |
| 2 | Add BigFixConnector to Admin Role | 3/24/2016 8:46:12 AM |
| 3 | Add BigFixConnector to Admin Role | 6/2/2016 10:53:55 AM |
Description
Property Details
| 20789 | |
| Production - Fully Tested and Ready for Production | |
| Add BigFixConnector to Admin Role | |
| BESC | |
| RES Software | |
| 5/27/2016 12:00:00 AM | |
| True | |
| RES on 6/2/2016 10:53:55 AM | |
| RES on 6/2/2016 10:53:55 AM | |
| 5697 Views / 30 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: 20160527-192409
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
{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: |

