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: *

  1. bdwilcox

    Trying to adapt VBScript to search if machine is in an AD group

    Holy potatoes, strongm, you found the proverbial needle in a haystack. How many times have I been bitten by those tiny little syntax errors. Script works great now with that one change. Hopefully, someone can reference this script in the future if they need one that works since every other one...
  2. bdwilcox

    Trying to adapt VBScript to search if machine is in an AD group

    Hmm, if i run that, I get this error: If i remove 'isMember' from the DIM statement, it will run the interface but when I put in a computer name, it then throws this error: This error is one I was getting with some scripts I found on the internet and I could never figure out exactly what...
  3. bdwilcox

    Trying to adapt VBScript to search if machine is in an AD group

    HI SoftwareRT, thanks for the reply. Unfortunately, I tried replacing all the user tags with computer tags as well but the script throws me the below error. Not sure if I'm missing something that will make it work or if this script method simply won't work with computer AD elements like it...
  4. bdwilcox

    Trying to adapt VBScript to search if machine is in an AD group

    I had what I thought was a simple VBscript to search AD for a user and see if they were part of an AD group. But. so far, I have been unsuccessfully trying to adapt it to see if a computer is part of an AD group. Our AD structure is pretty flat so I'm not worried about nested groups but I am...
  5. bdwilcox

    Script seeing input variable value as blank but sees hard-coded value

    Thanks, everyone, for the input. I should have laid the line out as one line and deconstructed it because the way it was broken up it was confusing me. Appreciate all the help! And thanks for the excellent add, PScottC. I will incorporate those ideas into future scripts. Appreciate all your...
  6. bdwilcox

    Script seeing input variable value as blank but sees hard-coded value

    Thanks, everyone for the info and feedback. Let me try out the suggestions here and I will let you know how it goes. -bw
  7. bdwilcox

    Script seeing input variable value as blank but sees hard-coded value

    With this script, if I use the input variable in the line sAMAccountName=UserLogonName, the code doesn't work. But if I hard-code the value of sAMAccountName with something like sAMAccountName=bdwilcox instead, the code works fine. I've tried adding single and double quotes to the value of...
  8. bdwilcox

    More efficient / manageable way to code this HTA w/ VBScript?

    I have about 300 links I want to put in a reference HTA file for new people to refer to. For each link, I want the user to be able to either copy the URL or launch the site for each. The problem I'm running into is I can't find a way for the HTML code to set the value of a generic variable, use...
  9. bdwilcox

    Validate that HTA text input boxes aren't blank on submission

    I actually figured out a VBSCript hack to implement such a check: <!DOCTYPE html> <html> <head> <title>Program Finder v.1a</title> <script language="VBScript"> Option Explicit Dim width, height width = 900 -1 height = 500 -1...
  10. bdwilcox

    Validate that HTA text input boxes aren't blank on submission

    I was wondering if anyone has either a VBScript or JavaScript subroutine that will work in a simple HTA to make sure neither of the two mandatory text boxes [Machine Name (CompID) & Program Name (ProgID)] are blank when the user presses the Click to Find the Program button? I would like it to...
  11. bdwilcox

    HTA fails with Syntax Error when working VBScript inserted

    Strongm. thank you very much for your help. It was staring me right in the face yet I couldn't see it. Changed the code to pull things out of the sub and got it working with the code: <!DOCTYPE html> <html> <head> <title>Product Finder</title> <HTA:APPLICATION APPLICATIONNAME="Product...
  12. bdwilcox

    HTA fails with Syntax Error when working VBScript inserted

    Pretty new to HTAa. I tried to insert a working VBScript into a simple HTA but it fails with a syntax error pointing to the function line in the VBScript. I've been Googling for hours but can't seem to find an equivalent error being discussed. Working VBScript: Set objFSO =...
  13. bdwilcox

    Self-Elevate Code Stops Script from Running Executable

    I'm just a hack who shoehorns VBScript code I find on the web together so I fully admit I don't know what I'm doing. I'm trying to query a user for their BIOS password, create a command line including that variable and feed the command line to the program HPQPswd64.exe to generate an encrypted...

Part and Inventory Search

Back
Top