Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. WMI remote registry

WMI remote registry

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-admintoolstutorialquestion
4 Posts 2 Posters 0 Views 1 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.
  • R Offline
    R Offline
    RobJones
    wrote on last edited by
    #1

    Hello, I have spent weeks researching how to read/write remote registry values through WMI (StdRegProv). All examples out there are script based. Currently I am able to connect/authenticate to a remote machine, pull standard WMI information like OS, CPU etc.. but reading/writing to the registry seems to be a totally different animal. Has anyone had any experience using WMI with C++ to read/write remote registry values? Thanks in advance, Rob

    Whoever said nothing is impossible never tried slamming a revolving door!

    M 1 Reply Last reply
    0
    • R RobJones

      Hello, I have spent weeks researching how to read/write remote registry values through WMI (StdRegProv). All examples out there are script based. Currently I am able to connect/authenticate to a remote machine, pull standard WMI information like OS, CPU etc.. but reading/writing to the registry seems to be a totally different animal. Has anyone had any experience using WMI with C++ to read/write remote registry values? Thanks in advance, Rob

      Whoever said nothing is impossible never tried slamming a revolving door!

      M Offline
      M Offline
      Michel Godfroid
      wrote on last edited by
      #2

      Your problem may be related to this[^]. Not to be picky, but why don't you connect to the remote registry directly[^]? That's how the registry editor does it. Oh, and if you're trying to access a user hive, it wont work, because it will not be loaded.

      R 1 Reply Last reply
      0
      • M Michel Godfroid

        Your problem may be related to this[^]. Not to be picky, but why don't you connect to the remote registry directly[^]? That's how the registry editor does it. Oh, and if you're trying to access a user hive, it wont work, because it will not be loaded.

        R Offline
        R Offline
        RobJones
        wrote on last edited by
        #3

        Thanks! I didn't know about that other method of connecting to the registry, I will give that a shot. Thank you, Rob

        Whoever said nothing is impossible never tried slamming a revolving door!

        M 1 Reply Last reply
        0
        • R RobJones

          Thanks! I didn't know about that other method of connecting to the registry, I will give that a shot. Thank you, Rob

          Whoever said nothing is impossible never tried slamming a revolving door!

          M Offline
          M Offline
          Michel Godfroid
          wrote on last edited by
          #4

          RobJones wrote:

          other method of connecting to the registry

          It needs the remote registry service, which is normally active. Just in case you don't know where to look if it fails :-)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups