Location: List Archives

Your Home Page ..

Site Articles:

Add to Google

Add to My Yahoo!

Mail List Posts:

Add to Google

Add to My Yahoo!

Friends

Friends

ScriptLogic

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

List Archives

Subject: [ActiveDir] userenv.log and scriptPath logon scripts?
Prev Next
You are not authorized to post a reply.

AuthorMessages
jw1User is Offline

Posts:42

05/08/2008 6:32 PM  
Does anyone know if there are supposed to be any entries in userenv.log (debug setting) for a logon script called via the scriptPath property on a user object? I'm not looking for anything too granular...just an indication of whether or not the script fires, and what domain controller is used for
that particular NETLOGON call, in case it's going to a far site...





Thanks!



--James


robertsingersUser is Offline

Posts:58

05/08/2008 7:08 PM  
Here's a bit of a tangential thing. You could use BGInfo and tattoo the
desktop with the Logon Server details. Or have the log on script set an
environment variable to %logonserver% as in
http://support.microsoft.com/kb/183495

________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James
Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?



Does anyone know if there are supposed to be any entries in userenv.log
(debug setting) for a logon script called via the scriptPath property on
a user object? I'm not looking for anything too granular...just an
indication of whether or not the script fires, and what domain
controller is used for that particular NETLOGON call, in case it's going
to a far site...





Thanks!



--James

________________________________

This e-mail message has been scanned for Viruses and cleared by NetIQ
MailMarshal
________________________________


############################################################
PLEASE NOTE:

The information contained in this email message and any
attached files may be confidential and subject to privilege.
Any opinions expressed in this message are not necessarily
those of the Department of Building and Housing. All technical
opinions are offered on a ?no-liability? basis. This message
and any files transmitted with it are confidential and solely
for the use of the intended recipient. If you are not the
intended recipient, you are notified that any use, disclosure
or copying of this email is unauthorised. If you have received
this email in error, please notify us immediately by reply email
and delete the original and any attachment(s). Thank you.
############################################################

darrenUser is Offline

Posts:64

05/08/2008 7:13 PM  
James-

I don't believe that type of logon script run gets logged in userenv but you
should see an event in the Application event log of source "Userinit" when
it runs.



Darren





****

Darren Mar-Elia

CTO & Founder

SDM Software, Inc.

www.sdmsoftware.com <http://www.sdmsoftware.com/>

Secure and configure your Windows desktops accurately every time without
having to learn or install new technology. Find out more about Desktop
Policy Manager at http://www.sdmsoftware.com/desktop_management









From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James Arthur
Sent: Thursday, May 08, 2008 3:32 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?



Does anyone know if there are supposed to be any entries in userenv.log
(debug setting) for a logon script called via the scriptPath property on a
user object? I'm not looking for anything too granular.just an indication
of whether or not the script fires, and what domain controller is used for
that particular NETLOGON call, in case it's going to a far site.





Thanks!



--James


jw1User is Offline

Posts:42

05/08/2008 7:18 PM  
Good idea.



