remote-registry

How can I use PowerShell to make remote registry changes?

帅比萌擦擦* 提交于 2020-01-10 05:29:05
问题 I have tested the following PowerShell registry settings and it sets them correctly. Could someone show me the way to do this for a remote computer? New-Item -itemType String HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration\Server0ps -Value "MY.DOMAIN.COM" New-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers -Name 1 -Value "whatever" Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities -Name

How to access registry of a remote machine in Inno Setup

*爱你&永不变心* 提交于 2020-01-03 04:55:07
问题 I have Inno Setup installers that I use to update computers at customer sites. Generally there are two computers, but sometimes three or more. All are networked, and exactly one is headless. It is relatively easy to run the installer on all the headed (if that's the opposite of headless?) workstations, thus running all tasks associated with those computers. There are also tasks that need to be performed on the headless workstation. Generally, these are quick, simple tasks (copying small files

How to call a method with output parameters in PowerShell?

假装没事ソ 提交于 2019-12-18 18:48:50
问题 I'm working on a script to get started in PowerShell. I'm trying to convert a working VBScript script that enumerates mapped network drives on a remote Windows computer. One of the tasks is to use remote WMI to read the registry and find the process owner of explorer.exe in order to determine who is logged in. This seems easy enough going by this guide. However, the WMI method I need to call is GetOwner() from Win32_Process, which requires two output parameters to store its return value. How

Create a remote private registry

二次信任 提交于 2019-12-12 04:03:01
问题 We are fairly new to docker but have been able to install docker on CentOS 6.4, created images, generated containers, and even created a private local registry. Our question is in regards to the local registry. Well... actually... regarding a remote registry. We want to be able to create the registry on a separate server and not have everything in one place. We installed docker on another VM and have it running, but have had trouble finding documentation on how to access the registry remotely

Remote Powershell to retrieve specific registry value from lots of servers

浪尽此生 提交于 2019-12-12 03:16:59
问题 I have the following.. $output = @() $servers =Get-Content "C:\Windows\System32\List3.txt" foreach ($server in $servers) { trap [Exception] {continue} Import-Module PSRemoteRegistry $key="SOFTWARE\Microsoft\'Microsoft Antimalware'\'Signature Updates'" $regkey=Get-RegBinary -ComputerName $server -Key $Key -Value SignatuesLastUpdated #$regkey=(Get-Item HKLM:\SOFTWARE\Microsoft\'Microsoft Antimalware'\'Signature Updates').getValue('SignaturesLastUpdated') #$regkey=[datetime]::ParseExact("01/02

Powershell Job Always Shows Complete

烂漫一生 提交于 2019-12-11 23:45:58
问题 I just started working with powershell about 3 days ago and i've been trying to make a script that accesses the registry of a remote computer and looks for a certain key and puts the output into the file. I have been able to get it to work but i noticed that if it fails to reach the registry it would take about 15 seconds to error out and continue with the script so i put this in: $Server = "test.contesto.net" $Job = Start-Job ScriptBlock{[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(

Attempting to export remote registry hive with PowerShell

天大地大妈咪最大 提交于 2019-12-10 11:41:12
问题 I need to export registry keys from a remote computer for import into other remote machines (copy) using PowerShell V3.0. When I use REG QUERY to view the registry keys thus: reg query \\[computername]\HKLM\[subkey] /s | Out-File -append .\export.log all subkeys are recursively output to export.log as expected. However, when using REG SAVE to actually save a copy of the registry (in order to use REG RESTORE to import keys into target computers): reg save \\[computername]\HKLM\[subkey] .

Attempting to export remote registry hive with PowerShell

ⅰ亾dé卋堺 提交于 2019-12-06 22:36:26
I need to export registry keys from a remote computer for import into other remote machines (copy) using PowerShell V3.0. When I use REG QUERY to view the registry keys thus: reg query \\[computername]\HKLM\[subkey] /s | Out-File -append .\export.log all subkeys are recursively output to export.log as expected. However, when using REG SAVE to actually save a copy of the registry (in order to use REG RESTORE to import keys into target computers): reg save \\[computername]\HKLM\[subkey] .\export.hiv I am encountering the following error: "ERROR: The system was unable to find the specified

Remote Registry

北慕城南 提交于 2019-12-02 18:03:21
问题 I know this has been talked about a few times about remote registry access, but I cannot find any good examples on how to implement this. I did find http://www.codeproject.com/KB/cs/cpimpersonation1.aspx which seems to have code that will do what I want, however, this seems to be connecting to the same PC where the app is running from. What I want is to connect to remote PC in a different domain. I have been doing some reading but cannot figure out how to modify this code to do so. Any help

Why does the handheld device ignore the “FileSyncPath” Registry key's value?

∥☆過路亽.° 提交于 2019-12-02 03:49:16
问题 We don't want file syncing between our handheld device and the PC. The handheld device puts certain (SQL CE database) files in the \My Documents folder on the handheld. These are, in particular, the files we don't want synced to the PC. I first added "sdf" (and "SDF" just to be sure) to the "ExcludeExts" registry key. That didn't help. I then changed the "FileSyncPath" and "NoSubfolderIn" registry keys from the "My Documents" folder to the "profiles" folder: private void UpdateRegistry() {