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

    Count RD sessions on multiple servers

    I'm trying to query multiple servers in our RD Farm and count all the Status:Active sessions and display them in a text file. I was hoping this is possible using query user /server:$Server1,Server2,Server$3...etc. 2>&1 Server 1 has 21 active connections Server 2 has 12 active connections Server...
  2. pbanacos

    NETLOGON Script

    I found out recently that Server 2008 R2 dropped support for IFMEMBER.exe. Is that is true? If so I need to get the script below working with a related method. Our company needs a logon script that looks at two different company groups in AD and maps drives base on group membership. @echo off...
  3. pbanacos

    Need help regarding my subdomain

    Hello, I manage a website that displays a companies daily price on the frontpage. I recently created a mobile subdomain of that site, but when i try to #include the text file from the root directory the values are empty on my subdomain pages. Am I doing anything wrong or do I need a subdomain...
  4. pbanacos

    Need help adding a conditional statement

    Hello, I have a CheckedListBox that will list common RIA applications. I want to check if the object assigned to 'itemchecked' is equal to java and if so to download it. Please see below: Dim itemChecked As Object For Each itemChecked In CheckedListBox1.CheckedItems...
  5. pbanacos

    How Can I List Programs in Alphabetical Order?

    Hi Guys, I want to take a list of results generated by the code below and list it in alphabetical Order. Should I use a bubble sorting algorithm or does WMI have any native method or function to get this done? Here is the snippet of code: Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE...
  6. pbanacos

    Error 550 generated while performing CDONTS.NewMail")

    Hello, I changed domain providers recently and ever since I pointed the records to the new server the 'contact us form' gives me the following error: Most likely causes: •The website is under maintenance. •The website has a programming error. What you can try: Refresh the page...
  7. pbanacos

    Registry script question

    I'm trying to find a way to see what registry keys were created or modified after installing software on my computer. Is there a report I can create for this task Thanks, Paul
  8. pbanacos

    Program Usage

    Hello, I'm having trouble finding an accurate way of scripting how frequently an application is used on a WinXP, Vista system. Add or Remove programs always displays false information. Is there a log that would be more useful for this? Thanks for any help! Paul
  9. pbanacos

    Guest User Account Question

    I recently worked with a customer that no: Wireless Connection or Local Area Connection Is there anyway to unlock this feature on a guest account or do you need to create a Limited User account. Thanks for any help! Paul
  10. pbanacos

    List File Size Script

    Hello, The script below is searching for specific files and memory usage on my system. Is there a way to just make this display the total file size. Thanks in adavance! ------------------------------------- Set objShell = CreateObject("WScript.Shell") objShell.Run "%comspec% /c c: & dir /s /w...
  11. pbanacos

    Search for files Script

    Hello, Is there a way to search for MP3 files using WSH and VBscript? Im trying to get the total number of files and how much space they take up on a users system. Any Help with this would be much Appreciated!! I was thinking that the WIN32_Directory may be useful for this? Thanks
  12. pbanacos

    Enumerate registry key

    Hello, I keep getting a Ubound error message when I run this script. Does anyone see what is wrong? I would appreciate any help Const HKEY_LOCAL_MACHINE = &H80000002 Const REG_SZ = 1 Const REG_EXPAND_SZ = 2 Const REG_BINARY = 3 Const REG_DWORD = 4 Const REG_MULTI_SZ = 7 strComputer = "."...
  13. pbanacos

    List All Members of each Group

    I need help converting this too loop statements below to jscript: strComputer = "." Set colGroups = GetObject("WinNT://" & strComputer & "") For Each objGroup In colGroups Wscript.Echo objGroup.Name For Each objUser in objGroup.Members Wscript.Echo vbTab & objUser.Name...
  14. pbanacos

    User Account Query and Permission Level

    Hey, I'm trying to use the WMI and Win32_GroupUser to get the Win32_UserAccount class for all members of a specific group, how would I construct the query string for the request? Would like to see: Admins PowerUsers Guests Limited...Etc Any Help would be appreciated! Thanks Paul
  15. pbanacos

    Show Host and IP

    Hello, This script below is giving me a problem on lines 12 and 14. Says expected object is missing. Not sure if i am missing double back slashes or what. Any help would be much appreciated Thanks var cstrShowMyIP = "http://www.showmyip.com/xml/"; var objRemXML; var strIPAddress; var...
  16. pbanacos

    Const declaration

    Hello, Need help getting this const assignment working in jscript. Am I using the right variable declaration or should var work for this Const cstrShowMyIP = "http://www.showmyip.com/xml/
  17. pbanacos

    Question about User Session

    Hello, I have a real newbie question about the code below. when I try to display the current user session in Windows it doesn't work. when i run the code it says } expected on line 4. Any help would be deeply appreciated Thank you, Paul var wbemFlagReturnImmediately = 0x10; var...
  18. pbanacos

    Newbie Help!! Exporting

    Hello, trying to export the registry key below to a text file. The test file does not work. I would appreciate any help! Thank You, Paul var regkey; var WshShell = WScript.CreateObject("WScript.Shell"); WshShell.Run("regedit /e c:\test.txt...
  19. pbanacos

    Check function Question

    Hello, I need some help with the code below. This code will fail to run successfully if this location in the registry doesnt exist. HKCU\\Printers\\DeviceOld. That would be great if we could see if it is valid before we proceed with the function or popup a message saying the location doesnt...
  20. pbanacos

    Need help with error checking function

    Hello, I need some help with the code below. This code will fail to run successfully if this location in the registry doesnt exist. HKCU\\Printers\\DeviceOld. That would be great if we could see if it is valid before we proceed with the function or popup a message saying the location doesnt...

Part and Inventory Search

Back
Top