We already have it log an event for some level of detail (just looking for something additional client-side, for times when it DOESN'T run correctly).



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Robert Singers
Sent: Thursday, May 08, 2008 6:03 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Here's a bit of a tangential thing. You could use BGInfo and tattoo the desktop with the Logon Server details. Or have the log on script set an environment variable to %logonserver% as in http://support.microsoft.com/kb/183495

________________________________

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?

Does anyone know if there are supposed to be any entries in userenv.log (debug setting) for a logon script called via the scriptPath property on a user object? I'm not looking for anything too granular...just an indication of whether or not the script fires, and what domain controller is used for
that particular NETLOGON call, in case it's going to a far site...





Thanks!



--James

________________________________

This e-mail message has been scanned for Viruses and cleared by NetIQ MailMarshal

________________________________

________________________________

Please Note:

The information contained in this email message and any attached files may be confidential and subject to privilege. Any opinions expressed in this message are not necessarily those of the Department of Building and Housing. All technical opinions are offered on a 'no-liability' basis. This message
and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient, you are notified that any use, disclosure or copying of this email is unauthorised. If you have received this email in error, please notify us immediately by
reply email and delete the original and any attachment(s). Thank you.

________________________________


robertsingersUser is Offline

Posts:58

05/08/2008 7:53 PM  
Just some more info. I've packaged up BGinfo as an MSI for distribution
by GPSI. The 'corporate' backgrounds are packaged and distributed
seperately (so I could rebrand the entire org on April Fools if I
wanted). A start up\logon script copies the right resolution file to
the right filename for BgInfo

The backgrounds get tattooed with the host name, logon server, user
name, and the IP address. The Help Desk uses the information for remote
support. It's been very useful for debugging various things from the
clients.

________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James
Arthur
Sent: Friday, 9 May 2008 11:13 a.m.
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Good idea.



We already have it log an event for some level of detail (just looking
for something additional client-side, for times when it DOESN'T run
correctly).



From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Robert Singers
Sent: Thursday, May 08, 2008 6:03 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Here's a bit of a tangential thing. You could use BGInfo and tattoo the
desktop with the Logon Server details. Or have the log on script set an
environment variable to %logonserver% as in
http://support.microsoft.com/kb/183495

________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James
Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?

Does anyone know if there are supposed to be any entries in userenv.log
(debug setting) for a logon script called via the scriptPath property on
a user object? I'm not looking for anything too granular...just an
indication of whether or not the script fires, and what domain
controller is used for that particular NETLOGON call, in case it's going
to a far site...





Thanks!



--James

________________________________

This e-mail message has been scanned for Viruses and cleared by NetIQ
MailMarshal

________________________________

________________________________

Please Note:

The information contained in this email message and any attached files
may be confidential and subject to privilege. Any opinions expressed in
this message are not necessarily those of the Department of Building and
Housing. All technical opinions are offered on a 'no-liability' basis.
This message and any files transmitted with it are confidential and
solely for the use of the intended recipient. If you are not the
intended recipient, you are notified that any use, disclosure or copying
of this email is unauthorised. If you have received this email in
error, please notify us immediately by reply email and delete the
original and any attachment(s). Thank you.

________________________________


############################################################
PLEASE NOTE:

The information contained in this email message and any
attached files may be confidential and subject to privilege.
Any opinions expressed in this message are not necessarily
those of the Department of Building and Housing. All technical
opinions are offered on a ?no-liability? basis. This message
and any files transmitted with it are confidential and solely
for the use of the intended recipient. If you are not the
intended recipient, you are notified that any use, disclosure
or copying of this email is unauthorised. If you have received
this email in error, please notify us immediately by reply email
and delete the original and any attachment(s). Thank you.
############################################################

jfigueroaUser is Offline

Posts:7

05/18/2008 1:38 PM  
Looks like the KB is about 2000 and below. "SET L" from the command line
of the client should tell you the DC.



From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Robert Singers
Sent: Thursday, May 08, 2008 4:03 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Here's a bit of a tangential thing. You could use BGInfo and tattoo the
desktop with the Logon Server details. Or have the log on script set an
environment variable to %logonserver% as in
http://support.microsoft.com/kb/183495

________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James
Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?

Does anyone know if there are supposed to be any entries in userenv.log
(debug setting) for a logon script called via the scriptPath property on
a user object? I'm not looking for anything too granular...just an
indication of whether or not the script fires, and what domain
controller is used for that particular NETLOGON call, in case it's going
to a far site...





Thanks!



--James

________________________________

This e-mail message has been scanned for Viruses and cleared by NetIQ
MailMarshal

________________________________

________________________________

Please Note:

The information contained in this email message and any attached files
may be confidential and subject to privilege. Any opinions expressed in
this message are not necessarily those of the Department of Building and
Housing. All technical opinions are offered on a 'no-liability' basis.
This message and any files transmitted with it are confidential and
solely for the use of the intended recipient. If you are not the
intended recipient, you are notified that any use, disclosure or copying
of this email is unauthorised. If you have received this email in
error, please notify us immediately by reply email and delete the
original and any attachment(s). Thank you.

________________________________


jcloskyUser is Offline

Posts:2

05/18/2008 1:40 PM  
"SET L" will tell you the DC it has a secure channel established with, but this would only be used to authenticate NTLM. It may, or may not, be he same server that AD (via DNS) has chosen as it's KDC & LDAP (AD)?


-----Original Message-----
From: Figueroa, Johnny <Johnny.Figueroa@bannerhealth.com>
To: ActiveDir@mail.activedir.org
Sent: Thu, 8 May 2008 11:02 pm
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?




Looks like the KB is about 2000 and below. “SET L” from the command line of the client should tell you the DC.





From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Robert Singers
Sent: Thursday, May 08, 2008 4:03 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?





Here's a bit of a tangential thing.  You could use BGInfo and tattoo the desktop with the Logon Server details.  Or have the log on script set an environment variable to %logonserver% as in http://support.microsoft.com/kb/183495



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?

Does anyone know if there are supposed to be any entries in userenv.log (debug setting) for a logon script called via the scriptPath property on a user object?  I’m not looking for anything too granular…just an indication of whether or not the script fires, and what domain controller is used for that particular NETLOGON call, in case it’s going to a far site…





Thanks!



--James



This e-mail message has been scanned for Viruses and cleared by NetIQ MailMarshal





Please Note:

The information contained in this email message and any attached files may be confidential and subject to privilege. Any opinions expressed in this message are not necessarily those of the Department of Building and Housing. All technical opinions are offered on a ‘no-liability’ basis. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient, you are notified that any use, disclosure or copying of this email is unauthorised.  If you have received this email in error, please notify us immediately by reply email and delete the original and any attachment(s). Thank you.





jw1User is Offline

Posts:42

05/18/2008 1:40 PM  
More than that – DNS isn’t going to determine the DC used for NETLOGON/SYSVOL stuff. That’s what’s useful about userenv.log (for GPOs).



I need to deploy the hotfix that changes the referral list for NETLOGON, by putting the logon DC at the top of that list…without that, things get kind of random….





--James



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of jclosky@aol.com
Sent: Friday, May 09, 2008 8:45 AM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] userenv.log and scriptPath logon scripts?



