a guest Jan 19th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- IHostAuthenticationManager hostAuthenticationManager = _hostSystem.Client.GetView(_hostSystem.ConfigManager.AuthenticationManager, null);
- HostActiveDirectoryInfo activeDirectorySettings = hostAuthenticationManager.Info.AuthConfig.OfType<HostActiveDirectoryInfo>().FirstOrDefault();
- activeDirectorySettings.JoinedDomain // The name of the domain the hypervisor is connected to
RAW Paste Data