Guest User

Untitled

a guest
Jan 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. IHostAuthenticationManager hostAuthenticationManager = _hostSystem.Client.GetView(_hostSystem.ConfigManager.AuthenticationManager, null);
  2. HostActiveDirectoryInfo activeDirectorySettings = hostAuthenticationManager.Info.AuthConfig.OfType<HostActiveDirectoryInfo>().FirstOrDefault();
  3.  
  4. activeDirectorySettings.JoinedDomain // The name of the domain the hypervisor is connected to
Add Comment
Please, Sign In to add comment