logon scripts

  • Thread starter Thread starter rob
  • Start date Start date
R

rob

I'm am trying to implement a simple logon script to clear
the current mappings and then to map the local f: drive.
the script file seems to be correctly written. if i run it
locally, it deletes a mapping then reassigns. however if i
try to run it as a login script, it doesnt appear that the
client sees, or executes it. can someone help with the
path of the script file?
thanks
 
-----Original Message-----
I'm am trying to implement a simple logon script to clear
the current mappings and then to map the local f: drive.
the script file seems to be correctly written. if i run it
locally, it deletes a mapping then reassigns. however if i
try to run it as a login script, it doesnt appear that the
client sees, or executes it. can someone help with the
path of the script file?
thanks
.
What type of client: WIN9x, WINNT, WIN2000, WINXP? How is
the logon script being "delivered"? Is it part of a Group
Policy ( if that is the case then the WIN9x and WINNT
clients will not "see" it ) or is it part of each user's
profile?

When you say a "local F:\ drive" what exactly do you
mean? Local to what? Are we talking about a mapped
network drive on a Network Server that is properly shared?

Are we talking about an Active Directory?

Please clear up these questions so that we can assist
you. Also, including the actualy logon script might be
really helpful.

HTH,

Cary
 
clients are w2k...
local to the client.. their local f: should be mapped to a
folder on the server.

i have looked at other newsgroups and saw where it
suggested a group policy level. that did not work either.
i would be happiest to do it at the user level as i
believe by group policy, everyone would have to have the
same logon script.
i dont know if the path to the script is right. is there a
way i can echo something to the screen just to find out if
it is seeing the script.
the folder itself should be shared properly, the users can
map it manually, just not through the script file.

Active Directory is yes...
the logon script more simplified is...
"
net use f: /delete
"

i manually mapped the f: to the server.. i took out all o
ther syntax, to minimize error.
if i copy this bat file to the pc and run it, then the
mapping is deleted.

thank you...
********************************************************
 
-----Original Message-----
clients are w2k...
local to the client.. their local f: should be mapped to a
folder on the server.

i have looked at other newsgroups and saw where it
suggested a group policy level. that did not work either.
i would be happiest to do it at the user level as i
believe by group policy, everyone would have to have the
same logon script.
i dont know if the path to the script is right. is there a
way i can echo something to the screen just to find out if
it is seeing the script.
the folder itself should be shared properly, the users can
map it manually, just not through the script file.

Active Directory is yes...
the logon script more simplified is...
"
net use f: /delete
"

i manually mapped the f: to the server.. i took out all o
ther syntax, to minimize error.
if i copy this bat file to the pc and run it, then the
mapping is deleted.

thank you...
********************************************************
.
Rob,

I am sorry. I must be missing something. Normally mapped
network drives are shared folders located on network
servers, share and ntfs permssions are applied to the
shared folders and users map to that shared folder either
via a logon script or manually mapping network drives
themselves.

An example of a logon script would be as follows:

net use P: /del
net use P: \\server\share01

net use O: /del
net use O: \\server\share02

I think that you *could* be refering to the SUBST
command? I think that this "maps" local drives to another
location. IIRC, MS suggests using this when using
Terminal Servers. Please note that I have never used it
before and am not really clear on what this command does.

As far as using Group Policy for logon scripts - I
wholeheartedly support this. I much prefer this method to
logon.bat or logon.cmd! And since your clients are all
WIN2K GPO is avialable. Take a look at
http://www.rlmueller.net for some sample logon scripts.

Something else is popping in my head at the moment: do all
of your client computers have a c:\ partition, a d:\
partition, an e:\ partition and an f:\ partition? Do you
simply want each user's F:\ partition - located on the
local computer - to be shared so that everyone can access
data stored on it? Is this what you are getting at? I am
sorry for the above if this is the case! I guess I was
not thinking outside the box! If this is the case I am
not sure how you would do this! I am thinking that
something with %computername% might work....

HTH,

Cary
 
I AM SO SORRY IM SO CONFUSING.... the client machine is
not partitioned. i just want them to be able to map their
f:/ drive to a shared folder on the server. for instance,
an application resides on the server inside this shared
folder, APPS. so my user normally right clicks on my
computer, then map drive, then types... //server/APPs to
map their f: to //server/Apps.
the problem is that some of my users use different pcs. so
instead of them having to map the drives on each machine
they logon, i'd like to control it by some type of logon
script.
i have had problems with setting this up in active
directory. if i copy the script file to the client and
run it from there, it does run as thought, and it prompts
me that "F:/ is currently mapped to //server/Apps, do you
want to disconnect it ".. so it seems that the script file
is right, just i dont know if it sees it from the server.
it may be that its hung up at the prompt waiting for me to
answer it, and i can't see it through the windows browser.
that's why i was wondering if there was something i could
put in the script file, that would interrupt the browser
and have it tell me, hey i'm running your script file, but
im hung up.

