Search found 44 matches

by mmacdonald
Thu Feb 05, 2009 12:55 pm
Forum: VBScript
Topic: Bulk User Add
Replies: 6
Views: 1706

Bulk User Add

Greetings: I want to rename users in bulk using a CSV. I found some code that works for one user. ===START===strParentDN = "ou=Sales,dc=2zero,dc=local" ' e.g. strUserOldName = "BWagner" ' e.g. jsmithstrUserNewName = "Beatriz.Wagner" ' e.g. jimstrEmailAddress = "Beatriz.Wagner@2zero.net" Set objCont ...
by mmacdonald
Thu Feb 05, 2009 12:55 pm
Forum: VBScript
Topic: Bulk User Add
Replies: 6
Views: 1706

Bulk User Add

Greetings: I want to rename users in bulk using a CSV. I found some code that works for one user. ===START===strParentDN = "ou=Sales,dc=2zero,dc=local" ' e.g. strUserOldName = "BWagner" ' e.g. jsmithstrUserNewName = "Beatriz.Wagner" ' e.g. jimstrEmailAddress = "Beatriz.Wagner@2zero.net" Set objCont ...
by mmacdonald
Wed Jan 07, 2009 2:12 am
Forum: VBScript
Topic: Create Users from CSV
Replies: 2
Views: 854

Create Users from CSV

I got it working now for a single user. The problem now is that it does not seem to move on to the next row and create the second user. It is looping and trying to create the same user again and again.
by mmacdonald
Wed Jan 07, 2009 1:26 am
Forum: VBScript
Topic: Create Users from CSV
Replies: 2
Views: 854

Create Users from CSV

After a little what I call troubleshooting, I can now create one user in the Import OU. I changed the Set oContainer = GetObject("LDAP://cn=Import," & _ to Set oContainer = GetObject("LDAP://ou=Import," & _ I now know that it works for one user (I have two users listed in my csv). I am also trying t...
by mmacdonald
Tue Jan 06, 2009 1:21 pm
Forum: VBScript
Topic: Create Users from CSV
Replies: 2
Views: 854

Create Users from CSV

Hello: I need to create a bunch of users in AD using a CSV file as a source. I have seen some examples and none seem to work well if at all. I have to imagine that someone has already done this or something similar. Any help would be appreciated. Here is one of the scripts I am trying to work with: ...
by mmacdonald
Thu Sep 25, 2008 2:48 am
Forum: Customer Service
Topic: Registration Information
Replies: 2
Views: 1520

Registration Information

Hello:

I am on the road and my machine went down. I need to get my PS re-installed and would like to input my license information but do not have it with me. How can I get it?
by mmacdonald
Thu Aug 07, 2008 9:08 am
Forum: VBScript
Topic: Environment Variables
Replies: 6
Views: 2012

Environment Variables

Almost: I have the basics working. If I put these lines of code in the script by themselves, everything works. The ENV variable gets set correctly. Set sWSH = CreateObject("WScript.Shell") Set sysvars = sWSH.Environment("SYSTEM") sysvars("HPAPP") = "D:HPCORP.DAT" However, if I nest them into a Case ...
by mmacdonald
Tue Aug 05, 2008 6:03 am
Forum: VBScript
Topic: Environment Variables
Replies: 6
Views: 2012

Environment Variables

Greetings: I need to set an environment variable using VB and I don't know how. If someone could give me a pointer, I would appreciate it. I have seen code that looks like this but it does not always seem to work and I want the variable to set per a users' login session. The variable will be set dep...
by mmacdonald
Tue Aug 05, 2008 6:03 am
Forum: VBScript
Topic: Environment Variables
Replies: 6
Views: 2012

Environment Variables

Greetings: I need to set an environment variable using VB and I don't know how. If someone could give me a pointer, I would appreciate it. I have seen code that looks like this but it does not always seem to work and I want the variable to set per a users' login session. The variable will be set dep...
by mmacdonald
Sat Mar 15, 2008 11:16 pm
Forum: VBScript
Topic: File Copy Script
Replies: 5
Views: 1659

File Copy Script

I tried again and it did echo to the screen and showed the correct value. My apologies. I get the error 'access denied' when I execute:

objFSO.CopyFile "C:test.txt" , sSysRoot, OverwriteExisting