マイナーでもいいよね??

殆どVB系、でも .NET じゃない VB は知らないよん

目次

Blog 利用状況

書庫

日記カテゴリ

ユーザがロックアウトしてるかどうかの判断

ユーザのアカウントには lockoutTime 属性があるので、この値を見ればロックアウトしてるかどうか判るんじゃないかという気がします。

結論から言えば lockoutTime 属性の値からはロックアウトしてるかどうか判断できません。

 

lockoutTime 属性の値の確認のとこを見ていただくと判りますが、lockoutTime 属性の値からは

1. 値がない => ロックアウトしたことがない => ロックアウトしてないことは判る

2. 値が 0 => 明示的にロックを解除したか、ロックアウト時間が過ぎた後ログオンした => ロックアウトしてないことは判る

3. 上記以外 => ロックアウトした時刻が判る(だけ)

 

1. と 2. からは ロックアウトしてないことは判るんですが、3. からは ロックアウトした時刻が判るだけで今もロックアウトしてるかどうかは判らないんです。

ロックアウト時間が過ぎてロックが解除されてもログオンしてなければ値が 0 にならないからです。

 

ドメインユーザのプロパティ画面の項目と属性の対応(アカウントタブ)のとこで書きましたが、ユーザがロックアウトしてるかどうかは ADSI の IADsUser.IsAccountLocked プロパティが True かどうかで判断するのが一番簡単です。

IADsUser は DirectoryEntry.NativeObject プロパティをキャストすることで取得できます。

ADSI を使わないなら userAccountControl 属性の値に ADS_USER_FLAG 列挙体の ADS_UF_LOCKOUT の値である 16 の論理積が 16 かどうかで判断します。

投稿日時 : 2013年12月11日 23:24

コメントを追加

# I've been exploring for a bit for any high-quality articles or weblog posts in this sort of space . Exploring in Yahoo I ultimately stumbled upon this site. Reading this information So i am happy to convey that I have a very good uncanny feeling I found 2018/10/07 1:32 I've been exploring for a bit for any high-quality

I've been exploring for a bit for any high-quality articles or weblog posts in this sort of space .
Exploring in Yahoo I ultimately stumbled upon this site.
Reading this information So i am happy to convey that I
have a very good uncanny feeling I found out just what I needed.
I most definitely will make sure to don?t fail to remember this website
and provides it a look regularly.

# Somebody essentially lend a hand to make significantly posts I would state. This is the first time I frequented your web page and to this point? I amazed with the research you made to create this actual submit incredible. Excellent job! 2018/10/07 9:56 Somebody essentially lend a hand to make significa

Somebody essentially lend a hand to make significantly posts I would state.
This is the first time I frequented your web page and to this point?
I amazed with the research you made to create this actual submit incredible.
Excellent job!

# Hi colleagues, how is all, and what you want to say concerning this article, in my view its really awesome for me. 2018/11/11 22:12 Hi colleagues, how is all, and what you want to sa

Hi colleagues, how is all, and what you want to say concerning this article,
in my view its really awesome for me.

# Very quickly this website will be famous amid all blogging and site-building viewers, due to it's pleasant content 2019/04/06 0:36 Very quickly this website will be famous amid all

Very quickly this website will be famous amid all
blogging and site-building viewers, due to it's pleasant content

# This is really fascinating, You're a very skilled blogger. I've joined your feed and stay up for in quest of more of your great post. Additionally, I've shared your website in my social networks 2019/04/08 5:49 This is really fascinating, You're a very skilled

This is really fascinating, You're a very skilled blogger.
I've joined your feed and stay up for in quest of more of your
great post. Additionally, I've shared your website in my social networks

# Hello There. I discovered your weblog using msn. That is a really neatly written article. I will make sure to bookmark it and come back to read extra of your useful information. Thanks for the post. I'll certainly comeback. 2019/04/09 9:17 Hello There. I discovered your weblog using msn.