but you also mention the global policy,
i saw an answer "jason" wrote to same question in another
forum with the global policy, so i tried it.. i copied the
bat file to the user configuration, windows settings,
logon/logoff, and it still didnt work for me.
what is best way?
 
-----Original Message-----
I AM SO SORRY IM SO CONFUSING.... the client machine is
not partitioned. i just want them to be able to map their
f:/ drive to a shared folder on the server. for instance,
an application resides on the server inside this shared
folder, APPS. so my user normally right clicks on my
computer, then map drive, then types... //server/APPs to
map their f: to //server/Apps.
the problem is that some of my users use different pcs. so
instead of them having to map the drives on each machine
they logon, i'd like to control it by some type of logon
script.
i have had problems with setting this up in active
directory. if i copy the script file to the client and
run it from there, it does run as thought, and it prompts
me that "F:/ is currently mapped to //server/Apps, do you
want to disconnect it ".. so it seems that the script file
is right, just i dont know if it sees it from the server.
it may be that its hung up at the prompt waiting for me to
answer it, and i can't see it through the windows browser.
that's why i was wondering if there was something i could
put in the script file, that would interrupt the browser
and have it tell me, hey i'm running your script file, but
im hung up.

but you also mention the global policy,
i saw an answer "jason" wrote to same question in another
forum with the global policy, so i tried it.. i copied the
bat file to the user configuration, windows settings,
logon/logoff, and it still didnt work for me.
what is best way?

all
.
Rob,

No worries about the confussion. It is mostly me as I am
really under the weather today and can not think straight!

Anyway, I am going to assume that the reason that the
logon.bat did not work is because in addition to
adding "logon.bat" to each user's profile ( btw - take a
look at ADModify which is a really cool tool from a
couple of guys at Microsoft - it will allow you to make a
change to a bunch of user accounts at once so that you do
not need to go to each and every user account! ) is that
you have to place the actual "logon.bat" in the shared
NETLOGON folder. And jsut a tip: I would use logon.cmd
if possible. I have read about .bat logon scripts
causing problems with WIN2000 but the .cmd logon script
does not. I do not have any empirical evidence to
support this, though. So maybe I should not say it!

Are you confortable with Group Policy? If you are not
then I might suggest that you start! However, please
please please do so in a test lab. I try to
never "learn" at the expense of the users. Really good
way to become very unpopular!

There is an excellent book by Jerry Moscovitz
called "Windows 2000 - Group Policy, Profiles and
InelliMirror". It is quite good. The ISBN number is 0-
7821-2881-5 and is from Sybex.

I would be more than happy to walk you through this (
using a logon script via Group Policy ) if you would
like. There would be two parts: actually creating the
logon script file and then creating the Group Policy.

Let me know.

Cary
 
As a reminder, if you are going to use group policies for
logon scripts never, never, never name it with the
beginning word logon as in logon.bat or cmd. It will not
run.
 
yes, i would like to do that. i appreciate the resource
book. i need a good resource, as you know most books just
give a cursory to things, because they try to cover so
much. anyway, i have a test user in the the OU that i am
creating the Policy for, so as to have it minimize effect
on any users. i have tried a script file called test.bat,
then renamed it to test.cmd. i do have it in the NETLOGON
share, which is at C:/WINNT/SYSVOL/sysvol/server/SCRIPTS.
The path for the logon script under the profile tab of the
user is C:/WINNT/SYSVOL/sysvol/server/SCRIPTS/test.cmd

also, side note... since posting in this forum, i have
started getting a lot of mail from microsoft, or
undeliverable mail to people i dont know. i ran a virus
scan and nothing shows, is this normal after this forum?
thanks again.
 
yes, i would like to do that. i appreciate the resource
book. i need a good resource, as you know most books just
give a cursory to things, because they try to cover so
much. anyway, i have a test user in the the OU that i am
creating the Policy for, so as to have it minimize effect
on any users. i have tried a script file called test.bat,
then renamed it to test.cmd. i do have it in the NETLOGON
share, which is at C:/WINNT/SYSVOL/sysvol/server/SCRIPTS.
The path for the logon script under the profile tab of the
user is C:/WINNT/SYSVOL/sysvol/server/SCRIPTS/test.cmd

also, side note... since posting in this forum, i have
started getting a lot of mail from microsoft, or
undeliverable mail to people i dont know. i ran a virus
scan and nothing shows, is this normal after this forum?
thanks again.
 
Back
Top