Have come across this kind of thing a couple of times (not guaranteeing is the same of course), first question would be the same as glassca's have you removed/readded the mail account? Then would be does the user have a handheld of any type? We had a problem at one point where the syncing...
Excellent, sorry it took me a couple of goes to understand quite what you meant but just moved the end to the end and put in an else and works beautifully.
Cheers mate
John
All I need to do is make the script skip from the line
objTextFile.WriteBlankLines(1)
down to just before the loop command so that if the user is not found it will still try the next entry
Cleanup(4) is just where I had it going to the end of the script if user wasn't found as this started as a...
PS dont mean to be cheeky but can you see a reason why the ADSpath is not returned? It did work originally but somewhere along the way it stopped returning it?
Sorry didnt explain it well to start with, intRow is set to 2 the line before the Do While command as this is where the first line of usernames start, and the problem is when run and the username is not found the script stops (at the moment because I have no Goto or call command in the if...
This is the Do While to Loop part (which is most of the script)
Do While objSheet.Cells(intRow, 1).Value <> ""
strSearch = objSheet.Cells(intRow, 3).Value
'Get the local Computer Name
strServerName = WScript.CreateObject("WScript.Network").ComputerName
'Get...
Hi guys, I have a script to search AD and return usernames that are found if they are not in a specific OU. I have managed to get it to take input from an excel document but am having problems with it looping back to the top in order to run the search on next entry in worksheet. Is there a...
Thanks PHV but I have already gone through just searching for Excel (just retried with excel read to make sure) but with one exception that tells how to adds entries to a new excel sheet there doesn't seem to be anything there. I've only been scripting for a couple of weeks so am still picking...
Hi guys sorry if this has been asked before (I have searched forum but could not find quite what I'm after) but I have a script to search AD at the moment and return usernames that are input with OU they are in etc. however I would like to get the list of usernames from an excel spreadsheet so I...
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.