Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Populate empty values in qwinsta command

$
0
0

Greetings.

 

I want to export the results of qwinsta command in a text file, but for some of the results, some values are empty.

 

Is there a way for fill that data with a character or value?

 

For example:

Qwinsta /server:hostmane gave me this output:

NOMBRE DE SESIÓN  NOMBRE DE USUARIO        ID  ESTADO    TIPO   DISPOSITIVO

services                                                               0  Desc

console                                                                1  Conn

                                         Administrador             2  Desc

rdp-tcp#114                       administrador             3  Activo

rdp-tcp                                                           65536  Escuchar

 

I got a txt file with that design, so I want to know the way for fill the empty data like this:

 

NOMBRE DE SESIÓN  NOMBRE DE USUARIO        ID  ESTADO    TIPO   DISPOSITIVO

services                                  na                          0  Desc           na         na

console                                   na                         1  Conn            na         na

na                                      Administrador             2  Desc              na         na

rdp-tcp#114                       administrador             3  Activo           na         na

rdp-tcp                                      na                  65536  Escuchar     na         na

 

Best Regards


Viewing all articles
Browse latest Browse all 6937

Trending Articles