"SET L" will tell you the DC it has a secure channel established with, but this would only be used to authenticate NTLM. It may, or may not, be he same server that AD (via DNS) has chosen as it's KDC & LDAP (AD)?


-----Original Message-----
From: Figueroa, Johnny <Johnny.Figueroa@bannerhealth.com>
To: ActiveDir@mail.activedir.org
Sent: Thu, 8 May 2008 11:02 pm
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?

Looks like the KB is about 2000 and below. “SET L” from the command line of the client should tell you the DC.



From: ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org> [mailto:ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org?> ] On Behalf Of Robert Singers
Sent: Thursday, May 08, 2008 4:03 PM
To: ActiveDir@mail.activedir.org <mailto:ActiveDir@mail.activedir.org>
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Here's a bit of a tangential thing. You could use BGInfo and tattoo the desktop with the Logon Server details. Or have the log on script set an environment variable to %logonserver% as in http://support.microsoft.com/kb/183495 <http://support.microsoft.com/kb/183495>

________________________________

From: ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org> [mailto:ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org?> ] On Behalf Of Wells, James Arthur
Sent: Friday, 9 May 2008 10:32 a.m.
To: ActiveDir@mail.activedir.org <mailto:ActiveDir@mail.activedir.org>
Subject: [ActiveDir] userenv.log and scriptPath logon scripts?

Does anyone know if there are supposed to be any entries in userenv.log (debug setting) for a logon script called via the scriptPath property on a user object? I’m not looking for anything too granular…just an indication of whether or not the script fires, and what domain controller is used for
that particular NETLOGON call, in case it’s going to a far site…





Thanks!



--James

________________________________

