Announcement

Collapse
No announcement yet.

vbs help - add computers according to their name

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • vbs help - add computers according to their name

    hi there, new here and i would like some help.

    im currently working on a script which will be used in my company by the RIS when installing computers.
    I want the vbs script when excuted, to check the computer name for a specific string, and if it fits the category, it will add it to a specific security group. So for exmaple if i have 1000 computers, i only want like the 50 of them which have the string "test" to run the rest of the script.

    I got everything covered by the script on the security group adding, the only thing i stuck on is how to make the script dynmic and work according to computer names.

    would appriciate any help, and if needed, i can post the script i got now.

    thx, Kosta.

  • #2
    Re: vbs help - add computers according to their name

    its fine now, found the answer by myself
    just used the:
    If right (ObjNetwork.computername, 5) = "-test" then
    so it works now.

    Comment

    Working...
    X