Page 1 of 1 1
Topic Options
#112643 - 2004-01-27 10:42 PM RedirectOutput to \\server\NETLOGON?
cwhitmore Offline
Starting to like KiXtart

Registered: 2001-05-23
Posts: 102
Loc: Austin, Texas, USA
I'm able to write this file to the local PC, but I can't get it to work on the server. Everyone has read+write permissions to the file.(I created an empty file)
Any ideas?

$RC=RedirectOutput("\\server\NETLOGON\cputest.txt")
"Username: "+@WKSTA + " CPU Type: " + @CPU ?
$RC=RedirectOutput("")

Top
#112644 - 2004-01-27 11:11 PM Re: RedirectOutput to \\server\NETLOGON?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
If you have replication enabled on NETLOGON then the file will be removed by the replication service as it is non-existant in the export directory. NETLOGON should be read-only for regular users, otherwise they might be able to manipulate the login script.
_________________________
There are two types of vessels, submarines and targets.

Top
#112645 - 2004-01-27 11:19 PM Re: RedirectOutput to \\server\NETLOGON?
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
I dont think it matters what the security on the file you created is...

As when you point to the netlogon share the share rights override the rights on the file. Someone correct me if Im wrong.

Top
#112646 - 2004-01-27 11:39 PM Re: RedirectOutput to \\server\NETLOGON?
cwhitmore Offline
Starting to like KiXtart

Registered: 2001-05-23
Posts: 102
Loc: Austin, Texas, USA
Good point. I moved the location to a share on that same server and it works fine now.
Thanks.

Top
#112647 - 2004-01-27 11:45 PM Re: RedirectOutput to \\server\NETLOGON?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Not necessarily. However, the more restrictive ACL combination of sharre and file will be used.

Edited by sealeopard (2004-01-28 03:46 PM)
_________________________
There are two types of vessels, submarines and targets.

Top
#112648 - 2004-01-28 04:34 AM Re: RedirectOutput to \\server\NETLOGON?
Skatterbrainz Offline
Starting to like KiXtart

Registered: 2002-10-17
Posts: 172
Loc: Virginia, USA
Windows Server 2003 AD domains configure the NETLOGON share to allow Domain Admins to have rights to change things, whereas 2000 and before did not distinguish at the share level (everyone had read-only). This is very nice and makes it easier to get in and make a script change without digging down into verbose directories on hidden shares. Small but nice change (for me anyway).
_________________________
silence is golden, but duct tape is silver

Top
#112649 - 2004-01-28 03:29 PM Re: RedirectOutput to \\server\NETLOGON?
cwhitmore Offline
Starting to like KiXtart

Registered: 2001-05-23
Posts: 102
Loc: Austin, Texas, USA
That brings up another point. Has anyone had alot of problems moving to Win2003 with Win2000 scripts?
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 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.057 seconds in which 0.026 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