Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Group policy logon script doesn't run

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-04-2008
CryptiniteDemon
 
Posts: n/a
Group policy logon script doesn't run

Okay, I made a simple .bat file to map a network drive on logon and put it
under the group policy in an OU I made.

The script is simply

net use z: \\THETEST\FXI


When I run the bat file manually from any of the computers it maps the drive
just fine. However, when I login the script never maps the drive.

Reply With Quote
  #2  
Old 26-04-2008
Pegasus \(MVP\)
 
Posts: n/a
Perhaps the batch file never runs when you log in . . .?
Modify it like so to make sure:

@echo off
echo The logon script %0 ran on %date% at %time% >> c:\logon.log
net use z: \\THETEST\FXI
net use
pause

I may be wrong but don't scripts in group polciy have to be VB script files?
Reply With Quote
  #3  
Old 26-04-2008
stufeatherston@gmail.com
 
Posts: n/a
Did you place the login script in the startup folder of the
corresponding policy? For example, browse to \\DomainController
\SYSVOL\domain\Policies\GUIDofyourPolicy\Machine\Scripts\Startup ?

Also did you link the GPO to the OU that contains the computers that
you are trying to run this startup script on?

Actually, I think you might be right. Can you try wrapping that
script in a vbscript and seeing if that works?
Reply With Quote
  #4  
Old 26-04-2008
Paul Mckenna
 
Posts: n/a
I'm getting all emotional

Maybe try creating a login.vbs file with the following

Set WshNetwork = WScript.CreateObject("WScript.Network")
on error resume next
wshnetwork.mapnetworkdrive "Z:"," \\THETEST\FXI"

Hope this helps or at the very least gives you an idea on how to make it
work.

I only use .cmd scripts, and they run for both logoff and logon.
Reply With Quote
  #5  
Old 19-07-2009
Member
 
Join Date: Jul 2009
Posts: 1
Re: Group policy logon script doesn't run

Paul, you are ABSOLUTELY correct so do not listen to these other knuckleheads about you being wrong. I spent an entire DAY trying to debug a working BATCH, but as soon as I added it to the GPO under STARTUP SCRIPTS it did not work. I kept banging my head thinking it was permissions and all the other nonsense people are spouting on these boards but it was the VBS solution...

Once again, this is for STARTUP scripts and NOT logon but I am not going to bother testing that one since I am "tired"... :P So everyone else having problems getting their BAT files to run properly as a STARTUP SCRIPT in the GPO? Just change it to a VBS startup file... Good luck...

If you are NOT a VB Script guru?

P.S.
TimeTraveller - You are WRONG. I could NOT get BAT files to work as STARTUP scripts on a Windows 2003 R2 server

Last edited by DonChino : 19-07-2009 at 11:38 PM.
Reply With Quote
  #6  
Old 21-07-2009
Lanwench [MVP - Exchange]
 
Posts: n/a
Re: Group policy logon script doesn't run

I have no idea what you're on about, but I can see that you're using
the horrible techarena interface to access these groups. Don't. It doesn't
quote replies, and nearly all the posts we see in here from techarena are
replies to threads that have long since been retired from the news servers.

Try using a news client, such as Forte Agent, Thunderbird, or even Outlook
Express instead. It's a lot easier to do nearly everything that way. You can
mark messages to be watched, filter the views so you can see replies to your
posts easily, and search.

The Microsoft public news server is msnews.microsoft.com and you can
subscribe to as many groups as you like; no authentication is required.

The following is from a post by MVP Malke ...

-------------------------------------------------------
Here's information on Usenet and using a newsreader:
http://support.microsoft.com/defaul...wto/default.asp

Some newsreaders for Windows
http://www.mozilla.org
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Group policy logon script doesn't run"
Thread Thread Starter Forum Replies Last Post
Group Policy Startup Script Issue (Trend OfficeScan) - Autopcc Flaco Small Business Server 3 23-09-2010 10:17 PM
Dumping logon name and logon script values to a text file - blank logon script field Phil McNeill Windows Server Help 3 17-08-2010 09:06 PM
Group Policy logon script not applied if connected by WiFi Alister Active Directory 8 09-01-2010 12:10 AM
Logon Script to Map Network Drive based on the primary group name Jyran Active Directory 3 23-10-2008 06:58 AM
The group policy client failed the logon. Access is denied? Jyran Vista Help 1 13-07-2008 12:43 AM


All times are GMT +5.5. The time now is 04:26 PM.