2011-03-23 49 views
0

我已經寫了一個程序來收集從遠程計算機信息網絡中收集網絡計算機的詳細信息

private RemoteSysInformation.SystemInformation sysinfo; 

if (sysinfo.Get(ipaddress, username, password) != RemoteSysInformation.SystemInformation.Status.Success) 
{ 
    MessageBox.Show(sysinfo.Get(ipaddress, username, password).ToString()); 
}   
else 
{ 
    List.Items.Add(new ListViewItem(new string[] { "BIOS Version", sysinfo.Bios })); 
    List.Items.Add(new ListViewItem(new string[] { "OS Name", sysinfo.OSName })); 
    List.Items.Add(new ListViewItem(new string[] { "Version", sysinfo.OSVersion.description })); 
    List.Items.Add(new ListViewItem(new string[] { "OS Manufacturer", sysinfo.OSManufacturer })); 
    List.Items.Add(new ListViewItem(new string[] { "System Name", sysinfo.ComputerName })); 
    List.Items.Add(new ListViewItem(new string[] { "Time Zone", sysinfo.Timezone.standardname })); 
    List.Items.Add(new ListViewItem(new string[] { "Windows Directory", sysinfo.WindowsDirectory })); 
    List.Items.Add(new ListViewItem(new string[] { "Total Physical Memory", SizePrettyPrint(sysinfo.TotalPhysicalMemory) })); 
    List.Items.Add(new ListViewItem(new string[] { "Available Physical Memory", SizePrettyPrint(sysinfo.FreePhysicalMemory) })); 
    List.Items.Add(new ListViewItem(new string[] { "Total Virtual Memory", SizePrettyPrint(sysinfo.TotalVirtualMemory) })); 
    List.Items.Add(new ListViewItem(new string[] { "Available Virtual Memory", SizePrettyPrint(sysinfo.FreeVirtualMemory) })); 
    List.Items.Add(new ListViewItem(new string[] { "Page File Space", SizePrettyPrint(sysinfo.PageFileSize) })); 
    List.Items.Add(new ListViewItem(new string[] { "System Manufacturer", sysinfo.SystemManufacturer })); 
    List.Items.Add(new ListViewItem(new string[] { "System Model", sysinfo.SystemModel })); 
    List.Items.Add(new ListViewItem(new string[] { "System Type", sysinfo.SystemType })); 
    List.Items.Add(new ListViewItem(new string[] { "Domain", sysinfo.Domain })); 
} 

但其繼續給不可用錯誤RPC服務 請幫助!!!!!!!! !!!!!!!

錯誤是The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

+0

錯誤出現在您的消息框或控制檯中的某個位置? – Zakaria 2011-03-23 09:27:13

+0

** messagebox **列表框未填滿 – lankitha 2011-03-23 09:29:09

+0

遠程機器是否啓動? – 2011-03-23 09:35:14

回答

0

確保服務Winmgmt(Windows Management Instrumentation)正在遠程計算機上運行。

+0

是的,它正在運行 – lankitha 2011-03-23 10:31:04

+0

您可以嘗試運行附帶博客文章http://hemant-jangid.blogspot.com/2010/01/how-to-generate-unique-machine的應用程序。 HTML?它還使用WMI從遠程計算機獲取數據。 – Hemant 2011-03-23 10:40:50

0

錯誤消息「RPC 服務器不可用」或「RPC 服務不可用」?

  • 遠程機器啓動了嗎?
  • 遠程機器是否位於同一個LAN上?
  • 遠程機器是否允許遠程連接?
  • 您指定的用戶是否在遠程計算機上擁有正確的權限?
  • 本地和/或遠程機器上是否有防火牆?
  • 本地和遠程機器之間是否存在防火牆(可能是丟棄的RPC數據包)?
  • 您的DNS設置是否正確?
  • 什麼是選項。設置?例如, options.EnablePrivileges