1

I want to make a Script, that ask me for my input (Client) and opens up the registry editor with the client already connected, so I dont have to click manually add network... Is there a way, in Batch or Powershell, to do this? I dont want directly edit something or search, just the normal GUI Registry Editor (regedit) from the remote client

For Example: Opens up the cmd

Typing: registry [Client]

Service remote registry from client [Client] has been started

Powershell Script or Batch starts the registry editor from the client

6
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented Jun 3, 2022 at 6:40
  • You need to be able to map a network drive to their C drive, then you can use regedit /L:\\pcname\c$\windows\system.dat to open regedit to that system. See also: techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/…
    – LPChip
    Commented Jun 3, 2022 at 7:46
  • @LPChip that is not working for me for some reason
    – Christian
    Commented Jun 3, 2022 at 8:18
  • Which registry hive is to be queried? Is it HKEY_CURRENT_USER?
    – harrymc
    Commented Jun 3, 2022 at 9:26
  • 1
    See this PowerShell script. Is this what you're looking for?
    – harrymc
    Commented Jun 3, 2022 at 10:19

1 Answer 1

1

Why not use Invoke-Command from your workstation to get the registry values you need?

Invoke-Command -Computer Server01 {
    Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\run
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .