Skip to content

Instantly share code, notes, and snippets.

@OCram85
Created March 27, 2017 08:29
Show Gist options
  • Save OCram85/289040456238b4da555c2e053148398e to your computer and use it in GitHub Desktop.
Save OCram85/289040456238b4da555c2e053148398e to your computer and use it in GitHub Desktop.
ETS Question Details
$Res.PSObject.TypeNames.Insert(0,'Sparc.whoami')
Write-Output $Res
<Types>
<Type>
<Name>Sparc.whoami</Name>
<Members>
<NoteProperty>
<Name>Image</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>Phid</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>PrimaryEmail</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>RealName</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>Roles</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>URI</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>UserName</Name>
<Value>$Null</Value>
</NoteProperty>
<NoteProperty>
<Name>Foobar</Name>
<ScriptBlock>$Null</ScriptBlock>
</NoteProperty>
</Members>
</Type>
</Types>
<?xml version="1.0"?>
<Configuration>
<ViewDefinitions>
<View>
<Name>Sparc.whoami</Name>
<ViewSelectedBy>
<TypeName>Sparc.whoami</TypeName>
</ViewSelectedBy>
<TableControl>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>UserName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>RealName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PHID</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment