PC Review


Reply
Thread Tools Rate Thread

can't get user to excute on a logon script, administrator is o.k.

 
 
Thomas
Guest
Posts: n/a
 
      19th Nov 2005
I am trying to run a script in grouppolicy from a local Xp professional
machine and send a log to the windows 2000 server.If I redirect the log to
the server as administrator all is o.k. the path: It's a one liner entry
%logonPC%...%date%...%time%...%username%
>\\computername\admin$\system32\shhs\logs\%rm-pc%%use-r%\5rm-pc%5fn-04%" The

username records as (administrator %username%) The administrator logon
executes and writes to the log file o.k. but the user logon will not
execute. I am not sure how to setup the path for a user and give the proper
permission I read "Domain User" group with write permission on the log file.
Try that and does not help. Event Id:1054 and Netdiag won't run wants
"dnsapI.dll, which I unsuccessfully tried to refresh from the i386 folder in
safemode. Any help would be appreciated. Thank you Jerry


 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      19th Nov 2005
On Sat, 19 Nov 2005 03:33:15 -0800, "Thomas" <(E-Mail Removed)> wrote:

>I am trying to run a script in grouppolicy from a local Xp professional
>machine and send a log to the windows 2000 server.If I redirect the log to
>the server as administrator all is o.k. the path: It's a one liner entry
>%logonPC%...%date%...%time%...%username%
> >\\computername\admin$\system32\shhs\logs\%rm-pc%%use-r%\5rm-pc%5fn-04%" The

>username records as (administrator %username%) The administrator logon
>executes and writes to the log file o.k. but the user logon will not
>execute. I am not sure how to setup the path for a user and give the proper
>permission I read "Domain User" group with write permission on the log file.
>Try that and does not help. Event Id:1054 and Netdiag won't run wants
>"dnsapI.dll, which I unsuccessfully tried to refresh from the i386 folder in
>safemode. Any help would be appreciated. Thank you Jerry
>


A user cannot write to an Administrative share (Admin$).
Why not create a share and grant users read and write on the file system and atleast Read and Write
on the share.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
 
Thomas
Guest
Posts: n/a
 
      20th Nov 2005
Reply to:
> Jerold Schulman
> Windows Server MVP
> JSI, Inc.
> http://www.jsiinc.com
> http://www.jsifaq.com


I am not educated with the likes and dislikes of Group Policy running
scripts. The goal is to capture all logon.etc. "Everyone" who logs on
registers to <somewhere.txt>; via GroupPolicy
(logon),(logoff),(startup),(shutdown).[echo
%computername%...%date%...%time%...%shutdown%...%username% >>
<somewhere.txt>] Everyone includes local and domain logon.etc. I was under
the impression that Group Policy was and administrators tool and would write
to an Administrator file, It does, but when a %username% is not a
Administrator it [echo %username%]does an: "Access Deny" message in the dos
window during testing, and when logging on with Group Policy enabled for the
script refuses to write.



If it has to be a share then the batch will either copy it to the
Administrator only folder and delete the user file synchronously. Optionally
the <somewhere.txt> can reside locally (preferred) and copy to the server
administrator only folder on the server. The purpose is to take advantage of
Group Policy log/start/shut features. Offline files works with any user
just great; logging on and off, expected the same concept using Group
Policy.............Thank you for you help. Jerry


 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      20th Nov 2005
On Sat, 19 Nov 2005 23:39:21 -0800, "Thomas" <(E-Mail Removed)> wrote:

>Reply to:
>> Jerold Schulman
>> Windows Server MVP
>> JSI, Inc.
>> http://www.jsiinc.com
>> http://www.jsifaq.com

>
>I am not educated with the likes and dislikes of Group Policy running
>scripts. The goal is to capture all logon.etc. "Everyone" who logs on
>registers to <somewhere.txt>; via GroupPolicy
>(logon),(logoff),(startup),(shutdown).[echo
>%computername%...%date%...%time%...%shutdown%...%username% >>
><somewhere.txt>] Everyone includes local and domain logon.etc. I was under
>the impression that Group Policy was and administrators tool and would write
>to an Administrator file, It does, but when a %username% is not a
>Administrator it [echo %username%]does an: "Access Deny" message in the dos
>window during testing, and when logging on with Group Policy enabled for the
>script refuses to write.
>
>
>
>If it has to be a share then the batch will either copy it to the
>Administrator only folder and delete the user file synchronously. Optionally
>the <somewhere.txt> can reside locally (preferred) and copy to the server
>administrator only folder on the server. The purpose is to take advantage of
>Group Policy log/start/shut features. Offline files works with any user
>just great; logging on and off, expected the same concept using Group
>Policy.............Thank you for you help. Jerry
>


Your previous <someplace.txt> was "\\computername\admin$\system32\shhs\logs\%rm-pc%%use-r%\5rm-pc%5fn-04%"
and I simply stated that you can't use admin$ for a normal user.

Create a share on \\ComputerName, like Info and use
"\\ComputerName\Info\%rm-pc%%use-r%\5rm-pc%5fn-04%"
Makining sure that everyone had read and write to the share and folder on \\Computername.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Setup Auto-Logon as User Logon Script kdick@alliedtradegroup.com Windows XP Setup 0 2nd Jun 2006 11:26 PM
transferring files from administrator logon to user logon. paul m. Microsoft Windows 2000 File System 1 12th Jan 2004 10:21 PM
running logon script as administrator Vinoj Windows XP Security 1 31st Dec 2003 10:21 PM
Logon script with Administrator rights? Brian Nielsen Microsoft Windows 2000 Group Policy 3 18th Dec 2003 12:38 PM
Domain GPO Logon script only executes for Administrator Jack T. Microsoft Windows 2000 Setup 3 2nd Jul 2003 06:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:16 PM.