filmov
tv
PowerShell:-Get All Users From Multiple Site and SubSite Group Wise SharePoint OnPremise CSV format

Показать описание
PowerShell learning:
1. How to iterate through multiple items using PowerShell
2. How to present PS output data in Excel/CSV using PowerShell
3. Write PS Output in Command prompt as well as CSV file
SharePoint Learning:
How to get users from site and subsite SharePoint
1. Single Site collection
2. Multiple Site through CSV file
3.How to Present the Data in excel format so that we can filter through
4. Get the Output written in Command prompt as well as CSV file
#microsoft #sharepoint #powershell
========Script======
$spWeb = $_.URL
foreach($group in ((Get-SPWeb $spWeb).Groups)){
foreach($user in $Group.Users)
{
write-host $spWeb
$Site = $spWeb
$KM =@{
'SiteURL' =$Site
'GroupName' = $group
'UserName' = $user
}
$temp = New-Object psobject -Property $KM
}
}
}
=======================
1. How to iterate through multiple items using PowerShell
2. How to present PS output data in Excel/CSV using PowerShell
3. Write PS Output in Command prompt as well as CSV file
SharePoint Learning:
How to get users from site and subsite SharePoint
1. Single Site collection
2. Multiple Site through CSV file
3.How to Present the Data in excel format so that we can filter through
4. Get the Output written in Command prompt as well as CSV file
#microsoft #sharepoint #powershell
========Script======
$spWeb = $_.URL
foreach($group in ((Get-SPWeb $spWeb).Groups)){
foreach($user in $Group.Users)
{
write-host $spWeb
$Site = $spWeb
$KM =@{
'SiteURL' =$Site
'GroupName' = $group
'UserName' = $user
}
$temp = New-Object psobject -Property $KM
}
}
}
=======================