Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user = new UserPrincipal(someValidUserContext,
- ".x-xyz-t-FooFooBarTest", "somePwd", true);
- user.UserPrincipalName = ".x-xyz-t-FooFooBarTest@foobarbatbaz.net";
- user.SamAccountName = ".x-xyz-t-FooFooBarTest";
- user.DisplayName = "Some String 16 chars long";
- user.Name = "Some String 16 chars long";
- user.Description = "Foo BarBaz 12 more characters";
- user.AccountExpirationDate = someDateInFuture;
- user.UserCannotChangePassword = true;
- user.Save();
- // exception thrown on Save():
- // A device attached to the system is not functioning
Add Comment
Please, Sign In to add comment