Remote registry: OpenRemoteBaseKey not working

Hi
I'm trying to read a remote registry key. I have the Remote Registry service running on on the target machine, and I can read the key using `reg query`. In all honesty, this is good enough for my purposes.
PS C:\> reg query "\\remote-machine\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" /v VersionHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer    Version    REG_SZ    9.11.9600.17420
However, I'm curious to know why I can't do this with Powershell and OpenRemoteBaseKey. I've tried the following steps
from here:
PS C:\> $remote = "remote-machine"PS C:\> $type = [Microsoft.Win32.RegistryHive]::LocalMachine
PS C:\> $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($type, $remote )
PS C:\> $regpath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer"
PS C:\> $productkey = $reg.OpenSubKey($regpath)
PS C:\> $productkey.getvalue("Version")
You cannot call a method on a null-valued expression.
At line:1 char:1
+ $productkey.getvalue("Version")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Inspecting the values produced, $productkey is null, and $reg appears to be empty:
PS C:\> $reg
Name Property
PS C:\> $reg.GetType()
IsPublic IsSerial Name BaseType
True False RegistryKey System.MarshalByRefObject
PS C:\>
So, why would `reg query` work, while `OpenRemoteBaseKey()` does not? I can use `reg query` well enough in my scripts, but I'd prefer something a little more Powershell-y.
Cheers

When you update IE, it does not necessarily update the 'Version' value in the registry.
-- Bill Stewart [Bill_Stewart]
Okay. Are you referring to what is stated in the following paragraph from the same page you linked before?
Internet Explorer 3.x does not add the version value to the registry. Instead, it adds a "build" value to the same registry key and updates the "IVer" string value to "103." For backward compatibility, Internet Explorer 4.0 and later versions change or add the build value. For Internet Explorer 3.x, the build value is a string that contains the four-character build number. (For example, "1300" is the build value for Internet Explorer 3.02). For Internet Explorer 4.0 and later versions, the build value is a string that contains a five-character value, followed by a period and four more characters, in the following format:
If so, I think it does not apply after IE4. In which case, as all the machines on my domain are Windows 7 or Server 2008 installs, I don't think it's likely that they have such an old version installed.

