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...
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...
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...
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...
I'm trying to determine and echo the locational DHCP server for users who travel throughout my company. This is what I have come up with so far, but it doesn't work properly. Since the DHCPServer property of Win32_NetworkAdapter Configuration is a string, I figured this would be easy, but has...
I have a file in my home direcoty on the network in my z:\. it is located 2 subdirectories down z:\somedir\somsubdir\someuser.id (it is a notes id file and is based on the network username). I have to rename it specifically to user.id
when i run this script, i want the script to look for a file...
For me this is the question of the day. I am connecting to the wmi stdregprov. From the MS MSDN site, I can see examples of everything to do with creating,deleting, and so on.
What I would like to do is to edit the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session...
ok, so i would like to create a folder on a pc under the logged on user's profile.
i can echo the expand environment string and get the user profile path, but do not know how to pipe it into the createfolder usage.
Any help is greatly appreciated
here is sample script:
dim ofso, oshell...
I am trying to use this sample code on a NT4 domain. And I am at my wits end trying to figure it out. Can anyone point me in the right direction ? Thanks in advance
Const wbemImpersonationLevelDelegate = 4
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objConnection =...
Can anyone show me what I am doing wrong. i'm trying to get mcafee to uninstall as users log on. but can not do it because you need local admin rights. I tried calling this from the user's logon script, but it still comes up w/ the "you have to be an admin to do this" message
Does anyone have...
i am pretty new to scripting, so i hope i ask this the write way.
i have this line that i am trying to execute in my script:
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set sapexec = CreateObject("WScript.Shell")
Set sapupdate = sapexec.Exec(\\server\share\setup\ sapsetup.exe /p...
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.