-
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.
Showing
13 changed files
with
289 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"Parameters":{ | ||
"QuserOutput":{ | ||
"Server": "localhost", | ||
"Result": [ | ||
" NOMBRE USUARIO NOMBRE SESIÓN ID. ESTADO TIEMPO IN. TIEMPO SESIÓN", | ||
">mabe-b3 console 1 Activo ninguno 7/25/2018 7:46 AM" | ||
] | ||
} | ||
}, | ||
"Culture": "es-EC", | ||
"Output": [ | ||
{ | ||
"Server" : "localhost", | ||
"Username" : "mabe-b3", | ||
"Sessionname" : "console", | ||
"Id" : 1, | ||
"State" : "Activo", | ||
"IdleTime" : { | ||
"Type" : "System.Void", | ||
"Value" : null | ||
}, | ||
"LogonTime" : { | ||
"Type" : "System.DateTime", | ||
"Value" : "07/25/2018 07:46:00" | ||
} | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
Examples/ConvertTo-QuserObject.Four_Users_Two_Disc_Three_Idle_ES.json
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,45 @@ | ||
{ | ||
"Parameters": { | ||
"QuserOutput": { | ||
"Server": "localhost", | ||
"Result": [ | ||
" NOMBRE USUARIO NOMBRE SESIÓN ID. ESTADO TIEMPO IN. TIEMPO SESIÓN", | ||
">mabe-b3 console 1 Activo ninguno 7/25/2018 7:46 AM", | ||
" otro00 2 Desc 2 7/25/2018 10:51 AM" | ||
] | ||
} | ||
}, | ||
"Culture": "es-EC", | ||
"Output": [ | ||
{ | ||
"Server": "localhost", | ||
"Username": "mabe-b3", | ||
"Sessionname": "console", | ||
"Id": 1, | ||
"State": "Activo", | ||
"IdleTime": { | ||
"Type" : "System.Void", | ||
"Value" : null | ||
}, | ||
"LogonTime": { | ||
"Type" : "System.DateTime", | ||
"Value" : "07/25/2018 07:46:00" | ||
} | ||
}, | ||
{ | ||
"Server": "localhost", | ||
"Username": "otro00", | ||
"Sessionname": "", | ||
"Id": 2, | ||
"State": "Desc", | ||
"IdleTime": { | ||
"Type" : "System.TimeSpan", | ||
"Value" : "0.00:02:00" | ||
}, | ||
"LogonTime": { | ||
"Type" : "System.DateTime", | ||
"Value" : "07/25/2018 10:51: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
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
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,18 @@ | ||
# @{ | ||
# Server = 'Server' | ||
# Username = 'Username' | ||
# Sessionname = 'Sessionname' | ||
# Id = 'Id' | ||
# State = 'State' | ||
# IdleTime = 'IdleTime' | ||
# LogonTime = 'LogonTime' | ||
# } | ||
|
||
ConvertFrom-StringData @' | ||
# English strings | ||
Msg1 = "The Name parameter is missing from the command." | ||
Msg2 = "This command requires the credentials of a member of the Administrators group on the computer." | ||
Msg3 = "Use $_ to represent the object that is being processed." | ||
'@ |
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,18 @@ | ||
PSTOPIC | ||
about_QuserObject | ||
|
||
SHORT DESCRIPTION | ||
Run `quser.exe` and return a proper PowerShell Object. | ||
|
||
LONG DESCRIPTION | ||
Run `quser.exe` and return a proper PowerShell Object. | ||
I discussed this on my blog to enhance a StackOverflow answer. | ||
I thought I'd make this into a PowerShell module for ease of use and distribution. | ||
|
||
DETAILED DESCRIPTION | ||
Run `quser.exe` and return a proper PowerShell Object. | ||
I discussed this on my blog to enhance a StackOverflow answer. | ||
I thought I'd make this into a PowerShell module for ease of use and distribution. | ||
|
||
You can find documentation here: | ||
https://github.com/UNT-CAS/QuserObject |
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 @@ | ||
@{ | ||
Server = 'Server' | ||
Username = 'Username' | ||
Sessionname = 'Sessionname' | ||
Id = 'Id' | ||
State = 'State' | ||
IdleTime = 'IdleTime' | ||
LogonTime = 'LogonTime' | ||
} |
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,18 @@ | ||
PSTOPIC | ||
about_QuserObject | ||
|
||
BREVE DESCRIPCIÓN | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
|
||
DESCRIPCIÓN LARGA | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
Discutí esto en mi blog para mejorar una respuesta de StackOverflow. | ||
Pensé en convertirlo en un módulo de PowerShell para facilitar su uso y distribución. | ||
|
||
DESCRIPCIÓN DETALLADA | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
Discutí esto en mi blog para mejorar una respuesta de StackOverflow. | ||
Pensé en convertirlo en un módulo de PowerShell para facilitar su uso y distribución. | ||
|
||
Puede encontrar documentación aquí: | ||
https://github.com/UNT-CAS/QuserObject |
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,19 @@ | ||
# @{ | ||
# Server = 'Servidor' | ||
# Username = 'NombreUsuario' | ||
# Sessionname = 'NombreSesión' | ||
# Id = 'Id' | ||
# State = 'Estado' | ||
# IdleTime = 'TiempoIn' | ||
# LogonTime = 'TiempoSesión' | ||
# } | ||
|
||
ConvertFrom-StringData @' | ||
Server = Servidor | ||
Username = NombreUsuario | ||
Sessionname = NombreSesión | ||
Id = Id | ||
State = Estado | ||
IdleTime = TiempoIn | ||
LogonTime = TiempoSesión | ||
'@ |
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,18 @@ | ||
PSTOPIC | ||
about_QuserObject | ||
|
||
BREVE DESCRIPCIÓN | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
|
||
DESCRIPCIÓN LARGA | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
Discutí esto en mi blog para mejorar una respuesta de StackOverflow. | ||
Pensé en convertirlo en un módulo de PowerShell para facilitar su uso y distribución. | ||
|
||
DESCRIPCIÓN DETALLADA | ||
Ejecute `quser.exe` y devuelva un objeto PowerShell adecuado. | ||
Discutí esto en mi blog para mejorar una respuesta de StackOverflow. | ||
Pensé en convertirlo en un módulo de PowerShell para facilitar su uso y distribución. | ||
|
||
Puede encontrar documentación aquí: | ||
https://github.com/UNT-CAS/QuserObject |
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 @@ | ||
@{ | ||
Server = 'Servidor' | ||
Username = 'NombreUsuario' | ||
Sessionname = 'NombreSesión' | ||
Id = 'Id' | ||
State = 'Estado' | ||
IdleTime = 'TiempoIn' | ||
LogonTime = 'TiempoSesión' | ||
} |
Oops, something went wrong.