Hello There. I discovered your weblog using msn. That is a really neatly written article.
I will make sure to bookmark it and come back to read extra of your
useful information. Thanks for the post. I'll certainly
comeback.

# It's going to be finish of mine day, except before end I am reading this enormous paragraph to increase my knowledge. 2019/04/09 23:27 It's going to be finish of mine day, except before

It's going to be finish of mine day, except before end I am reading this enormous paragraph to increase my
knowledge.

# I always used to read paragraph in news papers but now as I am a user of net thus from now I am using net for content, thanks to web. 2019/07/11 8:02 I always used to read paragraph in news papers but

I always used to read paragraph in news papers but now as I am a user of net thus from now
I am using net for content, thanks to web.

# I always used to read paragraph in news papers but now as I am a user of net thus from now I am using net for content, thanks to web. 2019/07/11 8:03 I always used to read paragraph in news papers but

I always used to read paragraph in news papers but now as I am a user of net thus from now
I am using net for content, thanks to web.

# I always used to read paragraph in news papers but now as I am a user of net thus from now I am using net for content, thanks to web. 2019/07/11 8:04 I always used to read paragraph in news papers but

I always used to read paragraph in news papers but now as I am a user of net thus from now
I am using net for content, thanks to web.

# I always used to read paragraph in news papers but now as I am a user of net thus from now I am using net for content, thanks to web. 2019/07/11 8:05 I always used to read paragraph in news papers but

I always used to read paragraph in news papers but now as I am a user of net thus from now
I am using net for content, thanks to web.

# TedJtWnKIQW 2021/07/03 2:02 https://interestpin.com/pin/483144/

The information and facts talked about within the write-up are several of the best obtainable

# ivermectin 10 mg http://stromectolabc.com/
ivermectin humans 2022/02/07 17:43 Busjdhj

ivermectin 10 mg http://stromectolabc.com/
ivermectin humans

# ivermectin pill cost http://stromectolabc.com/
stromectol prices 2022/02/08 3:37 Busjdhj

ivermectin pill cost http://stromectolabc.com/
stromectol prices

# ivermectin usa price http://stromectolabc.com/
buy stromectol pills 2022/02/08 10:23 Busjdhj

ivermectin usa price http://stromectolabc.com/
buy stromectol pills

# TrBqIRCVKZDWoJ 2022/04/19 10:12 johnanz

http://imrdsoacha.gov.co/silvitra-120mg-qrms

# paxlovid canada https://paxlovid.best/
buy paxlovid 2022/09/07 22:50 Paxlovid

paxlovid canada https://paxlovid.best/
buy paxlovid

# cheap erectile dysfunction pills https://erectiledysfunctionpills.shop/ 2022/10/14 16:35 Erectile

cheap erectile dysfunction pills https://erectiledysfunctionpills.shop/

# 50 mg prednisone from canada https://prednisone20mg.icu/ 2022/10/15 7:09 Prednisone

50 mg prednisone from canada https://prednisone20mg.icu/

# buy prednisone 50 mg https://prednisone20mg.site/
prednisone 20 mg in india 2022/11/15 11:01 Prednisone

buy prednisone 50 mg https://prednisone20mg.site/
prednisone 20 mg in india

# 80 mg prednisone daily https://prednisonepills.site/
prednisone pills cost 2022/11/28 16:47 Prednisone

80 mg prednisone daily https://prednisonepills.site/
prednisone pills cost

# dating sites for totally free for usa https://datingonline1st.com/
subtle asian dating 2023/01/17 17:33 Dating

dating sites for totally free for usa https://datingonline1st.com/
subtle asian dating

# Get warning information here. Cautions.
https://edonlinefast.com
All trends of medicament. drug information and news for professionals and consumers. 2023/02/17 16:38 EdPills

Get warning information here. Cautions.
https://edonlinefast.com
All trends of medicament. drug information and news for professionals and consumers.

# Everything what you want to know about pills. drug information and news for professionals and consumers.
https://canadianfast.com/
Prescription Drug Information, Interactions & Side. Best and news about drug. 2023/02/19 17:57 CanadaBest

