# PSRemoteregistery

**URL:** <https://forums.powershell.org/t/psremoteregistery/3257>\
**Category:** PowerShell Help\
**Created:** [October 15, 2014, 6:35am UTC](https://forums.powershell.org/t/psremoteregistery/3257 "2014-10-15T06:35:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![windows-liveuser83](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@windows-liveuser83](https://forums.powershell.org/u/windows-liveuser83)\
**Post date:** [October 15, 2014, 6:35am UTC](https://forums.powershell.org/t/psremoteregistery/3257/1 "2014-10-15T06:35:40Z")

</div>

I am trying to use the PS Remote Registry module to retrieve the value of a registry item on a series of remote PCs  
I have verified that the key exists but the PS cmdlet still returns an error… perhaps I have a syntax error?

PS \> get-regvalue -computername 7mjlcx1 -key \software\wow6432node\nbsi\sysdll\termID

get-regvalue : Key '\software\wow6432node\nbsi\sysdll\termID' doesn’t exist.  
At line:1 char:1

- get-regvalue -computername 7mjlcx1 -key \software\wow6432node\nbsi\sysdll\termID …
- 

```auto
  + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RegValue
```

---

<div class="post-metadata">

**Author:** ![daniel-krebs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/daniel-krebs/32/484_2.png) [@daniel-krebs](https://forums.powershell.org/u/daniel-krebs)\
**Post date:** [October 15, 2014, 6:51am UTC](https://forums.powershell.org/t/psremoteregistery/3257/2 "2014-10-15T06:51:34Z")

</div>

Hi NetAdminTX,

The function should work if you remove the backslash before software and the Remote Registry service is running on the remote computer.

```
get-regvalue -computername 7mjlcx1 -key software\wow6432node\nbsi\sysdll\termID
```

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![windows-liveuser83](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@windows-liveuser83](https://forums.powershell.org/u/windows-liveuser83)\
**Post date:** [October 15, 2014, 7:38am UTC](https://forums.powershell.org/t/psremoteregistery/3257/3 "2014-10-15T07:38:38Z")

</div>

Removed backslash - still see in the error  
Verified the remote registry service and verified the key exists

PS C:\users\ahollister\desktop\registry\_pull\> get-regvalue -computername 7mjlcx1 -key software\wow6432node\nbsi\sysdll\t  
ermID  
get-regvalue : Key 'software\wow6432node\nbsi\sysdll\termID' doesn’t exist.  
At line:1 char:1

- get-regvalue -computername 7mjlcx1 -key software\wow6432node\nbsi\sysdll\termID\
- 

```auto
  + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RegValue

```

PS C:\users\ahollister\desktop\registry\_pull\> get-service -computername 7mjlcx1 -name RemoteRegistry

Status Name DisplayName

* * *

Running RemoteRegistry Remote Registry

PS C:\users\ahollister\desktop\registry\_pull\>

---

<div class="post-metadata">

**Author:** ![daniel-krebs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/daniel-krebs/32/484_2.png) [@daniel-krebs](https://forums.powershell.org/u/daniel-krebs)\
**Post date:** [October 15, 2014, 8:11am UTC](https://forums.powershell.org/t/psremoteregistery/3257/4 "2014-10-15T08:11:35Z")

</div>

Thanks for the screenshot. “TermID” is not a key but a value of the “SYSDLL” key. Please test if below returns the correct result.

```
Get-RegValue -ComputerName 7mjlcx1 -Key SOFTWARE\Wow6432Node\NBSI\SYSDLL -Value TermID
```

---

<div class="post-metadata">

**Author:** ![windows-liveuser83](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@windows-liveuser83](https://forums.powershell.org/u/windows-liveuser83)\
**Post date:** [October 15, 2014, 8:28am UTC](https://forums.powershell.org/t/psremoteregistery/3257/5 "2014-10-15T08:28:43Z")

</div>

that fixed it, Ill make the changes in the script and test it out tomorrow thanks

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:47pm UTC](https://forums.powershell.org/t/psremoteregistery/3257/6 "2024-05-16T20:47:19Z")

</div>


