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: irkey
  • Content: Threads
  • Order by date
  1. irkey

    AutoCorrect - Office Word, Excel

    Hi, Can anyone tell me how to convert this VBA code to vbscript...or if this is even possible???? I was told that any VB code can be converted to vbscript. Sub AutoCorrectCaptureWORD() ' ' AutoCorrectCapture Macro ' AutoCorrect.Entries.Add Name:="test", Value:="TEST&quot...
  2. irkey

    Query computer accounts in specific container in Active Directory

    How would I look for specific computer accounts in a specific container in Active Directory?
  3. irkey

    Query Registry

    I'm having trouble querying the registry for a key and value. I'm trying to find the active nic by querying on the control key in the enum\pci registry key. I have several nics and the active one has a control key in the registry so I'm trying to write a script to find the active nic. Unless...
  4. irkey

    Executing VBscript

    Hi, I'm really new to VB. NET and am just learning the basics. So far I have been using VBScript most of the time. Is there a way to execute vbscripts from within VB. NET?
  5. irkey

    Deleting Registry Subkeys

    I have seen the posts of deleting registry subkeys by enumerating them and checking with a loop. Does anyone know if you can manually delete the subkeys using this method. I am deleting the last subkey first then working my way up. Set WshShell =...
  6. irkey

    Username and Password

    Does anyone know how to get the username and password in VBScript? I want to be able to map a network drive and pass the logon credentials to it. set net = Wscript.CreateObject("Wscript.Network") net.MapNetworkDrive "Z:", "\\server\share", , "sUserName&quot...
  7. irkey

    Clearing Event Logs

    Can anyone tell me how to clear all the event logs on a W2K machine? I found the following script, but it doesn't clear the Security log. Help! set LogFileSet1 = GetObject("winmgmts:{impersonationLevel=impersonate,(Backup)}").ExecQuery("select * from Win32_NTEventLogFile where...
  8. irkey

    VBScript newbie question

    See the code below.... I cannot figure out why the If statement is not executing properly. I think I have the syntax correct but I do not get the wscript.echo portion of the if statement to work. I have tried to trim the leading and trailing spaces also, but I cannot figure out what I'm doing...

Part and Inventory Search

Back
Top