![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Registry and data types Can I only create REG_SZ data types from PowerShell while using the registry provider? I can't seem to determine whether one can create a REG_MULTI_SZ data type, for example. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
| | #2 (permalink) | ||||||||||||
| Guest | Re: Registry and data types It depeneds on the -value value you supply: # creates REG_SZ New-ItemProperty -Name StringValue -Value 1 -Path HKCU:\Software # creates REG_MULTI_SZ New-ItemProperty -Name MultipleStringValue -Value ([string[]]("Power","Shell")) -Path HKCU:\Software # creates REG_BINARY New-ItemProperty -Name BinaryValue -Value ([byte[]](1,2,3,4)) -Path HKCU:\Software Check this: http://scriptolog.blogspot.com/2007/...s-library.html ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic
| ||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||||||||||||||
| Guest | Re: Registry and data types I knew I had this information somewhere: PS C:\> $reg.SetMultiStringValue($HKCU,"PowerShellTFM\Key1\Key2",`
TFM to include a lot more on the StdReg WMI provider. -- Jeffery Hicks Microsoft PowerShell MVP http://www.scriptinganswers.com http://www.powershellcommunity.org Now Available: WSH and VBScript Core: TFM Coming Soon: Windows PowerShell: TFM 2nd Ed. "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:O921xLUTIHA.5400@xxxxxx
| ||||||||||||||||||||||||||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add to DevicePath Data in registry | chris | .NET General | 0 | 04-09-2008 12:24 PM |
| could not update registry data? | =?Utf-8?B?SG93IGNhbiBJIGluc3RhbGwgdmlzdGE/?= | Vista General | 3 | 09-09-2006 02:14 PM |
| could not update registry data? | =?Utf-8?B?SG93IGNhbiBJIGluc3RhbGwgdmlzdGE/?= | Vista General | 0 | 09-09-2006 12:47 PM |
| could not update registry data? | =?Utf-8?B?SG93IGNhbiBJIGluc3RhbGwgdmlzdGE/?= | Vista General | 0 | 09-09-2006 12:47 PM |