久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Active Directory 檢查用戶是否登錄

Active Directory check if user is logged in(Active Directory 檢查用戶是否登錄)
本文介紹了Active Directory 檢查用戶是否登錄的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在嘗試使用活動目錄來判斷用戶當前是否已登錄.活動目錄可以做到這一點嗎?

I am trying to use active directory to tell if a user is logged in currently. Is this possible with active directory?

我可以檢查用戶有什么角色 User.IsInRole(@"domain.comTeamLead")

I can check what role the user has User.IsInRole(@"domain.comTeamLead")

但是我看不到任何內容來查看他們當前是否已登錄.

But I'm not seeing anything to see if they are currently logged in or not.

推薦答案

嚴格使用 Active Directory,您將無法獲得此信息.Active Directory 不存儲此類信息.您可以通過 GPO 打開登錄審核并查詢個人計算機,但這可能會很麻煩.

By strictly using Active Directory, you will not be able to get this information. Active Directory doesn't store this type of information. You can turn on Login Auditing through GPO and query individuals computers, but that could be messy.

外部解決方案可能是psloggedon:
http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx
雖然這并不理想.

An outside solution could be psloggedon:
http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx
Though that is hardly ideal.

AFAIK 沒有開箱即用的數據存儲來跟蹤當前登錄到域的用戶.

AFAIK there is no out of the box datastore that keeps track of which users are currently logged into a domain.

另一種選擇是制作一個登錄/注銷腳本,寫入特定的文件/數據庫,您可以監控該文件以查看誰登錄.

Another alternative could be to craft a logon/logoff script that writes to a particular file/database and you could monitor that file to see who is logged in.

這篇關于Active Directory 檢查用戶是否登錄的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Why shouldn#39;t I always use nullable types in C#(為什么我不應該總是在 C# 中使用可空類型)
C# HasValue vs !=null(C# HasValue vs !=null)
C# ADO.NET: nulls and DbNull -- is there more efficient syntax?(C# ADO.NET:空值和 DbNull —— 有沒有更高效的語法?)
How to set null value to int in c#?(如何在c#中將空值設置為int?)
How to handle nulls in LINQ when using Min or Max?(使用 Min 或 Max 時如何處理 LINQ 中的空值?)
Method call if not null in C#(在 C# 中如果不為 null 的方法調用)
主站蜘蛛池模板: 极品白嫩少妇无套内谢 | 国产成人免费在线观看 | 欧美精品二区 | 国产成人精品毛片 | 黄视频免费观看 | 国产精彩视频 | 成年人毛片 | 中文字幕在线观看网址 | 开心激情婷婷 | 久久精品国产视频 | 老司机免费福利视频 | 日本特黄一级片 | 成人国产精品一区二区 | 欧美在线视频一区二区 | 欧美成人综合 | 久操视频在线 | 欧美日韩一区在线 | 一级黄色免费视频 | 国产区精品 | 麻豆视频国产 | 天天操夜夜操狠狠操 | 免费毛片在线播放免费 | 91亚洲国产成人久久精品网站 | 免费看黄色av | 黄色网址在线免费观看 | 日韩成人中文字幕 | 九九视频在线 | 操bbbbb | 韩国三级中文字幕hd久久精品 | 欧美极品一区 | 日韩国产在线播放 | 毛片网站视频 | 欧美一区二区三区不卡 | 成人不卡| 天天色天天 | 亚洲九九九 | 日韩一区中文字幕 | 999在线视频| 中文字幕在线免费看 | 成人精品视频 | 一区二区三区四区视频 |