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

  1. keybrdcowboy

    Registering .dll for all users help

    Okay, I was wrong.... Sorry to bring this back up, but I wanted to provide an update. This is still not working correctly. For whatever reason, the script is not registering the dll files. What I had to do was create a separate batch file and then use the script to call that batch file. The...
  2. keybrdcowboy

    Registering .dll for all users help

    Thanks for everyone's help. I added some code in to check and see if those dll's existsed before trying to register them. In my two tests so far, things seem to be good. I will let you know if I experience anything else. Thanks!
  3. keybrdcowboy

    Registering .dll for all users help

    Hi... I have a script that runs as a computer startup script. The script runs an msi file that installs a piece of software, and then edits a registry entry and runs the regsrv32 command to register two dlls. The software installs fine, and the registry edits are made, however the dll...
  4. keybrdcowboy

    Changing more than one password - Access Denied??

    Thanks for everyone's comments. I will make sure to check that FAQ out mrmovie. PScottC, I can't use the dsmod in this particular case because this script is intended for certain users to run on their own. This is so they can modify their own student accounts they have without having to call...
  5. keybrdcowboy

    Changing more than one password - Access Denied??

    Let's see, I will try and reply to each of your comments here. The array did not have blank strings; I had an Echo statement showing me what it was pulling. Turns out it was trying to reset the passwords too quickly. Why that gives me an access denied error, I dunno. But I put a sleep...
  6. keybrdcowboy

    Changing more than one password - Access Denied??

    Here ya go..... ' This script will enable the user to specify if they want to enable accounts, disable accounts, ' or change the password on selected accounts. The script is setup to use text files already ' created which contain the usernames that need to be modified. ' Option Explicit...
  7. keybrdcowboy

    Changing more than one password - Access Denied??

    Hoping someone can help me out here. I am writing a script that will input a list of usernames into an array, and then for each user in the array, reset the password to a specified value. If I edit my input text file to have only 1 username in it, it works fine. But if I put two usernames in...
  8. keybrdcowboy

    'Null' Error..... Used to work

    I figured it out.... it was becuase we recently did an email gal migration which changed all of our user profiles in AD. When the script would run and pull the DN for the user, it did not include a backslash (which wasn't visible in the box provided by WScript.Echo, but WAS there when you...
  9. keybrdcowboy

    Enumerate all users in AD - Not Working

    Would appreciate any help you can give here. I am trying to loop through all our users in AD without feeding in usernames via a text file. Below is my code. When I run the code, it only counts 8xx users. We have a little over 28xxx user accounts in our domain. Can anyone help explain why...
  10. keybrdcowboy

    'Null' Error..... Used to work

    I keep getting a '(null)' error in the following script. It used to work, but ever since we did a migration and the LDAP 'name' field changed, I am having all sorts of problems. Here's the code: Option Explicit Dim oFSO, readFile, outFile, iUpperBound, strUserDN, strUser, oConnection...
  11. keybrdcowboy

    Get Windows Username from Web Page

    Ask that question in the ASP forum.... I work with some guys who do that all the time in their ASP pages...I'm sure you could google that too....
  12. keybrdcowboy

    Incremental Log Sent Via Email

    You should be able to compare the modified dates. Do some research on how to pull the modified date from a file, and then I believe you can just use a regular greater than or less than symbol to see which one is newer.
  13. keybrdcowboy

    New Week, New folder

    Did you wnt the folder to just say "week1", "week2", etc? Or did you want it to actually reflect the current date? If it's just the week1 week2 thing, then just have a counter that increments everytime it creates a folder. If you want it to actually show the date, then I would just mess...
  14. keybrdcowboy

    change local admin password

    Here's the script I used to do mine. You need to edit the infile variable to reflect a textfile that you have with all the machine name's whose local admin password you want to change. (Keep in mind that it will skip the very first line in the file...) That should be the only modifications...
  15. keybrdcowboy

    Object Required error... Can anyone explain why?

    Ummmm.... not sure what you mean there. The error control stuff might have been making me get the wrong error message, but the problem that stopped the script from doing what it had to do was the names of the OUs in Active Directory. Fixed those and it worked fine after that.
  16. keybrdcowboy

    Object Required error... Can anyone explain why?

    Yes it is. Turned out I was getting errors due to the OU names that I was trying to pull the user info from. Fixed those (Why did AD allow them to be created with names that don't work correctly??) and it's all working now. Thanks for everyone's help.
  17. keybrdcowboy

    Object Required error... Can anyone explain why?

    Yes, in this script, I am not updating anything. But in past scripts I had not been able to figure out how update with the recordset method, so I wouldn't ever use it. Since I already have that function that I just cut and paste, I would prefer to just use that. But I need to know how to get...
  18. keybrdcowboy

    Object Required error... Can anyone explain why?

    I appreciate everyone's help. Okay, I believe the original problem was caused by that first user in my list not actually having an email address in AD. (Someday I will learn to check the small stuff before posting...) I made the recommended Error checking changes, and am now having another...
  19. keybrdcowboy

    Object Required error... Can anyone explain why?

    Nope, get the same error message. It's on the line where I put oUser.GetInfo. I get an "Object required: " " error. Any other ideas? Thanks.
  20. keybrdcowboy

    Object Required error... Can anyone explain why?

    I have run into this issue several times. In the past I have just ended up redoing the whole script and connecting to the user account a different way, but I am hoping someone can explain what I have wrong and why this doesn't work. Here's my code: Option Explicit Dim FSO, oShell...

Part and Inventory Search

Back
Top