Any one got any ideas on how to create a script that sorts users alphabetically based on the first letter of their username and moves them into corresponding global groups
We recently migrated to a new Active Directory domain. The SMS Server remained on the old domain. Since migrating, our new domain accounts have been added into SMS Admins. Since the migration, my local sms console has opened but items such as Site hierarchy, collections are empty. When I check...
Thanks to your help you've given me some breathing space and a place to start to refine the script toward the 2nd of your suggestions. As I refine the script I'll post here if I get any probs. Thanks again for your help, its much appreciated.
Thsnks for your continued help. The script does already include this statement:
' On Error Resume next
intCounter = 1
For Each objUser In objOU
If objUser.Class = lcase("User") then
objGroup.add(objUser.ADsPath)
intCounter = intcounter +1
End If
Next
However if the users...
outstanding! that worked, thanks for your help on that, now for the next stage... When I added another user and ran the script again, the error reported that the object already exists. How do I code the script to check if the item already exists in the target global group then move on to the...
Forget the last one, I'm now getting:
Script: Move.vbs
Line: 15
Char: 1
Error: There is no such object on the server
Code 800720030
(source(null)
I have checked both the source and target on the AD and both exist. This is the actual code I've used:
Option Explicit
Dim objRootLDAP...
Getting an error:
Script: Move.vbs
Line: 15
Char: 1
Error: An invalid dn syntax has been specified
code: 80072032
Source: (null)
Any ideas what this means
I have a task where I need to populate a global group in active directory with users copied from an a nested OU in the same parent OU. I've never used scripts before but as this appears to be the only way of copying mass users across I have to give it a try. Where do I start and how and where do...
Thanks its getting clearer. Excuse my inexperience but is the strOU the source OU and strGroup the Target group? and should you include the full distinguished to the target group also?
I've been given a task where I have to copy users from an Active Directory OU to a global Group then schedule this to happen twice daily. I've never used scripts before and haven't got a clue where to start. Can someone show me a quick way to script this action. As I've never done this before I...
I have the several workgroup PCs that must connect to a database hosted on SQL 2000 on a Win2k server on a domain. The database is configured for mixed mode. If I try to set up an ODBC System dsn using SQL Authentication, I get a Server does not exist or access denied error. I can connect to...
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.