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...
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!
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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.
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.
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...
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...
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...
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.