Everything what you want to know about pills. drug information and news for professionals and consumers.
https://canadianfast.com/
Prescription Drug Information, Interactions & Side. Best and news about drug.

# doxycycline hyclate 100 mg cap - https://doxycyclinesale.pro/# 2023/04/22 4:04 Doxycycline

doxycycline hyclate 100 mg cap - https://doxycyclinesale.pro/#

# buy prednisone 20mg - https://prednisonesale.pro/# 2023/04/22 15:10 Prednisone

buy prednisone 20mg - https://prednisonesale.pro/#

# over the counter steroid cream https://overthecounter.pro/# 2023/05/08 12:56 OtcJikoliuj

over the counter steroid cream https://overthecounter.pro/#

# canadian pharmacies no prescription needed https://pillswithoutprescription.pro/# 2023/05/15 22:11 PillsPro

canadian pharmacies no prescription needed https://pillswithoutprescription.pro/#

# best ed medications: https://edpills.pro/# 2023/05/16 3:20 EdPillsPro

best ed medications: https://edpills.pro/#

# buy prednisone with paypal canada https://prednisonepills.pro/# - online order prednisone 2023/06/05 5:20 Prednisone

buy prednisone with paypal canada https://prednisonepills.pro/# - online order prednisone

# paxlovid buy https://paxlovid.store/
paxlovid cost without insurance 2023/07/13 21:43 Paxlovid

paxlovid buy https://paxlovid.store/
paxlovid cost without insurance

# versandapotheke deutschland 2023/09/26 11:54 Williamreomo

https://onlineapotheke.tech/# versandapotheke deutschland
online apotheke deutschland

# п»їonline apotheke 2023/09/26 15:54 Williamreomo

https://onlineapotheke.tech/# internet apotheke
online apotheke deutschland

# online apotheke gГјnstig 2023/09/26 22:55 Williamreomo

https://onlineapotheke.tech/# online apotheke gГ?nstig
online apotheke preisvergleich

# gГјnstige online apotheke 2023/09/27 5:23 Williamreomo

https://onlineapotheke.tech/# online apotheke versandkostenfrei
gГ?nstige online apotheke

# acquisto farmaci con ricetta 2023/09/27 18:05 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# farmacia online senza ricetta 2023/09/27 19:58 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# farmacie online sicure 2023/09/27 20:31 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# ed pills https://edpillsotc.store/# - buying ed pills online 2023/10/07 16:05 EdPills

ed pills https://edpillsotc.store/# - buying ed pills online

# canadian pills store 2023/10/15 15:14 Kiethamert

http://gabapentin.world/# gabapentin 300

# medications online without prescriptions 2023/10/16 19:59 Dannyhealm

A beacon of reliability and trust. https://mexicanpharmonline.shop/# mexican rx online

# best online canadian pharmacies 2023/10/16 21:04 Dannyhealm

They bridge global healthcare gaps seamlessly. https://mexicanpharmonline.com/# mexican rx online

# canadian pharmacies that ship to us 2023/10/16 22:28 Dannyhealm

They're reshaping international pharmaceutical care. http://mexicanpharmonline.com/# mexico drug stores pharmacies

# mexican pharmacies online 2023/10/16 23:19 Dannyhealm

The staff provides excellent advice on over-the-counter choices. http://mexicanpharmonline.shop/# mexico drug stores pharmacies

# canadian pharmcy 2023/10/17 11:53 Dannyhealm

Their worldwide delivery system is impeccable. https://mexicanpharmonline.shop/# mexico drug stores pharmacies

# online-rx 2023/10/17 13:02 Dannyhealm

They have a fantastic range of supplements. https://mexicanpharmonline.shop/# mexican pharmaceuticals online

# best mexican pharmacies 2023/10/17 17:33 Dannyhealm

Leading with integrity on the international front. http://mexicanpharmonline.com/# reputable mexican pharmacies online

# canada on line pharmacies 2023/10/17 20:55 Dannyhealm

