There is a type mismatch, or its getting cast to a string as a result of the 
way i incorrectly call it:

$path="Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
 Settings\Connections"
$path2="Registry::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
 Settings\Connections"

$foo=Get-ItemProperty -Path $path -Name DefaultConnectionSettings
Set-ItemProperty -Path $path2 -Name DefaultConnectionSettings -Value $foo

See what I am doing wrong?
jlc
________________________________________
From: Brian Desmond [[email protected]]
Sent: Monday, March 26, 2012 6:40 PM
To: NT System Admin Issues
Subject: RE: Powershell reg binary issue

You could just put it in $foo or some variable. No need to dump it to a temp 
file.

Thanks,
Brian Desmond
[email protected]

w - 312.625.1438 | c   - 312.731.3132


-----Original Message-----
From: Michael B. Smith [mailto:[email protected]]
Sent: Monday, March 26, 2012 7:16 PM
To: NT System Admin Issues
Subject: RE: Powershell reg binary issue

Out-file -encoding binary

Or similar.

-----Original Message-----
From: Joseph L. Casale [mailto:[email protected]]
Sent: Monday, March 26, 2012 8:01 PM
To: NT System Admin Issues
Subject: Powershell reg binary issue

I am trying to save the result of a Reg Binary value from one key into the 
value of another key, any idea on how to save the output of get-itemproperty or 
pipe it into set-itemproperty for use with reg binary values?

Thanks!
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ 
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ 
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin




~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to