Search found 44 matches
- Sat Mar 14, 2009 11:05 am
- Forum: VBScript
- Topic: String1.String2
- Replies: 6
- Views: 2701
String1.String2
I was just using position1 and 2 to see what values were being returned. Since I don't know VB at all, I use somewhat primitive means. I echo the values of position1 and 2. Becase string1 and string2 are of different lengths, the values of position1 and position2 should be different and they are the...
- Sat Mar 14, 2009 9:00 am
- Forum: VBScript
- Topic: String1.String2
- Replies: 6
- Views: 2701
String1.String2
I was close. I was using the Left command tied with the value from InStr. Your example is nice. Thank you.
- Sat Mar 14, 2009 8:31 am
- Forum: VBScript
- Topic: String1.String2
- Replies: 6
- Views: 2701
String1.String2
Greetings: I have a need to take a string formatted as string1.string2. I want to find the '.' as the break point and assign the first portion 'string1' to a variable and 'string2' to a different variable. I know I can use InStr to locate where the '.' is in the string but I don't know how to use th...
- Sat Mar 14, 2009 8:31 am
- Forum: VBScript
- Topic: String1.String2
- Replies: 6
- Views: 2701
String1.String2
Greetings: I have a need to take a string formatted as string1.string2. I want to find the '.' as the break point and assign the first portion 'string1' to a variable and 'string2' to a different variable. I know I can use InStr to locate where the '.' is in the string but I don't know how to use th...
- Mon Feb 16, 2009 11:24 pm
- Forum: VBScript
- Topic: Bulk User Rename
- Replies: 3
- Views: 1926
Bulk User Rename
Thank you.
- Mon Feb 16, 2009 10:59 pm
- Forum: VBScript
- Topic: Bulk User Rename
- Replies: 3
- Views: 1926
Bulk User Rename
This kind of works for the first record. It changes the name but not the SAM account, UPN or email address. At the fist instance of Set objUser everything seems to be OK. I get a '0' error code. When I place the second Set objUser inside the If Err <> 0 Then....I get an error that no such object app...
- Mon Feb 16, 2009 5:44 am
- Forum: VBScript
- Topic: Bulk User Rename
- Replies: 3
- Views: 1926
Bulk User Rename
I'll give that a try. I have, at various times, had on error resume next on and off.
We are renaming the users as we move from site-to-site (sites relate to OUs) so searching one OU at a time is preferred although I would not mind understanding how to search the entire AD.
We are renaming the users as we move from site-to-site (sites relate to OUs) so searching one OU at a time is preferred although I would not mind understanding how to search the entire AD.
- Mon Feb 16, 2009 4:18 am
- Forum: VBScript
- Topic: Bulk User Rename
- Replies: 3
- Views: 1926
Bulk User Rename
OK. I have requirement to rename users in bulk. I created a script that uses a CSV as a source, attaches to AD and ranames the accounts. Everything works fine until the script encounters a user account that is in the CSV but is no longer in AD. In those cases, the script appears to use the account i...
- Thu Feb 05, 2009 11:47 pm
- Forum: VBScript
- Topic: Bulk User Add
- Replies: 6
- Views: 3254
Bulk User Add
I am trying to rename the account. I found that if I did not specify the SAM account name in my code I did not get the results I wanted. Things seem to be working now with a few small changes. I always find one small sucess leads to new failures. Still working on things.
- Thu Feb 05, 2009 10:23 pm
- Forum: VBScript
- Topic: Bulk User Add
- Replies: 6
- Views: 3254
Bulk User Add
I get an error saying 'the server is unwilling to process your request' when I try to update the user object - objUser.SetInfo. If I remove the line to update the UPN and the name, the script completes but does not update the SAM account name.