Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: chouck
  • Content: Threads
  • Order by date
  1. chouck

    On the fly listbox in HTA

    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...
  2. chouck

    Hta error handling

    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...
  3. chouck

    Collection Object output formatting question

    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...
  4. chouck

    Alphabetical Directory search question ?

    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...
  5. chouck

    Install / push out MSI package on multiple client pc's

    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"...
  6. chouck

    Need help with WMI and DNS settings in script

    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...
  7. chouck

    Manipulating the system time

    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...
  8. chouck

    error when connecting to wmi on remote computer

    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...
  9. chouck

    use wmi to compare current ip ipaddress to dhcp server ?

    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...
  10. chouck

    use wildcard string to check flow of script

    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...
  11. chouck

    Determin and echo locational DHCP Server

    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...
  12. chouck

    very confusing file rename issue: trick of the day

    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...
  13. chouck

    removing a portion of a REG_EXPAND_SZ value?

    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...
  14. chouck

    how to create directory basesd on expandenvironment string

    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...
  15. chouck

    Can anyone explain what I am doing wrong

    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 =...
  16. chouck

    how to install s/w though a script using alternate credentials

    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...
  17. chouck

    passing setup arguments in vbscript

    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...

Part and Inventory Search

Back
Top