This e-mail message has been scanned for Viruses and cleared by NetIQ MailMarshal

________________________________

________________________________

Please Note:

The information contained in this email message and any attached files may be confidential and subject to privilege. Any opinions expressed in this message are not necessarily those of the Department of Building and Housing. All technical opinions are offered on a ‘no-liability’ basis. This message
and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient, you are notified that any use, disclosure or copying of this email is unauthorised. If you have received this email in error, please notify us immediately by
reply email and delete the original and any attachment(s). Thank you.

________________________________

________________________________

Plan your next roadtrip with MapQuest.com <http://www.mapquest.com/?ncid=mpqmap00030000000004> : America's #1 Mapping Site.

danholmeUser is Offline

Posts:70

05/18/2008 1:55 PM  
<waking up from the 1990s>

Batch files rock!

</1990s>



LOL… VBScript über alles, but only after making sure that a GP policy setting or preferences setting doesn’t already do what I need done…



Has anyone on this list done a “sanity check” on logon scripts post Desktop Standard or Group Policy Preferences? I’d actually be interested to know what really needs to be done in a logon script at all once the DTS or GPP extensions are in place. Haven’t had a client pay me for that logon script cleanup POST DTS/GPP, but in the projects we did PRE extensions, we were pretty much down to printer mapping (bye bye in R2), mapped drives, and a few very random things.



I’d be curious from a “real world” perspective what tasks people are finding that can’t be done with GPPrefs, now? None come to my mind, certainly none in the 20% side of the 80/20 rule, suggesting that the vast majority of “my” enterprise might not need scripts at all any more…???



Dan



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of joe
Sent: Friday, May 09, 2008 8:22 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Heh, I have knowledge limits, hit the darn things every single day. Luckily the edges are sort of soft and spongey so they can be stretched out as needed and as I have time. :)



As an aside... how many people would find it helpful to have this kind of info in an env var during logon script processing? What other kind of info would be useful that you can't normally get through batch/cmd scripts?



How many people have said ah screw it, we don't use batch/cmd for logon scripts anymore and have already jumped to some scripting language...



--

O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm







________________________________

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James Arthur
Sent: Friday, May 09, 2008 11:46 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?

Outstanding!



I didn’t see that you hit your ego cap for the week – so…NICE job, joe – your limitless knowledge never ceases to amaze ;)





--James



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of joe
Sent: Friday, May 09, 2008 10:31 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?



Thanks, very occasionally I come up with one... :)



Anyway, I just tested it really quick to make sure and it came back with a DC name during my logon on a domain with two DCs (which should scale to (n)).





--

O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm







________________________________

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Wells, James Arthur
Sent: Friday, May 09, 2008 11:22 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?

Now THAT is a creative idea….hopefully it won’t say \\DOMAIN\NETLOGON instead of \\DC01\NETLOGON ☺


--James





From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of joe
Sent: Friday, May 09, 2008 9:49 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?

Oh...

Just use some script language that knows its own path of execution...

Like in vbscript you would use wscript.scriptfullname

That will give you a string like \\domaincontroller\netlogon\scriptname.vbs

Then just chop it down to a DC with your instr type functions available in the language.

Not sure if batch files can do that natively.

joe

--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm <http://mbx01/exchweb/bin/redir.asp?URL=http://www.joeware.net/win/ad3e.htm>


kamleshapUser is Offline

Posts:13

05/18/2008 1:55 PM  
well in batch file it is certainly possible with just one word :-)
Following line should give you full path of the script except script name.

*Echo %~dp0*

Some other examples

