Automating set up?

  • Thread starter Thread starter boe
  • Start date Start date
B

boe

Hello,

I'd like to automate some functions on a Win2003 server. I'd like everyone
to login using the same login batch file without having to set it in the
profile for each user. Can you tell me how to do it?

Is there a way so that if I add a new user it would be nice if it
automatically created a folder that I have mapped in the login script.

Thank you
 
boe said:
Hello,

I'd like to automate some functions on a Win2003 server. I'd like everyone
to login using the same login batch file without having to set it in the
profile for each user. Can you tell me how to do it?

Group policy assigned to the Domain with a script for any of:

logon
logoff
startup (machine)
shutdown (machine)
Is there a way so that if I add a new user it would be nice if it
automatically created a folder that I have mapped in the login script.

As long as permissions work, and you can figure out a way to
specialize the directory to that user within it (%username%,
or %userprofile%, etc....) that is easy on their first logon.

You can of course first test to see if exists too.
 
You can use the Default Domain Policy to assign a logon script to all domain
users.
Sounds like you need to use %username% if you want the folder to be named as
the username of the users that creates it.

Regards,
/Jimmy
 
Jimmy Andersson said:
You can use the Default Domain Policy to assign a logon script to all domain
users.

I would strongly recommend NOT using the "Default Domain Policy"
but rather to leave it unchanged and make another custom policy.

For beginners (anyone asking how to assign scripts to all users
or machine qualifies) to GPOs it is best not to confuse one's
own modification with Microsoft's defaults AND if you screw
it up you can just disable or unlink your own policy.

Create another and link it (above the default usually) to the domain.
 
Herb, that's a VERY good point, that's how I do it but didn't think of it
when I posted.

Thanks for pointing that out.

Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Directory Services
---------- www.qadvice.com ----------
 
Jimmy Andersson said:
Herb, that's a VERY good point, that's how I do it but didn't think of it
when I posted.

Sure, I learn more (usually) from my mistakes than
anything else.

And I definitely did this the wrong way the FIRST time
I installed Win2000. <grin>
 
Thank you

Jimmy Andersson said:
You can use the Default Domain Policy to assign a logon script to all
domain
users.
Sounds like you need to use %username% if you want the folder to be named
as
the username of the users that creates it.

Regards,
/Jimmy
 
I appreciate the info

Herb Martin said:
I would strongly recommend NOT using the "Default Domain Policy"
but rather to leave it unchanged and make another custom policy.

For beginners (anyone asking how to assign scripts to all users
or machine qualifies) to GPOs it is best not to confuse one's
own modification with Microsoft's defaults AND if you screw
it up you can just disable or unlink your own policy.

Create another and link it (above the default usually) to the domain.
 
boe said:
Thank you!

Will it automatically create the folder for them?

No, you would have to do that in the script unless you
mean the users %userprofile% directory which is automatic.
 
Sorry, I'm not being clear or not understanding you as to what may well be
the the answer to my question.

I would like to know that their folder is automatically created, I can set
up the mapping in a logon script unless there is a better way. But when I
create user jdoe in active directory, I would like it to automatically
create a folder at \\myserver\e$\users\jdoe and then I'd map a P drive to
that. It would be even better if there was a way (and there probably is) so
that i can put user jdoe in the sales group it creates
\\myserver\e$\users\sales\jdoe and user jsmith is in accounting it would
create \\myserver\e$\users\acct\jsmith
 
boe said:
Sorry, I'm not being clear or not understanding you as to what may well be
the the answer to my question.

I would like to know that their folder is automatically created, I can set
up the mapping in a logon script unless there is a better way. But when I
create user jdoe in active directory, I would like it to automatically
create a folder at \\myserver\e$\users\jdoe and then I'd map a P drive to
that.

You can do that as a "Home" directory but you really should prefer
to use the users "My Documents" which works about the same and
both will be created by default on the location of your choice if
you set it up correctly in the User profiles.

Normally you will not map a drive letter to the My Documents but
that is the convention with Home (obsolete) directories.

Select all of the Users in AD Users and Computers and then right-click
to choose properties and set the Profile tab item to:

\\myserver\$e\users\%username%

(You really should NOT use the Admin share E$ but that is a separate
issue.
It would be even better if there was a way (and there probably is) so
that i can put user jdoe in the sales group it creates
\\myserver\e$\users\sales\jdoe and user jsmith is in accounting it would
create \\myserver\e$\users\acct\jsmith

If you select just the sales folks you can do this as above:

\\myserver\$e\users\sales\%username%

But you will have to repeat it for Acct and each subsequent set of users.
(Normally these would be OUs and NOT "groups" but both are possible.)

\\myserver\$e\users\%username%

My Documents will be a SUBDIRECTORY of the Profile directory here.

You can also redirect it separately through a GPO which may be your
best bet.
 
Thank you

Herb Martin said:
You can do that as a "Home" directory but you really should prefer
to use the users "My Documents" which works about the same and
both will be created by default on the location of your choice if
you set it up correctly in the User profiles.

Normally you will not map a drive letter to the My Documents but
that is the convention with Home (obsolete) directories.

Select all of the Users in AD Users and Computers and then right-click
to choose properties and set the Profile tab item to:

\\myserver\$e\users\%username%

(You really should NOT use the Admin share E$ but that is a separate
issue.


If you select just the sales folks you can do this as above:

\\myserver\$e\users\sales\%username%

But you will have to repeat it for Acct and each subsequent set of users.
(Normally these would be OUs and NOT "groups" but both are possible.)

\\myserver\$e\users\%username%

My Documents will be a SUBDIRECTORY of the Profile directory here.

You can also redirect it separately through a GPO which may be your
best bet.
 
Back
Top