public EventLogging ( string host, string username, string password ) : System | ||
host | string | |
username | string | |
password | string | |
리턴 | System |
public EventLogging(string host, string username, string password)
{
ConnectionOptions connoptions = new ConnectionOptions();
connoptions.Username = username;
connoptions.Password = password;
connoptions.Impersonation = ImpersonationLevel.Impersonate;
m_scope = new ManagementScope(@"\\" + host + @"\root\cimv2", connoptions);
m_scope.Connect();
}