Page 1 of 1 1
Topic Options
#140954 - 2005-06-03 12:06 PM running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
Hello to everyone,

i've got a problem with running (accessing) a program via the SHELL-command on a network share. The kix-script is running at startup, before logonscreen appears, configed via GPO. The GPO is also configured to wait for the network before startup scripts are running and scripts should run visible (for testing). This is all OK...the script is running and all seems to be OK.

The XPSP2 Client belongs to a W2K3 AD Domain

Now the problem:
the kix script schould run a program via SHELL command e.g.

SHELL \\Servername\Share\file.exe

The share is located on a fileserver belonging to a NT4 Domain with complete trusts to the AD Domain.

This runs perfectly when i test the script while my windows session calling it manually from the logonserver, but if this script runs while booting the Client as startup script, the script is running, but the file is'nt executed.

My suggestion was, that the permissions on the networkshare were wrong, so i've added the Domain Computers Group to the sharefolder with read permissions, but that also did'nt work.
Then i've enabled the security logging on the networkshare to see with which account the client tries to access the share, but the log stays empty! and yes, the logging is ok, cause it logs attempts accessing the share manually via a windwos session.

So it seems the script did not at all access that share. But why ???

Thanks for any answers to my Problem!

LittleNick

Top
#140955 - 2005-06-03 01:30 PM Re: running a program via kix before logon screen on XP client?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Are you checking the value of @ERROR after the SHELL?

If there is a problem this might point you in the right direction.

Top
#140956 - 2005-06-03 02:21 PM Re: running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
Thanks for this tip, now things will become clearer! error code 5 (access denied).Shares on servers in the AD domain could be accessed via the script. So, must i permit more than the AD Domain Computers Group on that NT4 Domain Share?

LittleNick

Top
#140957 - 2005-06-03 02:43 PM Re: running a program via kix before logon screen on XP client?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In my testing, only the Netlogon share was available to the Startup script. This has been discussed on this board before.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#140958 - 2005-06-03 02:56 PM Re: running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
Les,
the fileserver belongs to a NT4 Domain, but OS on the fileserver is W2K and yes...with NT you are only able to map drives to a Share, not to subfolders. But thats not the thing, as i've written the script runs perfectly when i'am logged on and start it manually.
It must be a permission problem between the AD Domain and my NT4 Domain or the share on the fileserver. Strange.

LittleNick

Top
#140959 - 2005-06-03 02:58 PM Re: running a program via kix before logon screen on XP client?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You misconstrue... has nothing to do with mapping to subfolders.
Move file.exe to netlogon and change SHELL \\Servername\Share\file.exe to:
SHELL \\Servername\netlogon\file.exe
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#140960 - 2005-06-03 03:09 PM Re: running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
Les,
if i could do that, all will be ok...but i can't put about 1,5 Gigs into the netlogon of the DC because of a worldwide net. these files have to reside on one of our location fileservers which are all on old NT4 domains. Migrating these to the AD Domain is'nt a solution for now. And for the near future there is no chance to get a location fileserver into the AD Domain.

There must be a solution to access the Fileservers in the legacy Domain with the startup script. But How?

LittleNick

Top
#140961 - 2005-06-03 03:22 PM Re: running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
Les,

i forgot...i have shared a folder on a XP AD Domain Client, and tried to access this share via the startup script and that works! So the startup script is able to access other folders than the netlogon.

Top
#140962 - 2005-06-04 02:54 PM Re: running a program via kix before logon screen on XP client?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
But what are the permissions on that folder? The issue comes down to a permissions problem and the account under which the startup script runs must be able to access that particular share.
_________________________
There are two types of vessels, submarines and targets.

Top
#140963 - 2005-06-07 10:05 AM Re: running a program via kix before logon screen on XP client?
LittleNick Offline
Fresh Scripter

Registered: 2005-06-03
Posts: 6
sealeopard,
you're right, it must be a permissions problem, because the script accesses shares on a Server in the AD Domain. The NTFS permissons on the W2K Fileserver in the old NT4 Domain are set to full access to NT4 domain\Domain Admins, read to everyone and read to AD Domain\Domain Computers. Share permissions are set to everyone full control. The NT4 Domain is fully trusted to the AD Domain.
Are there any other permissions i have to set to that share, so that the machine logon script could access the share?
I thought its enough to permit the AD Domain\Domain Cumputers, but this is not working.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 293 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org