Forum Discussion
pardeep soba
Jun 26, 2017Copper Contributor
how to i add export command to the below script
how to i add export command to the below script $siteURL = "https://litwareinc.sharepoint.com/sites/finance"
$x = Get-SPOSiteGroup -Site $siteURL
foreach ($y in $x)
{
Write-Host $y.Ti...
- Jun 26, 2017
How about:
($siteURL = "https://litwareinc.sharepoint.com/sites/finance" $x = Get-SPOSiteGroup -Site $siteURL foreach ($y in $x) { Get-SPOSiteGroup -Site $siteURL -Group $y.Title | Select-Object -ExpandProperty Users })| Export-Csv -Path c:\temp\test.csv
Jun 26, 2017
You might want to give a bit more detail on what you are trying to do? Do you want to export the output to an .txt file?
pardeep soba
Jun 26, 2017Copper Contributor
export the output to a csv file
thanks