Medicament prescribing information. https://mexicanpharmonline.shop/# mexican rx online

# canadian drug store 2023/10/18 2:03 Dannyhealm

I always find great deals in their monthly promotions. http://mexicanpharmonline.shop/# mexican mail order pharmacies

# buy prescription online 2023/10/18 8:57 Dannyhealm

Their global network ensures the best medication prices. https://mexicanpharmonline.shop/# pharmacies in mexico that ship to usa

# purchase doxycycline online https://doxycycline.forum/ doxycycline 100mg capsules 2023/11/25 3:52 Doxycycline

purchase doxycycline online https://doxycycline.forum/ doxycycline 100mg capsules

# rx prices 2023/11/30 22:07 MichaelBum

https://paxlovid.club/# paxlovid cost without insurance

# paxlovid for sale 2023/12/01 7:34 Mathewhip

paxlovid for sale https://paxlovid.club/# paxlovid generic

# acquisto farmaci con ricetta https://farmaciait.pro/ acquisto farmaci con ricetta 2023/12/04 3:43 Farmacia

acquisto farmaci con ricetta https://farmaciait.pro/ acquisto farmaci con ricetta

# farmacia online madrid 2023/12/07 20:43 RonnieCag

https://tadalafilo.pro/# farmacia barata

# farmacias online baratas 2023/12/07 23:51 RonnieCag

https://sildenafilo.store/# sildenafilo sandoz 100 mg precio

# farmacia envíos internacionales 2023/12/08 3:02 RonnieCag

http://tadalafilo.pro/# farmacia online

# farmacias online seguras 2023/12/08 6:03 RonnieCag

http://farmacia.best/# farmacia online envío gratis

# farmacia online barata 2023/12/08 14:30 RonnieCag

https://farmacia.best/# farmacia envíos internacionales

# farmacia envíos internacionales 2023/12/08 17:28 RonnieCag

https://vardenafilo.icu/# farmacia barata

# farmacias baratas online envío gratis 2023/12/09 15:04 RonnieCag

http://farmacia.best/# farmacia 24h

# farmacias baratas online envío gratis 2023/12/09 18:13 RonnieCag

https://sildenafilo.store/# sildenafilo cinfa 100 mg precio farmacia

# farmacia online 24 horas 2023/12/10 0:59 RonnieCag

https://tadalafilo.pro/# farmacias baratas online envío gratis

# farmacia envíos internacionales 2023/12/10 8:18 RonnieCag

http://farmacia.best/# farmacia online madrid

# farmacias baratas online envío gratis 2023/12/10 17:22 RonnieCag

https://farmacia.best/# farmacia online madrid

# ï»¿farmacia online 2023/12/10 21:42 RonnieCag

https://farmacia.best/# farmacia envíos internacionales

# farmacias online seguras en españa 2023/12/11 4:45 RonnieCag

https://vardenafilo.icu/# farmacia envíos internacionales

# farmacias online seguras en españa 2023/12/12 15:16 RonnieCag

http://vardenafilo.icu/# farmacias online seguras en españa

# Pharmacies en ligne certifiées 2023/12/13 14:33 Larryedump

http://pharmacieenligne.guru/# Acheter médicaments sans ordonnance sur internet

# Pharmacies en ligne certifiées 2023/12/14 5:47 Larryedump

https://pharmacieenligne.guru/# Pharmacie en ligne France

# Pharmacie en ligne livraison gratuite 2023/12/15 6:37 Larryedump

https://pharmacieenligne.guru/# Pharmacie en ligne livraison gratuite

# pharmacie ouverte 2023/12/16 6:42 Larryedump

http://pharmacieenligne.guru/# acheter medicament a l etranger sans ordonnance

# п»їpaxlovid 2023/12/27 6:44 Brianmooda

https://prednisone.bid/# prednisone 50 mg price

# purchase cytotec https://cytotec.club/ Abortion pills online 2024/04/28 2:12 Cytotec

purchase cytotec https://cytotec.club/ Abortion pills online

タイトル
名前
URL
コメント