TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sreeram MUNIRAJA
NA
87
22k
How to get Power Shell Output into excel file
Oct 24 2018 12:45 AM
Dear Team,
How can we get below script output into excel?
#Read CSV file
$CSV = Import-Csv "D:\Test\Sites.csv"
$SubSites = $CSV.Sites
$credential = Get-Credential
#Iterate through each site in subsite
Foreach ($Subsite in $SubSites)
{
#Inititate PnP Properties and get access request settings
Connect-PnPOnline -Url $Subsite -Credentials $credential
$Web = Get-PnPWeb
Write-Host "Site" $Web.Url -ForegroundColor Green
Get-PnPGroup -AssociatedOwnerGroup -ErrorAction SilentlyContinue
Get-PnPGroup -AssociatedMemberGroup -ErrorAction SilentlyContinue
Get-PnPGroup -AssociatedVisitorGroup -ErrorAction SilentlyContinue
}
Best regards
Reply
Answers (
2
)
how to call External web API in SharePoint library form
Cross-Origin Read Blocking (CORB) blocked cross-origin