HBJB: I used Wink.
Off topic but how did you create that example? That's the sort of thing I need to do for some of our staff but the software I've managed to find is clunky and doesn't make smooth animations.Originally Posted by webman
Now back to topic. We tried R2's push printers features and had to go back to a script that picks up the room names because the printers were not always being installed with R2 (see this thread)
HBJB: I used Wink.
I'm checking it out now.Originally Posted by webman
Edit: Looks nice and does the job well. Free as well!
Thanks for the tip, very useful.Originally Posted by webman
Not completely true. NT/2000/XP do string slicing and splicing. It's a bit hard work but it's all possible - try this:Originally Posted by NetworkGeezer
Code:@echo off set a=123456789 set b=%a:~0,3% set c=%a:~3,2% set d=%c%%b% echo %a% echo %b% echo %c% echo %d%Agreed to the last bit :-) all you then have to worry about is putting the computers in the right OU and the job's all done.Originally Posted by NetworkGeezer
well back at work todayOriginally Posted by Ric_
was just mooching over your suggestion......
if i use Mid(computerName, 7, 5)
that will not work with the
rooms that have pc's named
R30-13 need to extract R30-
RDCXP21 need to extract RDC or RDCXP
This is where you need a standard naming convention that helps with things like this. for example, in theory all our room names are like WG150 (Willesden; G Block; 1st floor; room 50) so we should be able to name computers and know that the first 5 characters are the room number. This all falls over when you get rooms like WFG33A (room 33A on the ground floor)
We've now given up trying to assume we can have a standard PC name and put machines in OUs - it's easy to find the OU name and that effectively is the room name.
If you decide to rename a batch of computers then it can (of course!) be scripted - I've put some info here:http://techinfo.cnwl.ac.uk/Windows%2...20computer.htm
I think you will find that the split function will do the trick for you if you have hyphens in your room names ieOriginally Posted by projector1
then you can split it using the hyphen which is the common denominator
sorry over the summer i plan to standardise the it suite naming convention
not all the pc names contain hyphens
i have contemplated another ou for laptops thus another vb script, but if there is away around it then i would be greatful
thanks for the suggestion though
no replay button?Originally Posted by webman
Just F5Originally Posted by beeswax
Yeah, the batch files did require environment variables and was an extremely poor bodge that was used by the person that designed and built the network the first time round.
It got a complete rebuild on an external contract because it was so poorly designed.
The VB script i referred to was the logon script that did EVERYTHING. The "super logon script" i think it was called or something like that (one of the techies wrote it). It checked the machine name and then assigned printers based on that IIRC.
It's been a year since i was still helping out in ICT services and there were a few months before i left where i was focusing on my education so i could get into uni so it's a long time since i had anything to do with it to be honest.
We connect our printers with a VBScript using con2prnt.exe which is then assigned per OU with GPO. This works a treat for our client stations, however. It doesn't work for our terminal stations.
Our terminal stations connect using thinstation which boots from PXE on the network cards. This requires them to have an account in AD on which you set the Remote Install properties to use the thinstation boot file. What I want to be able to do is to assign a printer to the terminal station depending on which classroom it is. Of course the terminal stations do not take any notice of GPO despite the fact that they are placed in OUs with them set.
Currently they all connect to one terminal server which has all the necessary printers installed which then relies on the student choosing the correct printer from the drop down list, which of course never happens.
Does anybody know a way to sort this?
Look at the scripts in the scripts section. Ric's in particular. You can do it using the clientname. He has had thinstation running and assigning printers according to their name with no problem once you get the client name and not comptername as that returns the terminal servers name.
ok thanks i will do that this weekend after i start and finish the dreaded tiling on the bathroom at home
There are currently 1 users browsing this thread. (0 members and 1 guests)