收集网络计算机详细信息

发布于 2024-10-26 02:42:42 字数 2086 浏览 1 评论 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 服务不可用 请帮忙!!!!!!!!!!!!!!!

错误是RPC 服务器不可用。 (HRESULT 异常:0x800706BA)

i have written a program to collect details from remote computers in the network

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 }));
}

but its keep giving the error RPC service unavailable
PLEASE HELP!!!!!!!!!!!!!!!

The error is The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

木槿暧夏七纪年 2024-11-02 02:42:42

确保服务Winmgmt(Windows Management Instrumentation)正在远程计算机上运行。

Make sure service Winmgmt (Windows Management Instrumentation) is running on remote computer.

内心激荡 2024-11-02 02:42:42

错误消息是“RPC 服务器不可用”还是“RPC 服务不可用”?

  • 远程机器是否已启动?
  • 远程机器是否在同一个 LAN 上?
  • 远程机器是否允许远程连接?
  • 您指定的用户在远程计算机上是否拥有正确的权限?
  • 本地和/或远程计算机上是否有防火墙?
  • 本地和远程计算机之间是否有防火墙(可能会丢弃 RPC 数据包)?
  • 您的 DNS 设置正确吗?
  • 选项设置是什么?例如,options.EnablePrivileges

Is the error message "RPC server unavailable" or "RPC service unavailable"?

  • Is the remote machine up?
  • Is the remote machine on the same LAN?
  • Does the remote machine allow remote connections?
  • Does the user you're specifying have the right permissions on the remote machine?
  • Is there a firewall on the local and/or remote machines?
  • Is there a firewall between the local and remote machines (maybe dropped RPC packets)?
  • Are your DNS settings correct?
  • What are the option. settings? For example, options.EnablePrivileges?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文