2013-02-08 32 views
2

我想鎖定當前操作用戶的訪問,因爲如果用戶如何鎖定並強制用戶重新輸入自己的Windows密碼?

點擊開始→指出關機→點擊LOCK

如何做,在C#?

+0

您可以創建一個運行以下命令行的應用程序。這裏沒有涉及到的Dll進口。 http://www.idsecuritysuite.com/blog/how-to-lock-your-computer-using-command-line – 2013-02-08 14:47:33

+0

您是否正在授權用戶?也許作爲管理員? http://stackoverflow.com/questions/3583501/c-net-acquire-administrator-rights – MrFox 2013-02-08 14:49:40

回答

0
System.Diagnostics.Process.Start("shutdown.exe -l"); 





     it will LOG OFF your computer and now if the account has secure with some password then windows will ask for password otherwise not. 
相關問題