vendredi 27 février 2015

Check text file content in Powershell


Vote count:

0




The Powershell command:



Get-ADFSRelyingPartyTrust | select Name | out-file C:\listOfNames.txt


generates a file as follows:



Name
----
AustriaRP
BahamasRP
BrazilRP
CanadaRP

[...]


Now, how can I check if BrazilRP has been extracted and C:\listOfNames.txt contains it?



asked 1 min ago







Check text file content in Powershell

Aucun commentaire:

Enregistrer un commentaire