i need a script in bach or powershell able to :
1- Create and add users in my active directory in speciafied Organizational units ( "markiting" or "selling")
2- the script must ask for :
- name , surname, logon name,password, with option : (user can't change password, password never expire, and account must be active). when user is finish create, it must ask for begin again or exit.
3- when a user for "markiting" is create the roaming profile of the user must be set to : \\myserver\ markiting\%username%
when a user for "selling" is create the roaming profile of the user must be set to : \\myserver\ selling\%username%
4- the script must be able to delete the "user account" and "the roaming profile". (delete by logon name)
hope someone can help me out, sorry for my bad english i am french.
for any more information please contact me.