Xbps.Types.ps1xml
<Types>
<Type> <Name>XDevkit.XboxConsoleClass</Name> <Members> <ScriptProperty> <Name>DebugIpAddress</Name> <GetScriptBlock> ($this.IPAddress -as [IPAddress]).GetAddressBytes()[-1..-4] -as [Byte[]] -as [IPAddress] </GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>TitleIpAddress</Name> <GetScriptBlock> ($this.IPAddressTitle -as [IPAddress]).GetAddressBytes()[-1..-4] -as [Byte[]] -as [IPAddress] </GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>ProcessName</Name> <GetScriptBlock> $programName = $this.RunningProcessInfo.ProgramName $programName = $programName.Substring($programName.LastIndexOf("\") + 1) $programName.Substring(0, $programName.LastIndexOf(".")) </GetScriptBlock> </ScriptProperty> </Members> </Type> </Types> |