Networking Forums

Networking Forums > Computer Networking > Windows Networking > Cannot get logon scripts to work

Reply
Thread Tools Display Modes

Cannot get logon scripts to work

 
 
mstainbrook
Guest
Posts: n/a

 
      07-09-2004, 01:19 PM
I have read through dozens of prevous posts here and in other
areas/forums.

Task: I need to used logon scripts to a) map networks drives (they don't
always remap during next logon or users disconnect them) b) sync time to
keep all workstations on the same server clock. c) (future script)
configure specific mapped network drives based on groups they belong to.

Server (only 1): Win 2003, AD DC, Exchange 2003, DNS, DHCP, Static IP
Server was: Win NT
Workstations: Win98SE, WinXP Pro Dynamic/Staic IPs

Problem: Cannot get map.bat script to run on logon.

Script contents:
@ECHO ON
@ECHO Connecting PECO network drives...
NET USE F: /d
NET USE F: \\DC1\COMPANY
NET USE K: /d
NET USE K: \\DC1\ACT
@ECHO OFF
REM Poor man's sleep on nect line, allows user to see what is going on
ping -n 3 127.0.0.1>nul
@ECHO ON

As you can see fairly basic old school. This script works fine running
manually.

I will be adding "net time \\dc1 /set /Y" later.

1st Tried this:
Since I only have a dozen users I added \\dc1\company\map.bat in the logon
script under a user account domain user manager. Didn't work.


2nd Tried this:
Looked at using group policy for the domain.
in an MMC added the group policy for domains, added under
users/windows/logon added map.bat, clicked on show files and copied the
script there. Didn't work. Also tried copying it into other logon script
folders under the sysvol directory.

To check this out I opened MMC and used the resolve group policy snap in.
I selected a computer and user that is currently logged in and the
user/windows/logon showed the map.bat script. What is not working?

 
Reply With Quote
 
 
 
 
Steven Cooke
Guest
Posts: n/a

 
      07-09-2004, 02:51 PM
just put map.bat into the netlogon share and point all the user account
logon script to map.bat.
should work.

--
Steven Cooke


"mstainbrook" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) lkaboutsoftware.com...
> I have read through dozens of prevous posts here and in other
> areas/forums.
>
> Task: I need to used logon scripts to a) map networks drives (they don't
> always remap during next logon or users disconnect them) b) sync time to
> keep all workstations on the same server clock. c) (future script)
> configure specific mapped network drives based on groups they belong to.
>
> Server (only 1): Win 2003, AD DC, Exchange 2003, DNS, DHCP, Static IP
> Server was: Win NT
> Workstations: Win98SE, WinXP Pro Dynamic/Staic IPs
>
> Problem: Cannot get map.bat script to run on logon.
>
> Script contents:
> @ECHO ON
> @ECHO Connecting PECO network drives...
> NET USE F: /d
> NET USE F: \\DC1\COMPANY
> NET USE K: /d
> NET USE K: \\DC1\ACT
> @ECHO OFF
> REM Poor man's sleep on nect line, allows user to see what is going on
> ping -n 3 127.0.0.1>nul
> @ECHO ON
>
> As you can see fairly basic old school. This script works fine running
> manually.
>
> I will be adding "net time \\dc1 /set /Y" later.
>
> 1st Tried this:
> Since I only have a dozen users I added \\dc1\company\map.bat in the logon
> script under a user account domain user manager. Didn't work.
>
>
> 2nd Tried this:
> Looked at using group policy for the domain.
> in an MMC added the group policy for domains, added under
> users/windows/logon added map.bat, clicked on show files and copied the
> script there. Didn't work. Also tried copying it into other logon script
> folders under the sysvol directory.
>
> To check this out I opened MMC and used the resolve group policy snap in.
> I selected a computer and user that is currently logged in and the
> user/windows/logon showed the map.bat script. What is not working?
>



 
Reply With Quote
 
mstainbrook
Guest
Posts: n/a

 
      07-09-2004, 05:39 PM
