+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, Environment variables or other method in Coding and Web Development; Hello all, I am currently setting up a build for RIS to distribute out to around 50 machines. One part ...
  1. #1

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    Environment variables or other method

    Hello all,

    I am currently setting up a build for RIS to distribute out to around 50 machines. One part of this is to set an environmental variable for the room so that con2prt can select the right print queue.

    Instead of imaging the machines and then editing the autoexec bat for each room, is there an easier way i can roll this out. I don't want to have to visit 50 PCs individually just to set the autoexec.bat.

    I was thinking of using the computername variable to do this in the autoexec but couldn't get it to work.
    The computernames are like roomname-1 in increments.

    If possible to do it from login scripts via GPO then would be great also.

    Thanks for any help in advance.

  2. #2

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Environment variables or other method

    Why are you using autoexec.bat?

    The usual practice is to have automatic printer selection via logon scripts.
    The COMPUTERNAME variable should be availible when a user logs on.

    I think for NT based versions of MS Windows autoexec.bat is ignored any way.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,599
    Thank Post
    109
    Thanked 765 Times in 596 Posts
    Rep Power
    181

    Re: Environment variables or other method

    chck out the scripts section fo a pre-built script by ME

  4. #4
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    Re: Environment variables or other method

    I have used PolicyMaker Registry Extension (free!!) and group policies to set the environment variable per OU, this works pretty well (I can post a howto if needed) However I use a utility called psprint (v.hard to find on google I can attach) this has an INI file and takes the part of the computername and adds printers based on this.

    fooby

SHARE:
+ Post New Thread

Similar Threads

  1. Best server 2003 backup method?
    By starscream in forum How do you do....it?
    Replies: 3
    Last Post: 27th June 2007, 02:26 PM
  2. What scripting method would you recommend
    By SimpleSi in forum Scripts
    Replies: 24
    Last Post: 15th November 2006, 10:25 AM
  3. Study environment
    By dezt in forum How do you do....it?
    Replies: 16
    Last Post: 10th March 2006, 09:58 AM
  4. Replies: 4
    Last Post: 10th October 2005, 10:12 AM
  5. Best way / method to sync time between servers.
    By mac_shinobi in forum Wireless Networks
    Replies: 10
    Last Post: 27th September 2005, 01:40 AM

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
  •