Re: Help Windows 2000 Script

From: Karl Levinson [x y] mvp (levinson_k_at_despammed.com)
Date: 08/08/03


Date: Fri, 8 Aug 2003 14:04:15 -0400


If you're asking about a script to automate setting up a new user, yes, that
can be scripted through a variety of ways. It can be done for free with VB
script / WSH script, and if you search www.google.com for those terms plus
what you are looking to automate, you may find it. Personally, I find batch
files to be easier, but those require you to find external utilities to do
what you want. Microsoft provides such utilities in their Windows 2000
Resource Kit, but not all of those utilities are free. To find these free
and not free utilities, go to http://securityadmin.info and search for
Resource Kit to find a link.

Here are some free commands you already have that let you do some of these
things:

Either CACLS or XCACLS [the latter is my preference] is fine for setting
file permissions, though there was or is an issue where the ACLs are
incorrectly ordered, and a user gets a popup error and can potentially reset
the ACLs to Everyone:F by clicking the wrong button if you use XCACLS to
change permissions. Not sure if that also applies to CACLS or not. CACLS
is on your Windows 2000 system and does not need to be downloaded. XCACLS
is part of the Resource Kit mentioned below, not sure if it is free or if
there is a freeware equivalent found in www.google.com

NET USER /? may I think let you set up a new user, though you'd have to look
to www.google.com for more information
MD will make a new directory
NET SHARE /? will tell you how to create a new share on the target server
[you might have to run this locally on the server, but there are other
utilities if you want to do it remotely]

But do check out the Windows 2000 Resource Kit as listed above. If there is
a not-free Resource Kit tool that does something you want, there may be a
free equivalent found by searching www.google.com

"Albert" <choua@afrri.usuhs> wrote in message
news:08dd01c35db6$2b8a70b0$a501280a@phx.gbl...
> Yes. It for NTFS folders and files management.
> Suppose I create a new domain user, create home folder
> for him, and assign certain permissions to access to his
> home folder whatever... Can I write a script to handle
> that ?
> Years ago we use NOVELL netware and they provided very
> good scripts to manage user account and security rights.
> I don't see any from Microsoft Windows 2000.
>
> Is Cacls or Xcacls the right script to use ?
> How to download and learn it as a beginer ?
> Thanks for all infomation you guys give to me.