1
원격 컴퓨터에서 레지스트리 값을 가져 오려고했지만 시도한 모든 것이 작동하지 않았습니다.원격 레지스트리 쿼리
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", "APPS-EUAUTO1")
$key = $reg.OpenSubkey('SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion')
Write-Host $key.GetValue('InstallDate')
은 내가
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
"
At C:\Users\User\Desktop\test.ps1:1 char:1
+ $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", "APPS-EU ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : IOException
내가 아는 얻을 : 나는 실행할 때
두 시스템은 윈도우 7의 x64를 실행하는, 그들은 같은 도메인, 방화벽 해제 4.0
PowerShell을하다 닷넷과 나는 지난 달 PowerShell 만 사용했다. 또한 모듈 PSRemoteRegistry을 시도하고 내가 가져-RegValue을 사용하고 때 나는 당신이 APPS-EUAUTO1
를 Ping 할 수 있습니다 (그리고 IP를 해결하려면 해결) 가정
예, _Remote Registry_ service를 시작했습니다. 이 서비스를 원격으로 시작할 수있는 방법이 있습니까? – Ionut
명령 프롬프트'sc \\ APPS-EUAUTO1 start "RemoteRegistry" – Ionut
에서 WinRM을 사용할 수있는 방법을 찾았 기 때문에 PowerShell과 관련이 있습니다 (http://technet.microsoft.com/en-us/magazine). /ff700227.aspx)'invoke-command -computerName APPS-EUAUTO1 -scriptBlock {start-service RemoteRegistry}'를 실행할 수 있습니다. 원격 WMI를 사용하려면 _Remote Registry_가 필요합니다. PSExec은 다른 (Powershell이 아닌) 솔루션이 될 수 있습니다. – Raf