%~I - expands %I removing any surrounding quotes (")
%~fI - expands %I to a fully qualified path name
%~dI - expands %I to a drive letter only
%~pI - expands %I to a path only
%~nI - expands %I to a file name only
%~xI - expands %I to a file extension only
%~sI - expanded path contains short names only
%~aI - expands %I to file attributes of file
%~tI - expands %I to date/time of file
%~zI - expands %I to size of file
%~$PATH:I - searches the directories listed in the PATH
environment variable and expands %I to the
fully qualified name of the first one found.
If the environment variable name is not
defined or the file is not found by the
search, then this modifier expands to the
empty string

--
Kamlesh

On Fri, May 9, 2008 at 8:19 PM, joe <listmail@joeware.net> wrote:

> Oh...
>
> Just use some script language that knows its own path of execution...
>
> Like in vbscript you would use *wscript.scriptfullname*
>
> That will give you a string like *
> \\domaincontroller\netlogon\scriptname.vbs*
>
> Then just chop it down to a DC with your instr type functions available in
> the language.
>
> Not sure if batch files can do that natively.
>
> joe
>
> --
> O'Reilly Active Directory Third Edition -
> http://www.joeware.net/win/ad3e.htm
>
>
>
> ------------------------------
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *Wells, James Arthur
> *Sent:* Friday, May 09, 2008 10:00 AM
>
> *To:* ActiveDir@mail.activedir.org
> *Subject:* RE: [ActiveDir] userenv.log and scriptPath logon scripts?
>
> OK – but what can I write to a log (or event, in my case – logic is
> already there) – to indicate what DC the NETLOGON share came from? Since
> %LOGONSERVER% seems legacy to me, I never want to trust it… J
>
>
>
> --James
>
>
>
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *joe
> *Sent:* Friday, May 09, 2008 8:57 AM
> *To:* ActiveDir@mail.activedir.org
> *Subject:* RE: [ActiveDir] userenv.log and scriptPath logon scripts?
>
>
>
> The LogonServer env var should tell you what DC authenticated your
> interactive logon which will be kerb (or should be). It will not necessarily
> tell you your secure channel DC at any point as that can and does change
> (just do a nltest /sc_reset:domain /force to see that the var doesn't get
> updated) in a transient manner. Here is an example and I didn't force
> anything
>
>
>
> [Fri 05/09/2008 1:38:02.32] +
> G:\new1\Dev\CPP\ADQueueLoop>set l
> *LOGONSERVER=\\TEST-DC1*
>
>
>
> [Fri 05/09/2008 9:47:56.27] +
> G:\new1\Dev\CPP\ADQueueLoop>nltest /sc_query:test
> Flags: 30 HAS_IP HAS_TIMESERV
> *Trusted DC Name **\\r2dc1.test.loc*
> Trusted DC Connection Status Status = 0 0x0 NERR_Success
> The command completed successfully
>
>
>
> [Fri 05/09/2008 9:48:04.60] +
> G:\new1\Dev\CPP\ADQueueLoop>nltest /dsgetdc:test
> * DC: **\\R2DC1*
> Address: \\192.168.0.10
> Dom Guid: 85125e03-7747-4594-a7d4-564d1eedbd65
> Dom Name: TEST
> Forest Name: test.loc
> Dc Site Name: Default-First-Site-Name
> Our Site Name: Default-First-Site-Name
> Flags: PDC GC DS LDAP KDC TIMESERV WRITABLE DNS_FOREST CLOSE_SITE
> The command completed successfully
>
>
>
>
>
> My logon server was TEST-DC1, but my secure channel and LDAP are using
> R2DC1.
>
>
>
> (Yeah I am in the middle of a machine naming standard change...)
>
>
>
>
>
>
>
> For the original question... Have the script write a log entry on the
> machine. You could have it tell you what DC and the last time it ran...
> Something as simple as
>
>
>
> echo ------------------------- >> logfile.txt
>
> date /t >> logfile.txt
>
> time /t >> logfile.txt
>
> echo %logonserver% >> logfile.txt
>
> echo %userdomain%\%username% >> logfile.txt
>
> echo ------------------------- >> logfile.txt
>
>
>
> If you don't see a log entry, good chance it didn't fire the script. Of
> course it won't tell you anything else but that. :)
>
>
>
>
>
> --
>
> O'Reilly Active Directory Third Edition -
> http://www.joeware.net/win/ad3e.htm
>
>
>
>
>
>
> ------------------------------
>
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *jclosky@aol.com
> *Sent:* Friday, May 09, 2008 9:45 AM
> *To:* ActiveDir@mail.activedir.org
> *Subject:* Re: [ActiveDir] userenv.log and scriptPath logon scripts?
>
> "SET L" will tell you the DC it has a secure channel established with, but
> this would only be used to authenticate NTLM. It may, or may not, be he same
> server that AD (via DNS) has chosen as it's KDC & LDAP (AD)?
>
>
> -----Original Message-----
> From: Figueroa, Johnny <Johnny.Figueroa@bannerhealth.com>
> To: ActiveDir@mail.activedir.org
> Sent: Thu, 8 May 2008 11:02 pm
> Subject: RE: [ActiveDir] userenv.log and scriptPath logon scripts?
>
> Looks like the KB is about 2000 and below. "SET L" from the command line of
> the client should tell you the DC.
>
>
>
> *From:* *ActiveDir-owner@mail.activedir.org*<ActiveDir-owner@mail.activedir.org>[
> *mailto:ActiveDir-owner@mail.activedir.org*<ActiveDir-owner@mail.activedir.org?>]
> *On Behalf Of *Robert Singers
> *Sent:* Thursday, May 08, 2008 4:03 PM
> *To:* *ActiveDir@mail.activedir.org* <ActiveDir@mail.activedir.org>
> *Subject:* RE: [ActiveDir] userenv.log and scriptPath logon scripts?
>
>
>
> Here's a bit of a tangential thing. You could use BGInfo and tattoo the
> desktop with the Logon Server details. Or have the log on script set an
> environment variable to %logonserver% as in *
> http://support.microsoft.com/kb/183495*<http://support.microsoft.com/kb/183495>
> ------------------------------
>
> *From:* *ActiveDir-owner@mail.activedir.org*<ActiveDir-owner@mail.activedir.org>[
> *mailto:ActiveDir-owner@mail.activedir.org*<ActiveDir-owner@mail.activedir.org?>]
> *On Behalf Of *Wells, James Arthur
> *Sent:* Friday, 9 May 2008 10:32 a.m.
> *To:* *ActiveDir@mail.activedir.org* <ActiveDir@mail.activedir.org>
> *Subject:* [ActiveDir] userenv.log and scriptPath logon scripts?
>
> Does anyone know if there are supposed to be any entries in userenv.log
> (debug setting) for a logon script called via the scriptPath property on a
> user object? I'm not looking for anything too granular…just an indication
> of whether or not the script fires, and what domain controller is used for
> that particular NETLOGON call, in case it's going to a far site…
>
>
>
>
>
> Thanks!
>
>
>
> --James
> ------------------------------
>
> This e-mail message has been scanned for Viruses and cleared by *NetIQ
> MailMarshal *
> ------------------------------
> ------------------------------
>
> *Please Note: *
>
> The information contained in this email message and any attached files may
> be confidential and subject to privilege. Any opinions expressed in this
> message are not necessarily those of the Department of Building and Housing.
> All technical opinions are offered on a 'no-liability' basis. This message
> and any files transmitted with it are confidential and solely for the use of
> the intended recipient. If you are not the intended recipient, you are
> notified that any use, disclosure or copying of this email is unauthorised.
> If you have received this email in error, please notify us immediately by
> reply email and delete the original and any attachment(s). Thank you.
> ------------------------------
> ------------------------------
>
> Plan your next roadtrip with *MapQuest.com*<http://www.mapquest.com/?ncid=mpqmap00030000000004>:
> America's #1 Mapping Site.
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Argue for your limitations, and sure enough, they're yours.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] userenv.log and scriptPath logon scripts?



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:rajnet2
New TodayNew Today:1
New YesterdayNew Yesterday:3
User CountOverall:4085

People OnlinePeople Online:
VisitorsVisitors:125
MembersMembers:0
TotalTotal:125

Online NowOnline Now:

Ads

Copyright 2008 ActiveDir.org
Terms Of Use