Skip to content

Commit 04646ef

Browse files
committed
7.9.2 release
1 parent 6922b32 commit 04646ef

14 files changed

Lines changed: 781 additions & 53 deletions

Documentation/New-LMDeviceDatasourceInstanceSDT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ Accept wildcard characters: False
112112
```
113113
114114
### -Timezone
115-
Specifies the IANA timezone for SDTs.
115+
Specifies the timezone for SDTs.
116+
Accepts IANA timezone IDs (e.g.
117+
America/New_York), Windows standard names (e.g.
118+
Eastern Standard Time), or the output of (Get-TimeZone).StandardName.
116119
If omitted, the portal timezone is used.
117120
118121
```yaml

Documentation/New-LMDeviceDatasourceSDT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ Accept wildcard characters: False
127127
```
128128
129129
### -Timezone
130-
Specifies the IANA timezone for SDTs.
130+
Specifies the timezone for SDTs.
131+
Accepts IANA timezone IDs (e.g.
132+
America/New_York), Windows standard names (e.g.
133+
Eastern Standard Time), or the output of (Get-TimeZone).StandardName.
131134
If omitted, the portal timezone is used.
132135
133136
```yaml

Documentation/New-LMDeviceGroupSDT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ Accept wildcard characters: False
143143
```
144144
145145
### -Timezone
146-
Specifies the IANA timezone for SDTs.
146+
Specifies the timezone for SDTs.
147+
Accepts IANA timezone IDs (e.g.
148+
America/New_York), Windows standard names (e.g.
149+
Eastern Standard Time), or the output of (Get-TimeZone).StandardName.
147150
If omitted, the portal timezone is used.
148151
149152
```yaml

