+ Post New Thread
Results 1 to 11 of 11
Windows Thread, New servers, new scripts :( in Technical; AS we have just got some new servers in, our boss has rejigged all the scripts from the lovely old ...
  1. #1

    Join Date
    May 2009
    Location
    England
    Posts
    264
    Thank Post
    58
    Thanked 36 Times in 35 Posts
    Rep Power
    19

    New servers, new scripts :(

    AS we have just got some new servers in, our boss has rejigged all the scripts from the lovely old batch files i could use, to VBS. Does anyone know of a site or guide i can use to learn this as i would like to be able to edit them myself without having to ask my boss every 10 seconds.
    Thank you

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,818
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    All you need to do is open them in notepad, find where it points to the old server then change it to point to the new one.

    Make sure you have configured everything on the new server first though.

    Z

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,705
    Thank Post
    3,235
    Thanked 1,044 Times in 966 Posts
    Rep Power
    363
    Free example scripts VBScript, Windows Active Directory Tutorials

    If that does not help and you have the scripts that you can post then post them and either myself or srochford or one of us can help
    Last edited by mac_shinobi; 28th July 2009 at 12:59 PM.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Also check out Script Center

    You might want to ask your boss why he's using old fangled vbscript when he could be using nice, new shiny powershell (also at the technet script centre)

  5. #5
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51
    Theres also a couple on our wiki that you can play with/examine to see how they work (I believe from memory some even have indepth commented code for even more help.

  6. #6

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,037
    Thank Post
    160
    Thanked 908 Times in 712 Posts
    Blog Entries
    3
    Rep Power
    270
    yup! POWERSHELL

    Also, depending on the scripts your using, make sure you go through the win2k8 GPO's Properly as there is alot more you can do using GPO rather than scripts! but yes look at powershell if i was you.

  7. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,705
    Thank Post
    3,235
    Thanked 1,044 Times in 966 Posts
    Rep Power
    363
    Quote Originally Posted by srochford View Post
    Also check out Script Center

    You might want to ask your boss why he's using old fangled vbscript when he could be using nice, new shiny powershell (also at the technet script centre)
    If I wanted a simple powershell script to msgbox the computer name I would open notepad put in the relevant code ( whatever that is ) and save it as what file extension and how would I run it and also what would the code be ?

  8. #8

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    When you open scripts in Notepad, you may wish to use the Edit > Replace function. Very simple to use and will make sure you find all 'SERVERNAME' entries.

  9. #9

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,705
    Thank Post
    3,235
    Thanked 1,044 Times in 966 Posts
    Rep Power
    363
    Quote Originally Posted by Michael View Post
    When you open scripts in Notepad, you may wish to use the Edit > Replace function. Very simple to use and will make sure you find all 'SERVERNAME' entries.
    I was thinking that but wanted to wait until the script(s) were posted so we could see the actual coding to see if they are using functions / subs or w/e

  10. #10

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Quote Originally Posted by Michael View Post
    When you open scripts in Notepad, you may wish to use the Edit > Replace function. Very simple to use and will make sure you find all 'SERVERNAME' entries.
    Don't think this is the problem - what @potato-peeler said is that the scripts have changed from batch files to vbscript so it's not just a case of what machine name to use but the whole language has changed!

  11. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,705
    Thank Post
    3,235
    Thanked 1,044 Times in 966 Posts
    Rep Power
    363
    Quote Originally Posted by srochford View Post
    Don't think this is the problem - what @potato-peeler said is that the scripts have changed from batch files to vbscript so it's not just a case of what machine name to use but the whole language has changed!
    That as well @ language change from bat to vbs or powershell if they wanted to use powershell as per the above recomendation

SHARE:
+ Post New Thread

Similar Threads

  1. Help running scripts within scripts
    By SimpleSi in forum *nix
    Replies: 7
    Last Post: 7th March 2008, 09:23 AM
  2. Logon scripts
    By mmoseley in forum Windows
    Replies: 1
    Last Post: 23rd December 2007, 11:46 PM
  3. Scripts, Scripts, Scripts
    By wesleyw in forum Windows
    Replies: 18
    Last Post: 17th July 2006, 02:36 PM
  4. printer scripts again!
    By chrbb in forum Windows
    Replies: 4
    Last Post: 10th February 2006, 12:19 PM
  5. Scripts...anyone have any idea?
    By Sirbendy in forum Windows
    Replies: 13
    Last Post: 30th January 2006, 11:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •