create local user account

前端 未结 2 1590
日久生厌
日久生厌 2020-12-01 15:14

i have this code to create a local windows user

public static bool CreateLocalWindowsAccount(string username, string password, string displayName, string des         


        
2条回答
  •  渐次进展
    2020-12-01 15:38

    check if you do not have UAC enabled alternatively you have to write the code to elevate your application privileges. This however restarts your application.

    http://support.microsoft.com/kb/981778

提交回复
热议问题