1"use strict";(self.webpackChunkgetps_dev=self.webpackChunkgetps_dev||[]).push([["1671"],{7523(e,r,n){n.r(r),n.d(r,{metadata:()=>i,default:()=>m,frontMatter:()=>a,contentTitle:()=>s,toc:()=>c,assets:()=>o});var i=JSON.parse('{"id":"PSDev/Command Reference/Convert-Object","title":"Convert-Object","description":"Help page for the Powershell \\"Convert-Object\\" command","source":"@site/modules/PSDev/03-Command Reference/Convert-Object.mdx","sourceDirName":"PSDev/03-Command Reference","slug":"/PSDev/Command Reference/Convert-Object","permalink":"/modules/PSDev/Command Reference/Convert-Object","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"Convert-Object","title":"Convert-Object","description":"Help page for the Powershell \\"Convert-Object\\" command","keywords":["Powershell","PSDev","Help","Documentation"],"hide_title":false,"hide_table_of_contents":false},"sidebar":"defaultSidebar","previous":{"title":"Convert-Metric","permalink":"/modules/PSDev/Command Reference/Convert-Metric"},"next":{"title":"Debug-String","permalink":"/modules/PSDev/Command Reference/Debug-String"}}'),t=n(74848),l=n(28453);let a={id:"Convert-Object",title:"Convert-Object",description:'Help page for the Powershell "Convert-Object" command',keywords:["Powershell","PSDev","Help","Documentation"],hide_title:!1,hide_table_of_contents:!1},s,o={},c=[{value:"SYNOPSIS",id:"synopsis",level:2},{value:"SYNTAX",id:"syntax",level:2},{value:"FromString (Default)",id:"fromstring-default",level:3},{value:"FromBase64String",id:"frombase64string",level:3},{value:"FromByteArray",id:"frombytearray",level:3},{value:"FromCharArray",id:"fromchararray",level:3},{value:"FromGUID",id:"fromguid",level:3},{value:"FromHexStringArray",id:"fromhexstringarray",level:3},{value:"FromHexString",id:"fromhexstring",level:3},{value:"FromSecureString",id:"fromsecurestring",level:3},{value:"FromSecureStringObject",id:"fromsecurestringobject",level:3},{value:"FromBinaryStringArray",id:"frombinarystringarray",level:3},{value:"FromBigInteger",id:"frombiginteger",level:3},{value:"FromInt64",id:"fromint64",level:3},{value:"FromIPAddressString",id:"fromipaddressstring",level:3},{value:"FromScriptBlock",id:"fromscriptblock",level:3},{value:"FromByteCollection",id:"frombytecollection",level:3},{value:"DESCRIPTION",id:"description",level:2},{value:"EXAMPLES",id:"examples",level:2},{value:"EXAMPLE 1",id:"example-1",level:3},{value:"PARAMETERS",id:"parameters",level:2},{value:"-FromBase64String",id:"-frombase64string",level:3},{value:"-FromBigInteger",id:"-frombiginteger",level:3},{value:"-FromBinaryStringArray",id:"-frombinarystringarray",level:3},{value:"-FromByteArray",id:"-frombytearray",level:3},{value:"-FromByteCollection",id:"-frombytecollection",level:3},{value:"-FromCharArray",id:"-fromchararray",level:3},{value:"-FromGUID",id:"-fromguid",level:3},{value:"-FromHexString",id:"-fromhexstring",level:3},{value:"-FromHexStringArray",id:"-fromhexstringarray",level:3},{value:"-FromInt64",id:"-fromint64",level:3},{value:"-FromIPAddressString",id:"-fromipaddressstring",level:3},{value:"-FromScriptBlock",id:"-fromscriptblock",level:3},{value:"-FromSecureString",id:"-fromsecurestring",level:3},{value:"-FromSecureStringObject",id:"-fromsecurestringobject",level:3},{value:"-FromString",id:"-fromstring",level:3},{value:"-ProgressAction",id:"-progressaction",level:3},{value:"-Property",id:"-property",level:3},{value:"CommonParameters",id:"commonparameters",level:3},{value:"INPUTS",id:"inputs",level:2},{value:"OUTPUTS",id:"outputs",level:2},{value:"NOTES",id:"notes",level:2},{value:"RELATED LINKS",id:"related-links",level:2},{value:"EDIT THIS DOC",id:"edit-this-doc",level:2}];function d(e){let r={a:"a",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,l.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h2,{id:"synopsis",children:"SYNOPSIS"}),"\n",(0,t.jsx)(r.h2,{id:"syntax",children:"SYNTAX"}),"\n",(0,t.jsx)(r.h3,{id:"fromstring-default",children:"FromString (Default)"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromString <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"frombase64string",children:"FromBase64String"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromBase64String <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"frombytearray",children:"FromByteArray"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromByteArray <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromchararray",children:"FromCharArray"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromCharArray <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromguid",children:"FromGUID"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromGUID <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromhexstringarray",children:"FromHexStringArray"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromHexStringArray <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromhexstring",children:"FromHexString"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromHexString <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromsecurestring",children:"FromSecureStr
1ing"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromSecureString <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromsecurestringobject",children:"FromSecureStringObject"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromSecureStringObject <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"frombinarystringarray",children:"FromBinaryStringArray"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromBinaryStringArray <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"frombiginteger",children:"FromBigInteger"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromBigInteger <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromint64",children:"FromInt64"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromInt64 <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromipaddressstring",children:"FromIPAddressString"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromIPAddressString <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"fromscriptblock",children:"FromScriptBlock"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromScriptBlock <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h3,{id:"frombytecollection",children:"FromByteCollection"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Convert-Object [-ProgressAction <ActionPreference>] [-Property <String>] -FromByteCollection <Object>\n [<CommonParameters>]\n"})}),"\n",(0,t.jsx)(r.h2,{id:"description",children:"DESCRIPTION"}),"\n",(0,t.jsx)(r.p,{children:"Function that converts a specific input value to a number of output formats.\nThis\nis a function that allows shortcuts of already existing powershell/.net features.\nAll conversions are made with an intermediate conversion to byte[]."}),"\n",(0,t.jsx)(r.h2,{id:"examples",children:"EXAMPLES"}),"\n",(0,t.jsx)(r.h3,{id:"example-1",children:"EXAMPLE 1"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-powershell",children:"Code\nDescription\n"})}),"\n",(0,t.jsx)(r.h2,{id:"parameters",children:"PARAMETERS"}),"\n",(0,t.jsx)(r.h3,{id:"-frombase64string",children:"-FromBase64String"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromBase64String Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromBase64String\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-frombiginteger",children:"-FromBigInteger"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromBigInteger Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromBigInteger\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-frombinarystringarray",children:"-FromBinaryStringArray"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromBinaryStringArray Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromBinaryStringArray\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-frombytearray",children:"-FromByteArray"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromByteArray Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromByteArray\nAliases:\n\nRequired: True\
1nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-frombytecollection",children:"-FromByteCollection"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromByteCollection Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromByteCollection\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromchararray",children:"-FromCharArray"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromCharArray Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromCharArray\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromguid",children:"-FromGUID"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromGUID Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromGUID\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromhexstring",children:"-FromHexString"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromHexString Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromHexString\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromhexstringarray",children:"-FromHexStringArray"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromHexStringArray Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromHexStringArray\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromint64",children:"-FromInt64"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromInt64 Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromInt64\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromipaddressstring",children:"-FromIPAddressString"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromIPAddressString Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromIPAddressString\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromscriptblock",children:"-FromScriptBlock"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromScriptBlock Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromScriptBlock\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromsecurestring",children:"-FromSecureString"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromSecureString Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromSecureString\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromsecurestringobject",children:"-FromSecureStringObject"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromSecureStringObject Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromSecureStr
1ingObject\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-fromstring",children:"-FromString"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill FromString Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: Object\nParameter Sets: FromString\nAliases:\n\nRequired: True\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-progressaction",children:"-ProgressAction"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill ProgressAction Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: ActionPreference\nParameter Sets: (All)\nAliases: proga\n\nRequired: False\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"-property",children:"-Property"}),"\n",(0,t.jsx)(r.p,{children:"{{ Fill Property Description }}"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-yaml",children:"Type: String\nParameter Sets: (All)\nAliases: Properties\n\nRequired: False\nPosition: Named\nDefault value: None\nAccept pipeline input: False\nAccept wildcard characters: False\n"})}),"\n",(0,t.jsx)(r.h3,{id:"commonparameters",children:"CommonParameters"}),"\n",(0,t.jsxs)(r.p,{children:["This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see ",(0,t.jsx)(r.a,{href:"http://go.microsoft.com/fwlink/?LinkID=113216",children:"about_CommonParameters"}),"."]}),"\n",(0,t.jsx)(r.h2,{id:"inputs",children:"INPUTS"}),"\n",(0,t.jsx)(r.h2,{id:"outputs",children:"OUTPUTS"}),"\n",(0,t.jsx)(r.h2,{id:"notes",children:"NOTES"}),"\n",(0,t.jsx)(r.h2,{id:"related-links",children:"RELATED LINKS"}),"\n",(0,t.jsx)(r.h2,{id:"edit-this-doc",children:"EDIT THIS DOC"}),"\n",(0,t.jsxs)(r.p,{children:["This page was auto-generated from the powershell command comment based help. To edit the content of this page, update the script file comment based help on github ",(0,t.jsx)(r.a,{href:"https://github.com/hanpq/PSDev",children:"Github"})]})]})}function m(e={}){let{wrapper:r}={...(0,l.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},28453(e,r,n){n.d(r,{R:()=>a,x:()=>s});var i=n(96540);let t={},l=i.createContext(t);function a(e){let r=i.useContext(l);return i.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function s(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(l.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.