merge reg file on a remote machine


i need merge reg file on remote windows 7 machine in ps. has ever done this?

hi,

sure, can this. here's 2 examples:

ps c:\> enter-pssession win8  [win8]: ps c:\> test-path hklm:\software\test false  [win8]: ps c:\> reg import c:\temp\reg.reg reg : operation completed successfully.     + categoryinfo          : notspecified: (the operation completed successfully.:string) [], remoteexception     + fullyqualifiederrorid : nativecommanderror    [win8]: ps c:\> test-path hklm:\software\test true    ps c:\> enter-pssession win8  [win8]: ps c:\> test-path hklm:\software\test false  [win8]: ps c:\> exit  ps c:\> invoke-command -computername win8 -scriptblock {reg import c:\temp\reg.reg} operation completed successfully.     + categoryinfo          : notspecified: (the operation completed successfully.:string) [], remoteexception     + fullyqualifiederrorid : nativecommanderror     + pscomputername        : win8   notspecified: (:) [], remoteexception  ps c:\> enter-pssession win8  [win8]: ps c:\> test-path hklm:\software\test true

i don't know reason why success message presented error. i've included bunch of unnecessary test-path lines show key created though.


don't retire technet! - (don't give yet - 12,950+ strong , growing)



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client