-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Server to Output & IdleTime as TimeSpan
- Loading branch information
1 parent
6e4d4eb
commit 05e3b69
Showing
21 changed files
with
423 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserOutput = @( | ||
'USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME', | ||
'>vertigoray console 1 Active none 7/13/2018 11:26 AM' | ||
) | ||
QuserOutput = @{ | ||
Server = 'localhost' | ||
Result = @( | ||
'USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME', | ||
'>vertigoray console 1 Active none 7/13/2018 11:26 AM' | ||
) | ||
} | ||
} | ||
GetDateNow = '2018-07-21T11:49:09.2879117-05:00' | ||
Output = @( | ||
@{ | ||
Server = 'localhost' | ||
Username = 'vertigoray' | ||
Sessionname = 'console' | ||
Id = 1 | ||
State = 'Active' | ||
IdleTime = $null | ||
LogonTime = '07/13/2018 11:26:00' | ||
IdleTime = @{ | ||
Type = 'System.Void' | ||
Value = $null | ||
} | ||
LogonTime = @{ | ||
Type = 'System.DateTime' | ||
Value = '07/13/2018 11:26:00' | ||
} | ||
} | ||
) | ||
} |
94 changes: 62 additions & 32 deletions
94
Examples/ConvertTo-QuserObject.Four_Users_Two_Disc_Three_Idle.psd1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '3+04:05' | ||
} | ||
Output = @{ | ||
Type = 'System.TimeSpan' | ||
Value = '3.04:05:00' | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Examples/Get-QuserIdleTime.Day_Hour_Minute_as_DateTime.psd1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '3+04:05' | ||
AsDateTime = $true | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.DateTime' | ||
Value = '07/29/2018 07:56:00' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '.' | ||
} | ||
Output = @{ | ||
Type = 'System.Void' | ||
Value = $null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '.' | ||
AsDateTime = $true | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.Void' | ||
Value = $null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '4:05' | ||
} | ||
Output = @{ | ||
Type = 'System.TimeSpan' | ||
Value = '0.04:05:00' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '4:05' | ||
AsDateTime = $true | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.DateTime' | ||
Value = '08/01/2018 07:56:00' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '5' | ||
} | ||
Output = @{ | ||
Type = 'System.TimeSpan' | ||
Value = '0.00:05:00' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = '5' | ||
AsDateTime = $true | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.DateTime' | ||
Value = '08/01/2018 11:56:00' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = 'none' | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.Void' | ||
Value = $null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@{ | ||
Parameters = @{ | ||
QuserIdleTime = 'none' | ||
AsDateTime = $true | ||
} | ||
GetDateNow = '8/1/2018 12:01:00 PM' | ||
Output = @{ | ||
Type = 'System.Void' | ||
Value = $null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.