I tried that. Nothing happens. No Error. No Nothing. I would imagine
that a window would open and I would see the script run.

Any other suggestions?

 
Reply With Quote
 
Olaf Engelke [MVP]
Guest
Posts: n/a

 
      07-09-2004, 08:14 PM
mstainbrook wrote:
> I have read through dozens of prevous posts here and in other
> areas/forums.
>
> Task: I need to used logon scripts to a) map networks drives (they
> don't always remap during next logon or users disconnect them) b)
> sync time to keep all workstations on the same server clock. c)
> (future script) configure specific mapped network drives based on
> groups they belong to.
>
> Server (only 1): Win 2003, AD DC, Exchange 2003, DNS, DHCP, Static IP
> Server was: Win NT
> Workstations: Win98SE, WinXP Pro Dynamic/Staic IPs
>
> Problem: Cannot get map.bat script to run on logon.
> I will be adding "net time \\dc1 /set /Y" later.


don't do that for XP Clients. They have their own time sync mechanics.

> 1st Tried this:
> Since I only have a dozen users I added \\dc1\company\map.bat in the
> logon script under a user account domain user manager. Didn't work.
>


Leave the path away. Simply write map.bat

> 2nd Tried this:
> Looked at using group policy for the domain.
> in an MMC added the group policy for domains, added under
> users/windows/logon added map.bat, clicked on show files and copied
> the script there. Didn't work. Also tried copying it into other
> logon script folders under the sysvol directory.


Windows 98 Clients will ignore GPO based scripts.

And btw: I have seen various situations (in an NT Domain), that the Login
script wasn't executed, if the user was member of the Administrators group.
Best greetings from Germany
Olaf.

 
Reply With Quote
 
mstainbrook
Guest
Posts: n/a

 
      07-14-2004, 08:06 PM
Ok, map.bat works fine now in the logon script in the user properties in
thge user manager. but...

XP workstations are still not working. I have had to add each of the
users assigned to each workstation to the local compueter administrator's
group for that workstation to allow them to install some programs and run
some other programs such as ACT.

You think this may be preventing them from using tyhe Group policies? I
just think I'm missing something to get the policies working.

Also, only one of the multiple XP internal time sync is working right and
I that is why I needed to add net time in the script.


 
Reply With Quote
 
Olaf Engelke [MVP]
Guest
Posts: n/a

 
      07-15-2004, 06:45 PM
mstainbrook wrote:
> XP workstations are still not working. I have had to add each of the
> users assigned to each workstation to the local compueter
> administrator's group for that workstation to allow them to install
> some programs and run some other programs such as ACT.
>
> You think this may be preventing them from using tyhe Group policies?
> I just think I'm missing something to get the policies working.
>

.... at least this prevents _me_ from executing any login script in a NT
Domain.
So you should find also ways to let the programs to be installed without
needing Administrator account permissions - software deployment service or a
batch made with runas credits and a temporary admin account/password combo
may be a solution.
http://labmice.techtarget.com/active...ellimirror.htm lists a lot
of interesting articles about Intellimirror functionality.
For many tasks also local Power User permissions are enough.

For running a ancient application which is not aware about security you
should have a look, where exactly in file system and registry needs access
to and only free up the permissions here.
Admin permissions for everyone cause only headache for you on long term and
ignorance to even a minimum of IT guidelines by the users.
Best greetings from Germany
Olaf.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon Scripts TK Windows Networking 4 10-07-2005 02:27 PM
VBS instead of BAT Logon scripts? Jurgen Verhelst [MCP] Windows Networking 0 09-27-2005 08:41 PM
logon scripts? Linn Kubler Windows Networking 4 08-22-2005 09:19 PM
Logon Scripts over VPN Charlie Saliba Windows Networking 5 07-25-2005 09:28 PM
Logon scripts Dale Windows Networking 1 12-04-2003 09:41 PM



1 2 3 4 5 6 7 8 9 10 11