Jump to content

Recommended Posts

Posted

objUser.Put "profilePath", "\\WEB\profile$\" & strUserName 'EDIT -- removed 2 instances of '$' sign

 

 

this make the profile on Drive C: ???

 

objUser.Put "homeDrive", "F"

objUser.SetInfo

objUser.Put "homeDirectory", "\\web\" &strUserName & "$"

i understand that the folder will be on the drive directly

this make the homeDirectory on Drive C: ???

 

 

I make a Drive F on Server Web and i wont to make all the Folders on it how that ?

Is that how it should look ?

\\web\f\student\first\Qojo genia ????

and do i have to make any Share on the drive or Folders or it will work fine on Hide Share ????

and about the photo in Account ? why isn't the User on the Domain ?

thanks for your Time

DC,DNS,DHCP,WDS-2011-06-30-12-43-05.png

Posted
Hi

 

Have a look at this http://www.edugeek.net/forums/how-do-you-do/10680-active-directory-single-bulk-user-creation-free.html as far as I know it creates the user accounts and the folders with ntfs permissions.

 

I have also use Bulk user creator from here. Its an excel file and easy to use. WiseSoft - Resources for IT Professionals

 

Richard

Thanks Richard Did you try Active User Manager

i try to Create user with it but i can't get the Share Folder work fine and the map drive can you help me with some Steps ???

thanks for your time

Posted

It sounds like you are not fully up to speed on how shares work.

 

If you have a profile path of \\web\profile$\username this will be looking for a folder with a name the same as the username, within the Profile$ share on the server called Web. The profile$ share is on whatever drive you create it on. This would be F: in your instance.

 

The way you have the profiles set out is that there is one hidden share (profile$) which contains a seperate folder for each user. This is the same as what I do. You have also done what I have done and created the users home folders with their own sperate shares i.e. \\web\user1$ , \\web\user2$ etc.

 

You could if you wished create just one share called Homedrives$ on the F: drive and just create folders for the users within that. This would then change the homedrive path to look like:

 

\\web\homedrives$\user1 , \\web\homedrives$\user2 and so on.

 

As for why the accounts are not on the domain, Is the virtual machine you are testing on joined to the domain?? I assume that VM logs onto your network??

Posted

Just found your problem! You don't have an OU in your domain structure called 'Network Users' like I do in my script! You will have to remove any references to it.

 

Your structure will be more like OU=first, OU=student, dc=hicis, dc=com

 

Also, what are you entering as the year of entry? From what I can see you should be using 'First' ??

Posted

Finall Ver Of the Script.rar

Hello themightymrp

Finally i manege to finish the Script and make it work to do Every thing and this is the Last ver of The Script and tthe User file and all thing and tomorrow will be the day of my Project i can't make it without you man

i don't know what i can say for you man you are hero thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks i hope one day we can meet in Egypt and see you in person

 

:D:D:D:D:D:D:D:D:D

  • 3 weeks later...
Posted

@zooroo44: that's great

Would u mind if u record a video demo for me?

script u wrote very well but, i want to see the shared folder, group ... structure in your demo.

 

Thanks a lot.

Tony Nguyen

  • 3 weeks later...
Posted
@zooroo44: that's great

Would u mind if u record a video demo for me?

script u wrote very well but, i want to see the shared folder, group ... structure in your demo.

 

Thanks a lot.

Tony Nguyen

sorry man i was busy this time this is the Demo

Gradtation Project 2&#x202c‏ - YouTube[/url]

i hope it will help any thing i'm here

Posted (edited)

 

Note how I have had to build the command line up using variables as I am calling bacth file commands from a VBscript. It's a little more awkward and to be honest, there is probably a neater way of doing it. But for me this works just fine so why change it? :)

 


Dim sCommand As String
sCommand = "md C:\myDir"
Shell ("cmd.exe /c" & sCommand)
[/Code]

 

http://www.computerperformance.co.uk/ezine/ezine80.htm

Edited by mac_shinobi
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...