formats/psautolabsetting.format.ps1xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="UTF-8"?>
<!--
Format type data generated 12/02/2020 13:45:47 by PROSPERO\Jeff
 
This file was created using the New-PSFormatXML command that is part
of the PSScriptTools module.
https://github.com/jdhitsolutions/PSScriptTools
-->
<Configuration>
  <ViewDefinitions>
    <View>
      <!--Created 12/02/2020 13:45:47 by PROSPERO\Jeff-->
      <Name>default</Name>
      <ViewSelectedBy>
        <TypeName>PSAutoLabSetting</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>AutoLab</Label>
                <PropertyName>AutoLab</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PSVersion</Label>
                <PropertyName>PSVersion</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PSEdition</Label>
                <ScriptBlock>
                  if ($_.PSEdition -ne 'Desktop') {
                    "$([char]0x1b)[91m$($_.PSEdition)$([char]0x1b)[0m"
                  }
                  else {
                    $_.PSEdition
                  }
                    </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>OS</Label>
                <PropertyName>OS</PropertyName>
              </ListItem>
              <ListItem>
                <Label>FreeSpaceGB</Label>
                <ScriptBlock>
                  if ($_.FreeSpaceGB -ge 100) {
                      "$([char]0x1b)[92m$($_.FreeSpaceGB)$([char]0x1b)[0m"
                  }
                  elseif ($_.FreeSpaceGB -ge 50) {
                      "$([char]0x1b)[93m$($_.FreeSpaceGB)$([char]0x1b)[0m"
                  }
                  else {
                    "$([char]0x1b)[91m$($_.FreeSpaceGB)$([char]0x1b)[0m"
                  }
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>MemoryGB</Label>
                <ScriptBlock>
                  if ($_.MemoryGB -ge 16) {
                      "$([char]0x1b)[92m$($_.MemoryGB)$([char]0x1b)[0m"
                  }
                  elseif ($_.MemoryGB -ge 12) {
                      "$([char]0x1b)[93m$($_.FreeSpaceGB)$([char]0x1b)[0m"
                  }
                  else {
                    "$([char]0x1b)[91m$($_.MemoryGB)$([char]0x1b)[0m"
                  }
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>PctFreeMemory</Label>
                <PropertyName>PctFreeMemory</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Processor</Label>
                <PropertyName>Processor</PropertyName>
              </ListItem>
              <ListItem>
                <Label>IsElevated</Label>
                <ScriptBlock>
                  if ($_.IsElevated) {
                    "$([char]0x1b)[92m$($_.IsElevated)$([char]0x1b)[0m"
                  }
                  else {
                  "$([char]0x1b)[91m$($_.IsElevated)$([char]0x1b)[0m"
                  }
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>RemotingEnabled</Label>
                <ScriptBlock>
                  if ($_.RemotingEnabled) {
                    "$([char]0x1b)[92m$($_.RemotingEnabled)$([char]0x1b)[0m"
                  }
                  else {
                  "$([char]0x1b)[91m$($_.RemotingEnabled)$([char]0x1b)[0m"
                  }
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>NetConnectionProfile</Label>
                <ScriptBlock>
                  if ($_.NetConnectionProfile -match 'Public|unknown') {
                    "$([char]0x1b)[91m$($_.NetConnectionProfile)$([char]0x1b)[0m"
                  }
                  else {
                    "$([char]0x1b)[92m$($_.NetConnectionProfile)$([char]0x1b)[0m"
                  }
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>HyperV</Label>
                <PropertyName>HyperV</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PSAutolab</Label>
                <PropertyName>PSAutolab</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Lability</Label>
                <PropertyName>Lability</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Pester</Label>
                <PropertyName>Pester</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PowerShellGet</Label>
                <PropertyName>PowerShellGet</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PSDesiredStateConfiguration</Label>
                <PropertyName>PSDesiredStateConfiguration</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
  </ViewDefinitions>
</Configuration>