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 strongm 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: desktoprat
  • Order by date
  1. desktoprat

    Troubleshooting help please

    Objective: To print out individual sheets from a gradebook. I have looked around the Internet and cobbled together a script that mostly works. I will post it at the end. While I am still troubleshooting, I am having each individual students grades display. Once I have it working properly, I...
  2. desktoprat

    Invalid Method while setting DNS Suffixes???

    Ok, upon further review and finding a script I had played with some years ago, I added this line in Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") arrDNSSuffixes = Array("abc.net", "abc.edu") objNetworkSettings.SetDNSSuffixSearchOrder(arrDNSSuffixes) Script...
  3. desktoprat

    Invalid Method while setting DNS Suffixes???

    Hey guys, its been a few years since I've been around, but I am trying another round of teaching myself more about scripting. So, here goes..... The following script works with the exception of the line that says objNetAdapter.SetDNSSuffixSearchOrder(arrDNSSuffixes) The error being...
  4. desktoprat

    Popup method question

    Actually, it is a vbscript question. Here is the line I am working with from the MSDN documentation. Displays text in a pop-up message box. intButton = object.Popup(strText,[nSecondsToWait],[strTitle],[nType]) My question would be is there any way to have the popup show up in one of the...
  5. desktoprat

    Popup method question

    Been looking around, can't quite find an answer to my questions. Using the popup method, is there a way to control its placement? Also, is there a way of making it to be a background window when it comes up, and NOT the active window?
  6. desktoprat

    Not crafting search phrase right

    I am running into my snag at line 31, wscript.echo lines thrown in so I can see each step finishing ' set scripting environment set objFSO=createobject("scripting.filesystemobject") ' On Error Resume Next ' at this point, I want to provide the master list of files master =...
  7. desktoprat

    Not crafting search phrase right

    I am sure this question has been asked before. I have a script, that reads a list of IPs from a text file and performs an action with each IP. Eventually, the script finishes. I would like to make it a little more inclusive. Read a list of text files, then read the IPs from the first text...
  8. desktoprat

    Text manipulation

    Hello again, been out for awhile so I may have lost some ground on learning Vb scripting. My question this time around.... The left command will return the first X values from a given string. Is there an equivialent command that will delete the first X values from the left?
  9. desktoprat

    formatdatetime

    Starting to play with them now, but should I be able to format the objItem.LastBootUpTime? Or is it a value that just can't be altered because the way it is returned?
  10. desktoprat

    formatdatetime

    Not sure how to accomplish what I want. Essentially, I want to create a list of computers that have not been rebooted in the last x days from today. If I use the date function, I get 7/26/2004 Using Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)...
  11. desktoprat

    displaying colItems???

    Thanks Markdmac I follow pretty much what you did, but the only line I am not understanding the purpose of is report = "" What is the purpose of that line?
  12. desktoprat

    displaying colItems???

    Using the following On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_TimeZone",,48) Set colItems2 = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)...
  13. desktoprat

    Executing batch files remotely

    Another question. If I did this iret=oproc.create("c:\updates\patch.bat") objFso.DeleteFolder(strFolder) Will the batch file finish running before the folder its in gets deleted? I am thinking that the folder will get deleted whether or not the batch is done running because the...
  14. desktoprat

    internet epxplorer homepage reset every time.

    What I have started to see lately is spyware is being launched as a service. I can delete a registry key to remove whatever piece of crap from launching at startup, hit refresh and it is back immediately. Start scrolling through the services and see whatyou can find.
  15. desktoprat

    Executing batch files remotely

    For my own edification, could you explain the line iret=oproc.create("c:\updates\patch.bat") 1. What causes iret to fire? 2. Is it's reference to c: defined by the getObject line? I mean, how does it know you mean the remote computer vs the local computer? Everytime I pick up something in...
  16. desktoprat

    Executing batch files remotely

    I really appreciate the both of your help. I am now back at work tonight and seeing what I can do. PHV - I tried fixing the typo, but no go as of yet. So far, each time it gets to a new machine, it executes the batch file on my own machine. Well, it appears to be running on my own machine at...
  17. desktoprat

    Executing batch files remotely

    I don't mean to sound lazy, but I am in serious trouble and could use some fast help. I know the topic has been covered previously, but I can't seem to understand how to make it work correctly. Using a previously working script, I can sucessfully create a folder on a remote machine, copy in all...
  18. desktoprat

    Reinstalling SUS client???

    Long story, very simplified. We were on SUS 1.0 w/SP1. Moved to the beta copy of the SUS 2.0. Clients updated. Had to move back to 1.0. Most clients are not talking to the SUS server now. Reading various logs, I beleive the client is the issue, 10% of our machines are still reporting to the...
  19. desktoprat

    Inventorying Software

    As always, thanks Tsuji, I think I understand the point you were trying to make.
  20. desktoprat

    script to add/remove user to group

    Not sure whether to start a new post or not, but it seems in the right thread. We are still slowly cleaning, condensing, straightening up years of doing things not as well as we could have. Nearly every user is an administrator. Currently, I am going through with Dameware and manually moving...

Part and Inventory Search

Back
Top