Similar Messages

  • Another FPN Thread: Remote role assignment not working

    Hi all,
    We have successfully implemented FPN for use in our ESS and BW environment and we are experiencing very little problems with it. We now want to start implementing it for our eRecruitment and SRM systems (as producers). For some reason we are not able to use the Remote Role Assignement functionality.
    We have set up trust for the systems and use SSO.
    Connection test for the producer is successfull.
    We can see the Producer content in the pcd on the consumer.
    Server times are the same.
    As far as I know I have correctly set permissions on producer and consumer.
    Possible cause: We are in the process of upgrading our consumer Portal to NW 7.0 SPS15 and have encountered some problems. The system is partially upgraded, so some components are SP15 and some others are still SP13. This is currently under investigation by SAP. Can this be an issue as our producer portals all are still on SP13?
    I hope to hear from you soon. Please ask if you need any screenshots. Thanks in advance.
    Best regards,
    Jan Laros

    Hi Jan,
    if remote role assignment not works, you can also use remote delta links. I only work with remote delta links because i have more options   and a better performance.
    If your connection works you can go to Content Administration ->Portal Content-> NetWeaver-Content-Producer. Hier you can see your remote system. Now you can copy the role and add it to your portal-content.
    If you can not see the content make sure that you have the same user  on both sides also check the premissions on the portal-content of your remote system. To test the connection it is easier to add Everyone group to the content of your remote system.
    regards,
    Sharam

  • My home sharing and remote app does not work. How do I fix it? I am on a university network.

    My home sharing and remote app does not work.
    Here is my setup:
    Macbook 2009 running Mac OS X 10.6.8
    Itunes 10.6.1
    Ipod Touch 4th gen Mac OS X 5.1
    I am on a university secured network.

    Hi Charles, chinese may be difficult, see our resident language ecxpert, Tom's reply here...
    https://discussions.apple.com/message/20061347#20061347
    On the slowness...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?
    https://discussions.apple.com/servlet/JiveServlet/showImage/2-18666790-125104/AM Pageouts.jpg

  • Remote DVR will not work?

    I signed up for FIOS when it first came to my area. Verizon installed a basic Netgear router. I since upgraded to a wireless Netgear router about 4 years ago. We just upgraded our DVR to a Home Media and tried to turn on the remote DVR. But when I go to the web site it says remote DVR will not work without original Verizon router. I don't understand why it won't work. Is there a setting or something in the router to make it work or do I need a different router that Verizon has to provide? I am guessing the original router I had wouldn't work either because it is the same brand as the one I have now.

    Called and got a Westell router today. Got it all hooked up and internet and TV are working fine but I still can't activate remote DVR. The DVR has an access code listed, tells me to go to the website and sign in with my verizon.net id. I do and I still get the error remote DVR not possible with third party router. Any more help?

  • Remote desktop connection not working in windows 7 Pro x64 bit sp1 3389 port not working

    i have still facing same problem in last two week in my  system RDC not working . i have installed in my system windows 7 x64 bit Pro sp1 then i check 3389 port working or not  in my system use the command netstat -a -o command in
    command prompt but this is  my bad luck  its not woking in my machine after i have decide to change RDC listening port via registry  i have change it 3389 to 3391 after restart my system,  and
    after again testing using same command but no any change again rdc not listening . After i have  search this issue on search engine google bing and microsoft , i have found more solutions  but i have try one
    uninstalled two microsoft updates first is kb  KB2621440 second is KB2667402 and after again restart my system and again installed KB 2667402 But not change i have already enabled Remote Desktop connection in windows 7 and select the option
    any version computer running , i have try  three and four time enable  disable remote desktop connection in my machine . but not change i have all windows firewall disable and uninstalled anti virus they intalled in my machine , and using the Mcafee
    stinger tools to scan my machine to remove virus but stinger is not found any thread in system.  ihave already run this command in my system sfc /scannow  Please Can you help me to fix  this issue.

    Hi,
    When you try to start the Remote Destop Connection, what errors it showed out?
    Could the other PCs connect this PC with the RDC?
    So you have read this blog?
    RDP connections might fail due to a problem with KB2621440 - MS12-020
    Did you reinstalled the KB2621440?
    Besides, did you follow this guide to enable the RDC connection?
    Connect to another computer using Remote Desktop Connection
    And also this guide?
    Why can’t I connect using Remote Desktop Connection?
    Please take a check with those settings again.
    Best regards
    Michael Shao
    TechNet Community Support

  • Satego x200-21u - Remote and HDMI not work on Windows 7

    Hey
    I have a problem with win7 and the remote that was delivered with my notebook when i bought it
    I installed all drivers from the toshiba homepage for win7. I also installed some of the winvista driver, like the webcam- and the touchpad drivers.
    The only two things, not working are the remote and the HDMI-Sound output.
    my remote doesnt work with win7. and if i connect my notebook to my flat-tv via HDMI-Cable i only see the picture but hear no sound.
    I changed also the settings in the soundoptions in win7 from default to Digitalaudio (HDMI) but it doesnt work anyways..
    can someone tell me which drivers i need to install these two or what i have to do, to make my remote and the HDMI output work?
    thanks alot

    Hi mate,
    This is really strange to say because this notebook is a little bit older and therefore there is no official Windows 7 support I think...
    Do you have yellow exclamation marks in device manager at the moment?
    For HDMI I think chipset, display and sound driver should be installed. Maybe you can get one on the Intel page directly.
    Make also sure that the newest BIOS version is installed on your notebook.

  • Remote Desktop Connection not working

    I am able to remote desktop connect to my home computer from work; however, I can't remote desktop connect to my work comptuer and server. I believed it has something to do with my Linksys E3000 access point settings but I'm not sure where to look for and verify. I took my home laptop to work and able to do remote desktop connect to the server. I also took a laptop that's working fine with remote desktop connect to the server home and tried to remote desktop connect to the server at work and it's not working. Therefore, I've concluded that it has something to do with the access point and not the settings in the computer because it works fine when I took it out of my home network. I also VPNP in to my work place so that it has the same IP address as at work and still, remote desktop connection from home to work is not working. Any suggestion is much appreciated.

    thebluemamba_24 wrote:
    Connecting from home to your remote desktop server has nothing to do with your router. Certain ports are needed to be opened from the server’s end in order to host an application. Try to connect your computer to your modem or to another wireless network just to check if your work’s remote desktop will work. In case it will not work, then contact your IT guy.
    If you read my previous post it said:
    "I took my home laptop to work and able to do remote desktop connect to the server. I also took a laptop that's working fine with remote desktop connect to the server home and tried to remote desktop connect to the server at work and it's not working. Therefore, I've concluded that it has something to do with the access point and not the settings in the computer because it works fine when I took it out of my home network."
    I think my above statement answers your question of "Try to connect your computer to your modem or to another wireless network just to check if your work’s remote desktop will work." However, your statement prompts me think of something else. What I have tried is bring my laptop to work and tried connect via RDC to the server and it works but it just not working when trying at home. What I have not done is instead of brining my laptop to work and try RDC there, perhaps I should I try it on a friend's or relative's network and see if I can do RDC to my server at work. If this does not work as well, then, could it be that at work there is something something outside RDC coming? But even if this is so, why can't VPN work?

  • Remote access vpn not working, VPNC client

                       Hi,
    I have configured a remote access vpn client on cisco ASA 5520 with the following configuration. we are using cisco vpn client.
    tunnel-group consultant type remote-access
    tunnel-group consultant general-attributes
    address-pool VPN
    authentication-server-group RSA-AAA LOCAL
    default-group-policy consultant
    tunnel-group consultant ipsec-attributes
    pre-shared-key *
    group-policy consultant internal
    group-policy consultant attributes
    vpn-idle-timeout 120
    vpn-session-timeout 720
    vpn-tunnel-protocol IPSec
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value access-spilt
    access-list access-spilt standard permit host 10.101.50.60
    One of the linux users is using vpnc and once the user connects to the vpn and the user adds a static route on the machine with the destination pointing to the vpn interface, for example 10.101.50.0/24, user is able to reach all the hosts in the subnet even though the access list on the firewall is configured for one host 10.101.50.60.
    I did the same test on a windows machine, but was only able to reach the specific host allowed through vpn.  why is the network filter not working for vpnc. please advise.
    Thanks

    Hi have solved the issue . enabling the demo 3DES & AES now my VPN is connecting
    https://tools.cisco.com/SWIFT/LicensingUI/loadDemoLicensee?FormId=139
    thx to friend "Jennifer Halim"

  • Remote on Headphones not working...and it isn't fluff

    Hi,
    So today randomly the remote on my (latest Apple) headphones stopped working. As in it won't play, pause, skip, adjust the volume, or start voice control. I know it's not the "fluff" people on other threads have talked about swabbing out of your headphone jack because a) I tried that and b) the remote doesn't work on multiple devices I've use it with in the past. I don't know if this is related to the wire because I hear sound out of the right plug, but the remote on the right wire doesn't work. And this literally just happened today.
    I bought an iPod touch 4G last September w/ Apple Care, and then bought the remote headphones for $30 from apple in February. Does the AppleCare cover these, even if I didn't buy them with the iPod? (probably not, stupid question). Can I swap these for new ones after 7 1/2 months? I'm not paying $30 AGAIN because the remote feature just stopped working one day, in the middle of a bunch of days of normal usage. And that feature is the reason I went and spent the $30.
    Any suggestions? Any policy/warranty stuff? Anything will be appreciated since I use the play/pause/volume buttons pretty much every day.
    Thanks!
    Jake

    I would bring them into your local Apple Store/Genius Bar and demonstrate this issue to them.  The headphones should still be covered under the 1 year warranty against manufacturer defects meaning Apple should swap them out of for you.  Either way, a trip your local Apple Store would be your next best bet.
    B-rock

  • Remote video streaming not working with Windows Server Essentials Media Pack

    I installed Server Essentials Media Pack and the video streaming via remote access does not seem to be working. I see all the video files on the server's remotewebaccess page in "Media Library" group. When I try to play the video in Chrome
    the player appears for a brief moment, but then the browser starts downloading the entire file. With Internet Explorer the empty browser window opens and the download starts. I am trying it while outside of my local network. The video streaming used to work
    with Server 2012 Esesentials. Am I missing some additional codecs or remote streaming is no longer supported?

    Hi,
    What’s the default player for these media files on your computer? The issue may be caused by the default player could not load the media file correctly. Please make sure Windows Media Player
    with full codec installed is the default one. And then check if the media streaming feature could work as normal. Here is an article about how to configure the media streaming feature, hope it helps.
    Manage Digital Media in Windows Server 2012 Essentials
    http://technet.microsoft.com/en-us/library/jj628151.aspx
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • Keynote remote function does not work anymore

    I have updated my iphone 5s to iOS8 (8.0.2)
    I use mavericks OS X 10.9.5 on my macbook pro.
    Since i have updated my iphone, and KEYNOTE apps, I can't control my presentations with Iphone anymore .
    I tried with an Ipad and all works great but i can't link my phone to keynote on mac via network or bluetooth.
    Before upgrading my Iphone worked properly with this function.
    When i open Keynote-preferences---remote controls on my mac, i can see the Iphone listed, but with a yellow triangle and the button to link it does not work.
    anyone can help me ?
    thank you.
    Mauro

    thank you Gary,
    I guessed it too, but unfortunately i have something like this:
    It's not english, but maybe you can notice that the last device has not "RIMUOVI" (REMOVE) function, but just "ABBINA" (LINK)
    even if i push that button nothing happens and the little triangle persists.

  • Sky+ HD remote - certain buttons not working

    My remote has suddenly stopped working properly. the following buttons aren't working : TV guide, sky, select, i, and the directional buttons. pretty annoying so has anyone got an idea how to fix it please?

    IDoes the light on the remote or the box flash when you press any of the buttons you mentioned if not you may want to try resetting the remote.See below.
    As the title says how to reprogram Sky remotes (and reset them to factory defaults which can cure non operating remotes. All remotes have at least 8 different modes (HD have 12). Obviously standard remotes do not have the Sky+ function buttons but recordings can be played from the planner by highlighting and pressing "Select" twice and stopped by pressing "Backup" - no pause, FF, Rewind or Record buttons (but recordings can be set from pressing "record" on the box.
    For most remotes Version 4 and later (white label inside battery cover)
    1 Press "TV"
    2 Press and hold "Select" and "Yellow" together until red led in remote end flashes twice (On HD remotes "Select" and "i" together) - if it doesn't flash twice then remote cannot be reprogrammed (clone or too old)
    3 Press "0" to operate standard box, "1" for Sky+ and on HD remotes "2" for HD - remotes in Sky+ mode will normally control HD boxes as well
    4 Press "Select" - red led should flash twice
    5 Press "Sky" and away you go
    Any remote in Sky+ mode will also operate HD boxes BUT this can be stopped in some remote and box combinations in the following way (it certainly works on Amstrad DRX890) boxes but NOT Thomson HD boxes)
    1 Press "TV"
    2 Press and hold "Select" and "Blue" together until red led in remote end flashes twice - if it doesn't flash twice then remote cannot be reprogrammed (clone or too old)
    3 Press "1"- There are 4 different modes here 0, 1, 2, 3
    4 Press "Select" - red led should flash twice
    5 Press "Sky" and away you go
    In above to return remote to operating both in step 3 press "0"

  • SCCM 2012 - Hardware Inventory Registry Import not working - Windows in the name of the Registry key

    I downloaded the Reg to MOF tool and compiled some of our custom Registry Keys which worked fine. There was particular Key that didn't work and after some testing and messing around I realized why it isn't working:
    The key I am using is: HKLM\Software\MyCompanyWindows
    Because the key has the name Windows in it, it fails to import. I get the generic check the formatting for your MOF file error.
    The MOF file you tried to import could not be compiled. Ensure that the MOF file contains valid data. You can use the command line mofcomp utility to test the data.
    But if I run a MOFCOMP against the MOF I am trying to import it checks the syntax successfully.
    If I change the key to MyCompanyWin or MyCompanyW it imports with no problem.
    We have rolled out this key to almost every device in our organization and connected it to other inventory agents so there is no possibility of changing the key.
    Is there any way to disable the validation check that SCCM is performing?

    Hi,
    If possible, could you please upload the MOF file to SkyDrive?
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT1947 The Remote app does not work with my McBook Air !!!!

    I have tried several time - but the REMOTE app does not seem to work with Mac Book Air.
    Any help ?
    Any comments?

    why ask in the appletv forum rather then the forum for macbook air or whatever ios device you are running the remote app on?

  • I was using my apple tv remote but its not working. I tried everything selected different input unplugging the apple tv but still no signal. I can't update bec its blank what am i going to do Please help just purchased this item maybe 3-4 mos ago

    Can someone please help me Apple tv is not working.  There is no signal, i trIed pressing the left and right button and used different hdmi input unplugged the device still not working.  I just purchased it maybe 3-4 months ago

    You might want to try asking in the correct forum. This forum is for iPhones being used in an enterprise environment.

Maybe you are looking for