I'm new in PS and 'd like to parse a variable (which is "computername") and apply a IP configuration following the name.
For example : Computername is AAAABBCCC
I'd like to handle :
If AAAA equals xxxx and then set a specific action
If BB equals yy set another specific action
If CCCC equals zzzz set anotehr action.
I'm trying using Contains() metho, but not sure this is correct.
Thanks for your help