VBScript to set desktops to use a primary and secondary wins server?

Discussion in 'Web Design & Coding' started by Punkrulz, Nov 9, 2006.

  1. Punkrulz

    Punkrulz Somewhat eXPerienced

    Messages:
    790
    Location:
    Woodbury, NJ
    Hey guys,

    Does anyone know a script that I can use, that I can apply via GPO, and have it so that the computers it applies to automatically set the Primary and Secondary Wins servers? I don't know anything about VBScripting so I'm at a loss, just trying to make things a bit easier.

    Thanks!
     
  2. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    DHCP scope options would be a much better place for this.

    edit: failing that, a netsh command from dos would be my next choice.. (netsh interface ip set wins <ipadd>)

    if you really must use vbscript.. give me a minute to work/test something
     
  3. Punkrulz

    Punkrulz Somewhat eXPerienced

    Messages:
    790
    Location:
    Woodbury, NJ
    Actually this post can be deleted! :) Silly me forgot I posted this quite awhile back, and actually got a respone from KCNYChief with the appropriate script. I created a GPO for this and issued it via Computer Setup, and everything seems to be working. Can't use DHCP because this client is Statically Assigned IP addresses.
     
  4. VenomXt

    VenomXt Blame me for the RAZR's Folding Team

    Messages:
    3,453
    Location:
    Houston, Texas
    Why dont you post the solution so the masses can have access to it. just my 2 cents.
     
  5. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts