

OpenRemoteBaseKey will use the implicit credentials of the running user, establishing the connection using IPC If you need to prompt and use single creds, then you'll need to define those outside the foreach loop. When youre manipulating data that you already. I tried to google to get some insight of this, But I did not find information (Apart from some. In general terms, you need to provide the credentials any time youre doing a data pull from the remote machine. I know this method is used to query the remote system registry. I'm also not clear on exactly where to specify which users are allowed to access the registry remotely. I'd like to be able to supply a set of credentials to use for the remote registry access, but I can find no documentation anywhere of a way to do this. When I run the OpenRemoteBaseKey Command on my Laptop with Credentials of the Domain Admin I can successfully read the registry of Remote Systems. Anything installed by another method (like exe) will not show up here.

Also, this will only retreive MSI installed applications. The first thing you will notice about this method, is that it takes a very long time to populate the list.

At 32ErrorStatic(Int32 errorCode, String str) at (RegistryHive hKey, String machineName) It seems pretty clear that this is because the user I'm running the powershell script as doesn't have the appropriate credentials to access the remote registry. But I am running the remote Session to machine 1 with Credentials of a Domain Administrator, so it should connect to every system the same way. The most common method that I have seen is a simple WMI query to the WinProduct class. I'm attempting to use powershell to access a remote registry like so: $reg = ::OpenRemoteBaseKey('LocalMachine', $server) $key = $reg.OpenSubkey($subkeyPath) Depending on some factors that I'm not yet able to determine I either get Exception calling 'OpenSubKey' with '1' argument(s): 'Requested registry access is not allowed.' Or System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
