| Author |
Message |
Jimmy
Guest
|
Posted:
Tue Jan 04, 2005 5:35 pm Post subject:
Detect Active Directory logon |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
"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 |
|
 |
|
|
|
|