Greetings,

I am rather new to VBS and what it can do, but so far it has been a fun
experience. I currently am making a logon script via vbs and it is coming
along nicely. However, I am doing this in preparation of a move from mixed
Novell/MS environment to a pure MS environment.

Novell is currently used as the file server, but I have recently setup a MS
File Server and plan to migrate to it in a month or two. Novell allows for
the dynamic creation of the user home folder and rights assignment to that
folder whenever creating a new user account. My question is this: Is it
possible to mimic that functionalty in the MS environment using VBS, say
write a script to create a new user, user home folder and set permissions on
it. I would assume you would want input msgbox's for the unique naming and
so forth. Just wondering if this is workable? Thanks...

-Mac

RE: Functionality Question by urkec

urkec
Tue Apr 03 09:38:03 CDT 2007

You can automate creation of both AD an local user accounts. For AD user
account see this:

http://www.microsoft.com/technet/scriptcenter/guide/default.mspx?mfr=true

(ADSI scripting primer)

For local user accounts:


http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true

(Other directory services).

--
urkec


"Mac" wrote:

> Greetings,
>
> I am rather new to VBS and what it can do, but so far it has been a fun
> experience. I currently am making a logon script via vbs and it is coming
> along nicely. However, I am doing this in preparation of a move from mixed
> Novell/MS environment to a pure MS environment.
>
> Novell is currently used as the file server, but I have recently setup a MS
> File Server and plan to migrate to it in a month or two. Novell allows for
> the dynamic creation of the user home folder and rights assignment to that
> folder whenever creating a new user account. My question is this: Is it
> possible to mimic that functionalty in the MS environment using VBS, say
> write a script to create a new user, user home folder and set permissions on
> it. I would assume you would want input msgbox's for the unique naming and
> so forth. Just wondering if this is workable? Thanks...
>
> -Mac
>
>
>

Re: Functionality Question by Mac

Mac
Tue Apr 03 09:49:02 CDT 2007

Thanks for the reply! I looked over the links for the AD accounts and from
what I have read so far I am sure it would be a simple thing to create a
user folder in the home drive, however, I couldn't locate anything on
whether or not you can set folder permissions via VBS. Is this possible?

"urkec" <urkec@discussions.microsoft.com> wrote in message
news:0020A024-71ED-4F70-A281-CC5D7B5AA4E3@microsoft.com...
> You can automate creation of both AD an local user accounts. For AD user
> account see this:
>
> http://www.microsoft.com/technet/scriptcenter/guide/default.mspx?mfr=true
>
> (ADSI scripting primer)
>
> For local user accounts:
>
>
> http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
>
> (Other directory services).
>
> --
> urkec



Re: Functionality Question by urkec

urkec
Tue Apr 03 10:18:02 CDT 2007

I think one way is to use WMI, Win32_Directory class,
ChangeSecurityPermissions, ChangeSecurityPermissionsEx,
GetEffectivePermission methods. If you need help on a particular problem you
will probably get an answer here or microsoft.public.windows.server.scripting



--
urkec


"Mac" wrote:

> Thanks for the reply! I looked over the links for the AD accounts and from
> what I have read so far I am sure it would be a simple thing to create a
> user folder in the home drive, however, I couldn't locate anything on
> whether or not you can set folder permissions via VBS. Is this possible?
>
> "urkec" <urkec@discussions.microsoft.com> wrote in message
> news:0020A024-71ED-4F70-A281-CC5D7B5AA4E3@microsoft.com...
> > You can automate creation of both AD an local user accounts. For AD user
> > account see this:
> >
> > http://www.microsoft.com/technet/scriptcenter/guide/default.mspx?mfr=true
> >
> > (ADSI scripting primer)
> >
> > For local user accounts:
> >
> >
> > http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
> >
> > (Other directory services).
> >
> > --
> > urkec
>
>
>