I like consolidation, but when I do that it seems to have a "Type Mismatch" error on the :
Set objFileAgent = objFSOAgent.OpenTextFile("c:\textfile.txt", 1)
Hello All!
I am working on a HTA file that will parse thru a text file then output the last 5 or 6 lines of the text file to a Textbox. The script runs but only outputs 1 of the 5 readouts on the screen. I'm stuck. Please help!
<head>
<HTA:APPLICATION
APPLICATIONNAME="HPSA Utility...
I am working on code that will check to see if the service exists. If it does then output the status. If it does not exist just output that it is not installed. I found some other code but cannot seem to get it to function. I get a error message of "Item does not support count function"...
I believe I am experiencing the same issue. What account are you running the script on the remote machine as? If it is the system account you probably cannot enumerate Domain information with that account.
Why not assign the the command a variable? Something like...
strCommand = objShell.Run ("cmd /c S:\update1.cmd",1,True)
Set objExecObject = objShell.Exec(strCommand)
Set objStdOut = objWshScriptExec.StdOut
Do Until objStdOut.AtEndOfStream
strLine = objStdOut.ReadLine
Wscript.Echo...
I don't know if this will help you if you are trying to do a single nic like I am.
http://www.jsifaq.com/SF/Tips/Tip.aspx?id=4705
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1079491&SiteID=1
This portion (below) seems to be skiping to "Unable to replace DNS..." Any ideas on this?
intSetDNSServers = objNicConfig.SetDNSServerSearchOrder(arrNewDNSServerSearchOrder)
If intSetDNSServers = 0 Then
WScript.Echo " Replaced DNS server search order list."
Else
WScript.Echo "...
Do you mean like this? I don't think the quotes are correct because it doesn't seem to grab any NIC's.
Set colNicConfigs = objWMIService.ExecQuery _
("SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionID = 'NIC One'",,48)
NICIndex = objItem.Index
Set colNicConfigs =...
Hello,
I am trying to create a script that will only configure the DNS suffixes for a specific adapter. Unfortunately I can only utilize the NetconnectionID name with happens to have a space in the name. Can someone point me in the right direction?
Thanks!!
On Error Resume Next...
This script executes the HPONCFG.exe then parses thru it's output. The problem lies when I try to filter out the information between the quotes. (<IP_ADDRESS VALUE = "100.148.8.182"/>) I need to get the regexp working so I can get the information out of the quotes. Not just for IP but other...
I used this script a while back. Not sure if it will help you.
Set objOU = GetObject ("LDAP:// OU=<OU>,OU=<OU>,DC=<DC>")
objOU.Filter = Array ("Computer")
For Each ObjComputer In objOU
strName = objComputer.Name
strlen = len(strName)
size = strlen -3
strComputerName = Mid(strName, 4...
I have made the corrections. The script works....as is. My issue is modifying it so that it will read multiple files of the same file type within a given folder on multiple computers. As you can see it already loops throught multiple computers. I just don't know where to start for reading...
Actuallay I didn't want to put all the code here. But here is the entire Script. It opens an excel spreadsheet then outputs the information gathered from the log file on each computer. I need it to read more than just the one log file on a computer. Thanks for your help!!
Dim...
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.