自动启用和禁用用户凭据 [英] To Auto enable and disable user credential

查看:99
本文介绍了自动启用和禁用用户凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我们计划建立一个Windows应用程序,它将在我们休假时自动启用和禁用用户凭证。



假设从2015年7月21日到2015年7月30日我将休假。所以我不能在这段时间内使用我的凭证(邮件ID等)。但是当我将成为回来我的帐户应该自动启用。



我们将在excel文件中获得所有请假详细信息.account enable disable应该按照这个Excel工作表数据工作。 />


关于

Dear Friends,

we are planning to build a windows application which will auto enable and disable user credential when we was on leave.

suppose from 21-07-2015 To 30-07-2015 i will be on leave.so i can not use my credential(mail id etc) within this period.but when i will be come back my account should auto enable.

we will got all leave request details in a excel file .account enable disable should work as per this excel sheet data.

Regards

推荐答案

基于Excel文件,为什么不创建一个启用/禁用帐户的脚本使用Powershell并使用Windows任务计划程序安排此脚本。



查看 Disable-ADAccount [ ^ ]


如果您出于某种原因需要通过C#进行,请查看 Howto :(几乎)通过C#在Active Directory中的所有内容 [ ^ ]
Based on the Excel file, why not create a script which would enable/disable the accounts using Powershell and schedule this script using Windows Task Scheduler.

Have a look at Disable-ADAccount[^]

If you need to do it via C# for some reason, have a look at Howto: (Almost) Everything In Active Directory via C#[^]


这篇关于自动启用和禁用用户凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