Detect Active Directory logon
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Detect Active Directory logon

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
Jimmy
Guest





Posted: Tue Jan 04, 2005 5:35 pm    Post subject: Detect Active Directory logon Reply with quote

Our company has some XP SP2 notebook computers joined to a W2K3 domain. I
need to develop a script which run some commands if log on to domain (E.g. in
office) and some other commands if not log on to domain (E.g. out of office).

Is there any ways to do such detection?

Jimmy
Back to top
Phil Johnstone
Guest





Posted: Wed Jan 05, 2005 3:51 am    Post subject: RE: Detect Active Directory logon Reply with quote

You could make a logon script that pings your Domain Controllers then assume
that if they are unavaliable, the user is out of office.

"Jimmy" wrote:

Quote:
Our company has some XP SP2 notebook computers joined to a W2K3 domain. I
need to develop a script which run some commands if log on to domain (E.g. in
office) and some other commands if not log on to domain (E.g. out of office).

Is there any ways to do such detection?

Jimmy
Back to top
Jimmy
Guest





Posted: Wed Jan 05, 2005 9:43 am    Post subject: RE: Detect Active Directory logon Reply with quote

That's a good try. Thanks.

Jimmy

"Phil Johnstone" wrote:

Quote:
You could make a logon script that pings your Domain Controllers then assume
that if they are unavaliable, the user is out of office.

"Jimmy" wrote:

Our company has some XP SP2 notebook computers joined to a W2K3 domain. I
need to develop a script which run some commands if log on to domain (E.g. in
office) and some other commands if not log on to domain (E.g. out of office).

Is there any ways to do such detection?

Jimmy
Back to top
Al Dunbar [MS-MVP]
Guest





Posted: Wed Jan 05, 2005 11:35 pm    Post subject: Re: Detect Active Directory logon Reply with quote

"Jimmy" <Jimmy@discussions.microsoft.com> wrote in message
news:480C6200-2B2C-44FE-9A66-7A705A8FE155@microsoft.com...
Quote:
That's a good try. Thanks.

Jimmy

"Phil Johnstone" wrote:

You could make a logon script that pings your Domain Controllers then
assume
that if they are unavaliable, the user is out of office.

This would have to be a computer-based logon script as opposed to a
domain-based logon script. If someone is logging on to a workstation using
cached credentials, it is not the domain that is doing the authentication.
And neither will the domain-based logon script run if the domain controllers
are not accessible.

Same thing if someone logs on with a local computer account, except that,
even if the computer is physically connected to your network, a non-domain
account will not run a domain-based logon script.

/Al

Quote:
"Jimmy" wrote:

Our company has some XP SP2 notebook computers joined to a W2K3
domain. I
need to develop a script which run some commands if log on to domain
(E.g. in
office) and some other commands if not log on to domain (E.g. out of
office).

Is there any ways to do such detection?

Jimmy
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB