Oh man, I am so close this is what I put in my do/loop:
Do Until objRecordSet.EOF
set objoption= objRecordSet.Fields("printerName").value
AvailablePrinters.add(objoption)
objRecordSet.MoveNext
Loop
now when i run it, it comes up and gives me an error message that says...
Hi PHV, Yeah I was looking at that one earlier and one on the "Scripting Guy" website as well. This is a very generic version of the code that I am trying to develop. Any suggestions. I have marked the area where I think the problem is occurring I just can't figure it out :(
<HEAD>...
Hi All,
I have gotten some great help on this site and was hoping to figure this problem out. What I am trying to do is to dynamically populate a list of available printers in a drop down box users can select from. I am connecting to AD in 2003 to get the printer info and want to "import" it...
Thanks for the help. I did find a really good link on ActiveExperts site:
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/printing/servers/#EnumAllPublishedPrinters.htm
I am going to try and intergrate this in.
Thanks DM that worked like a charm. Now I think I am getting greedy. Is there a way to query the local print server and havve it populate a dropdown list depending on the "case" selected ? I tried using wmi to enumerate the printers but it seems you have t ohave admin rights on the print server...
Hi All,
I have a bit of code that I am having a problem w/. I have a little hta that will let a user select their location, then type in the printer name, and then have some vb code run to add the printer connection. I have it set to where if the user just clicks of without typing anything it...
Hi All,
I'm not sure if I will explain this correctly but here goes... I am trying to display the description of the modem that is installed see code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set...
PHV,
that worked awesome. it did exactly like what i wanted it to. Thanks a million!!!
mr. movie,
that was just the way it has always been set up here. i guess in case a user needed something particular to just them or something like that.
Hi All,
this one is kind of complicated to me so i'll try to explain it the best i can. i have a text file of all users in my location. i want to use that text file as input to connect to there home directories and add a line to their logon script that will call an application setup when they...
Hi All,
I have been looking at this specific code all day and i still haven't figured out what i am doing wrong:
Const wbemImpersonationLevelDelegate = 4
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objConnection = objwbemLocator.ConnectServer _
("WebServer"...
Hi All,
I was wondering if anyone ever came across this situation, or if you might know how to do this.
Basically what I am trying to do is to change the client DNS settings to to not do a search domain suffix's.
I have gotten as far as changing the advanced dns settings from "Appending The...
PHV,
Thank you so much. That worked like a champ!!! perfect :)
I don't suppose you could kind of explain what you did there, i kind of get the left right set thing but not really ? And would like to understand. Thanks again!
Hello All,
I have what I think is an easy question, I just haven't been able to figure it out. I'm trying to get the pc to echo the date format a certain way and haven't been able to figure it out
when I run this code :
currdate = year(date) & "/" & month(date) & "/" & day(date)
wscript.echo...
i'm throwing this out there for anyone who has an idea. basically what is happening is that i have a script that runs against a set of pc's on my network. it tries to remotely connect to the wmi object and then retrieves information from the remote pc's.
my problem is that when it comes across...
I was wondering how to do this. and am looking for any answer or suggestion someone may have to do this...
i want to use wmi to take the current ip address for the "active" adapter and compare it to the current dhcp server address and use it as a way for a client pc to process a script a logon...
I was wondering if anyone could tell me how to do this. I cna't figure it out and was looking for a bit of advice: what i want to do is take the first two characteres of a computername and use that as the indicator of which way the script shoul flow. for instance if i use one type of name for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.