/bundles/itninjaweb/img/Breadcrumb_cap_w.png

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

Answer Summary:
Set objNet = CreateObject("WScript.Network") strCompName = objNet.ComputerName .... If Left(strCompName,3) = "XYZ" Then ...... End If
Cancel
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Community Chosen Answer


Answers

2

You can write VBScript custom action as shown below

Set objNet = CreateObject("WScript.Network")
strCompName = objNet.ComputerName
....
If Left(strCompName,3) = "XYZ" Then

......

End If

Answered 07/10/2012 by: jagadeish
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Answers

0

Thank you very much. Work's very nice!!!

Answered 07/10/2012 by: kleynpackager
Orange Belt

  • Hi kleynpackager, could you mention the options you selected during the custom action preperation, like which sequence, what mode... etc one after one ???
Please log in to comment