cwhitmore
(Starting to like KiXtart)
2004-01-27 10:42 PM
RedirectOutput to \\server\NETLOGON?

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("")


Sealeopard
(KiX Master)
2004-01-27 11:11 PM
Re: RedirectOutput to \\server\NETLOGON?

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.

ShaneEP
(MM club member)
2004-01-27 11:19 PM
Re: RedirectOutput to \\server\NETLOGON?

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.


cwhitmore
(Starting to like KiXtart)
2004-01-27 11:39 PM
Re: RedirectOutput to \\server\NETLOGON?

Good point. I moved the location to a share on that same server and it works fine now.
Thanks.


Sealeopard
(KiX Master)
2004-01-27 11:45 PM
Re: RedirectOutput to \\server\NETLOGON?

Not necessarily. However, the more restrictive ACL combination of sharre and file will be used.

Skatterbrainz
(Starting to like KiXtart)
2004-01-28 04:34 AM
Re: RedirectOutput to \\server\NETLOGON?

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).

cwhitmore
(Starting to like KiXtart)
2004-01-28 03:29 PM
Re: RedirectOutput to \\server\NETLOGON?

That brings up another point. Has anyone had alot of problems moving to Win2003 with Win2000 scripts?