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 sobaJun 26, 2017Copper Contributor
this script returns a site collection groups and members of those groups
i just want to export the results to csv
- pardeep sobaJun 26, 2017Copper Contributor
export the output to a csv file
thanks