Speaking of Suppressing Domain Logins...
Armand Welsh
armand at welshhome.org
Tue Dec 26 22:22:52 GMT 2000
*This message was transferred with a trial version of CommuniGate(tm) Pro*
by the time the system will allow you to run a .reg file w/o call regedit
from the command line, it's too late. The decision about whether a domain
exists or not, has already happened. About the only way I can think of
supporting this function, is to use perl and ping the pdc and grep the
output for "Reply from", if it exists.
ping -t 4 192.168.1.1 | find /C "Reply from" > c:\pingres.txt
the pingres.txt file will contain the number of succesfull pings. The -t 4,
specifies to ping 4 times. Using a perl script, you can devide the value
stored in c:\pingres.txt by the number of pings (4), to get a host
availability ratio. (multiply it by 100 for a percentage.) then if the
percentage, or ratio is above a certain number, then execute regedit with
the appropriate file to be imported. (from DOS only mode, i.e., windows has
not started yet, just type "regedit /?" for for a list of the command line
options.) then in the autoexec.bat file do the following:
:autoexec.bat
net start
ping -t 4 mypdc | find /c "Reply from" > c:\pingres.txt
perl c:\myscript\testpdc.pl
net stop
----- Original Message -----
From: "JBCurry" <jbcurry at hline.localhealth.net>
To: <samba-ntdom at samba.org>
Sent: Friday, December 22, 2000 11:02 AM
Subject: RE: Speaking of Suppressing Domain Logins...
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> O.K. - I'm a little bit farther along on my quest. I discovered today
that
> the registry can be edited simply by running a <filename>.reg script
> containing the appropriate syntax for the setting(s) you wish to apply.
> That solves my problem of how to toggle a registry entry without using
> REGEDIT.
>
> Now I only need to figure out:
> 1. How can I determine TRUE:FALSE of whether a PCD exists on the network
> 2. Can I determine this AND run a <filename>.reg before the domain login
> dialogue pops up?
>
> Anybody got any ideas?
>
> Again, my overall goal is to suppress the Domain Login Dialogue in the
event
> that a PDC does not exist on the network. This would be a convenience for
> our mobile users and during planned and unplanned network downtimes.
>
> > -----Original Message-----
> > From: JBCurry
> > Sent: Thursday, December 21, 2000 3:03 PM
> >
> <SNIP>
> >
> > Now back to my original quest, which is to find a way to:
> > 1. Check for the presence of a PDC on the network
> > 2. Toggle this value to 00 in the event that a PDC is not found
> > 3. Toggle this value to 01 if a PDC is found
> > 4. Do this BEFORE the windows domain login would come up.
> >
> > Anybody have any suggestions on an easy way to do this?
> >
>
>
>
More information about the samba-ntdom
mailing list