Documentation/New-LMDeviceSDT.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@ New-LMDeviceSDT -Comment "Maintenance window" -StartDate "2022-01-01 00:00:00" -
9292
Creates a one-time SDT for the device with ID "12345".
9393
```
9494

95+
### EXAMPLE 2
96+
```
97+
New-LMDeviceSDT -Comment "Maintenance window" -StartDate (Get-Date).AddHours(1) -EndDate (Get-Date).AddHours(3) -DeviceName "server01" -Timezone "Eastern Standard Time"
98+
Creates a one-time SDT using a Windows standard timezone name.
99+
```
100+
101+
### EXAMPLE 3
102+
```
103+
New-LMDeviceSDT -Comment "Maintenance window" -StartDate (Get-Date).AddHours(1) -EndDate (Get-Date).AddHours(3) -DeviceName "server01" -Timezone (Get-TimeZone).StandardName
104+
Creates a one-time SDT using the local machine's timezone via Get-TimeZone.
105+
```
106+
95107
## PARAMETERS
96108

97109
### -Comment
@@ -142,7 +154,10 @@ Accept wildcard characters: False
142154
```
143155
144156
### -Timezone
145-
Specifies the IANA timezone for SDTs.
157+
Specifies the timezone for SDTs.
158+
Accepts IANA timezone IDs (e.g.
159+
America/New_York), Windows standard names (e.g.
160+
Eastern Standard Time), or the output of (Get-TimeZone).StandardName.
146161
If omitted, the portal timezone is used.
147162
148163
```yaml

Documentation/Set-LMSDT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ Accept wildcard characters: False
9999
```
100100
101101
### -Timezone
102-
Specifies the IANA timezone for SDTs.
102+
Specifies the timezone for SDTs.
103+
Accepts IANA timezone IDs (e.g.
104+
America/New_York), Windows standard names (e.g.
105+
Eastern Standard Time), or the output of (Get-TimeZone).StandardName.
103106
For one-time date conversion, if omitted, the portal timezone is used.
104107
105108
```yaml

Private/ConvertTo-LMSDTEpochMillis.ps1

Lines changed: 538 additions & 5 deletions
Large diffs are not rendered by default.

Public/New-LMDeviceDatasourceInstanceSDT.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Specifies the start date for the new instance SDT. This parameter is mandatory w
1515
Specifies the end date for the new instance SDT. This parameter is mandatory when using the 'OneTime' parameter set.
1616
1717
.PARAMETER Timezone
18-
Specifies the IANA timezone for SDTs. If omitted, the portal timezone is used.
18+
Specifies the timezone for SDTs. Accepts IANA timezone IDs (e.g. America/New_York), Windows standard names (e.g. Eastern Standard Time), or the output of (Get-TimeZone).StandardName. If omitted, the portal timezone is used.
1919
2020
.PARAMETER StartHour
2121
Specifies the start hour for the new instance SDT. This parameter is mandatory when using the 'Daily', 'Monthly', 'MonthlyByWeek', or 'Weekly' parameter sets. The value must be between 0 and 23.

Public/New-LMDeviceDatasourceSDT.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The start date for the SDT. This parameter is mandatory when using the 'OneTime'
1515
The end date for the SDT. This parameter is mandatory when using the 'OneTime' parameter set.
1616
1717
.PARAMETER Timezone
18-
Specifies the IANA timezone for SDTs. If omitted, the portal timezone is used.
18+
Specifies the timezone for SDTs. Accepts IANA timezone IDs (e.g. America/New_York), Windows standard names (e.g. Eastern Standard Time), or the output of (Get-TimeZone).StandardName. If omitted, the portal timezone is used.
1919
2020
.PARAMETER StartHour
2121
The start hour for the SDT. This parameter is mandatory when using the 'Daily', 'Monthly', 'MonthlyByWeek', or 'Weekly' parameter sets. Must be a value between 0 and 23.

Public/New-LMDeviceGroupSDT.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Specifies the start date and time for the scheduled downtime. This parameter is
1515
Specifies the end date and time for the scheduled downtime. This parameter is mandatory when using the 'OneTime-DeviceGroupId' or 'OneTime-DeviceGroupName' parameter sets.
1616
1717
.PARAMETER Timezone
18-
Specifies the IANA timezone for SDTs. If omitted, the portal timezone is used.
18+
Specifies the timezone for SDTs. Accepts IANA timezone IDs (e.g. America/New_York), Windows standard names (e.g. Eastern Standard Time), or the output of (Get-TimeZone).StandardName. If omitted, the portal timezone is used.
1919
2020
.PARAMETER StartHour
2121
Specifies the start hour for the scheduled downtime. This parameter is mandatory when using recurring parameter sets. The value must be between 0 and 23.

Public/New-LMDeviceSDT.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Specifies the start date and time for the SDT. This parameter is mandatory when
1515
Specifies the end date and time for the SDT. This parameter is mandatory when using the 'OneTime-DeviceId' or 'OneTime-DeviceName' parameter sets.
1616
1717
.PARAMETER Timezone
18-
Specifies the IANA timezone for SDTs. If omitted, the portal timezone is used.
18+
Specifies the timezone for SDTs. Accepts IANA timezone IDs (e.g. America/New_York), Windows standard names (e.g. Eastern Standard Time), or the output of (Get-TimeZone).StandardName. If omitted, the portal timezone is used.
1919
2020
.PARAMETER StartHour
2121
Specifies the start hour for recurring SDTs. This parameter is mandatory when using recurring parameter sets. Must be between 0 and 23.
@@ -48,6 +48,14 @@ Specifies the name of the device. This parameter is mandatory when using name-ba
4848
New-LMDeviceSDT -Comment "Maintenance window" -StartDate "2022-01-01 00:00:00" -EndDate "2022-01-01 06:00:00" -DeviceId "12345"
4949
Creates a one-time SDT for the device with ID "12345".
5050
51+
.EXAMPLE
52+
New-LMDeviceSDT -Comment "Maintenance window" -StartDate (Get-Date).AddHours(1) -EndDate (Get-Date).AddHours(3) -DeviceName "server01" -Timezone "Eastern Standard Time"
53+
Creates a one-time SDT using a Windows standard timezone name.
54+
55+
.EXAMPLE
56+
New-LMDeviceSDT -Comment "Maintenance window" -StartDate (Get-Date).AddHours(1) -EndDate (Get-Date).AddHours(3) -DeviceName "server01" -Timezone (Get-TimeZone).StandardName
57+
Creates a one-time SDT using the local machine's timezone via Get-TimeZone.
58+
5159
.NOTES
5260
You must run Connect-LMAccount before running this command.
5361

0 commit comments

Comments
 (0)