Title: RE: Win32::AdminMisc - user flag USER_LOGON_HOURS

This works well to get the bits.  I actually used this method after reading Steven's emails.
However, I need a way to convert '1110111...' to 'Cannot logon on Sundays between  03:00 and 03:59' so it makes sense on a printed report.

-----Original Message-----
From: Thomas R Wyant_III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 4:04 PM
To: Perl-Win32-Admin ([EMAIL PROTECTED])
Subject: RE: Win32::AdminMisc - user flag USER_LOGON_HOURS



Jason,

What's wrong with just pulling the bits out with 'unpack'?

    $bits = unpack 'b*', $attrs{USER_LOGON_HOURS};
    print "$bits\n";

Tom Wyant



This communication is for use by the intended recipient and contains
information that may be privileged, confidential or copyrighted under
applicable law.  If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited.  Please notify the sender
by return e-mail and delete this e-mail from your system.  Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer.  This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.

 Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean

            http://www.DuPont.com/corp/email_disclaimer.html


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to