Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get Remote PC Information with just smb access
Forum Updated to NodeBB v4.3 + New Features

Get Remote PC Information with just smb access

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 255 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AzadshahrA Offline
    AzadshahrA Offline
    Azadshahr
    wrote on last edited by Azadshahr
    #1

    I have access to a remote machine. I can work properly with the remote machine file system. Now, I wanted to extract some information about the remote machine. For example, architecture, operating system, os version, uptime, and so on. How can I get these kind of information from the remote machine?

    With following code, I could just resolve domain name and also the IP address of the remote machine. Now I wanted to extract more information about the remote machine.

    PcInformation::PcInformation(QWidget *parent) : QMainWindow(parent), ui(new Ui::PcInformation)
    {
        ui->setupUi(this);
        QWidget::setFixedSize(540, 235);
        QString computerTargetName = QApplication::arguments().at(1);
    
        f_hostAddress = QHostInfo::fromName(computerTargetName).addresses().first();
        f_hostName = computerTargetName;
        f_hostArchitecture = "x64";
    
        ui->labelDomain->setText(f_hostName);
        ui->labelIpAddress->setText(f_hostAddress.toString());
        ui->labelArch->setText(f_hostArchitecture);
    }
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      This is not possible with Qt. You have to use to OS API for this.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Beside @Christian-Ehrlicher's point, AFAIK, SMB is a network protocol for file and print services so how are you executing your application ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          you'd have to create a scheduled task on the target machine that saves the information to a file, and then you can use SMB to pull that file.

          I light my way forward with the fires of all the bridges I've burned behind me.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved