How to export the results of a PowerShell cmdlet to a .CSV file in Control Compliance Suite 10.5.x
| Article:TECH177566 | | | Created: 2011-12-21 | | | Updated: 2012-08-21 | | | Article URL http://www.symantec.com/docs/TECH177566 |
Problem
How to export the results of a PowerShell cmdlet to a .CSV file in Control Compliance Suite 10.5.x
Solution
In Windows Server 2008, and later versions of Windows, to start Windows PowerShell from the Start menu, click Start, click All Programs, click Accessories, click the Windows PowerShell folder, and then click the Windows PowerShell item.
We can use the standards cmdlet Export-CSV to export results to a file
clear-host
add-pssnapin Symantec.CSM.PS.Assets.SnapIn
$appservernameandport = 'localhost:1431'
Search-Assets | Export-CSV –NoTypeInformation ‘AssetList.csv’
|
|
Article URL http://www.symantec.com/docs/TECH177566
Terms of use for this information are found in Legal Notices









Thank you.