Setting Custom Action Condition
Hello together,
I'm trying to set a condition for a CA.
At first I get the Computername to a Property. F.e. the property "COMPUTERNAME"="ds-fed"
The next CA should only run, if the property "COMPUTERNAME" contains "ds". I need a condition with an "LIKE".
Can anybody please help me to get the right condition.
Thank you
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Set objNet = CreateObject("WScript.Network") strCompName = objNet.ComputerName .... If Left(strCompName,3) = "XYZ" Then ...... End If
Set objNet = CreateObject("WScript.Network") strCompName = objNet.ComputerName .... If Left(strCompName,3) = "XYZ" Then ...... End If
Please log in to answer
Posted by:
jagadeish
12 years ago
Posted by:
kleynpackager
12 years ago
Thank you very much. Work's very nice!!!
Comments:
-
Hi kleynpackager, could you mention the options you selected during the custom action preperation, like which sequence, what mode... etc one after one ??? - srikanth.deep 12 years ago