Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

beginner question - how to "combine" two lines of powershell scripts?

$
0
0

Hi,

Im trying to get a list of all the issued certificates for smartcard log on so for that I use:

Get-QADUser John | Get-QADCertificate -Template '*Smartcard*Logon*' | Select-Object IssuedTo,ValidFrom,ValidTo,Template | ft

and after that, I want some details for this report such as fullname etc:

Get-QADUser John |  Select-Object DisplayName, mail, AccountIsDisabled, Description, Department | ft

and I got 2 issues:

first I want to "combine" both of those scripts to 1 with Format-Table output and export it to .csv which will contain all the lines..

the second issue with script 1 when I use Format-table it doesn't shows the full Template name, its being "cut" because the line is too long. e.g:

 Template
 --------
 1.4.6.1.4.1.645.26.8.509563.55578414.886705...

there is any way to force it to show the full line?

thanks for any help!

have a good day :)

/Gal


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>