Find Jobs
Hire Freelancers

Write a PowerShell Command that will loop through multiple URLs to pull back webpart names and locations with SIPI and or Bamboo in the naming convention

$10-30 USD

Closed
Posted over 5 years ago

$10-30 USD

Paid on delivery
I have a script that works for the [login to view URL] part of the retrieval but only for one URL at a time. I need the syntax to read URL 1, URL 2, URL 3 then compile it to an excel output. Also I need the syntax to look the term Bamboo in the webpart title. this is my current script. Add-PSSnapin [login to view URL] -ErrorAction SilentlyContinue #Configuration parameters (run script per site collection) $SiteURL = "[login to view URL]" $ReportOutput="C:\[login to view URL]" $ResultCollection = @() #Get All Subsites in a site collection and iterate through each $Site = Get-SPSite $SiteURL ForEach($Web in $[login to view URL]) { write-host Processing $[login to view URL] # If the Current Web is Publishing Web if ([[login to view URL]]::IsPublishingWeb($Web)) { #Get the Publishing Web $PubWeb = [[login to view URL]]::GetPublishingWeb($Web) #Get the Pages Library $PagesLib = $[login to view URL] } else { $PagesLib = $[login to view URL]["Site Pages"] } #Iterate through all Pages foreach ($Page in $[login to view URL] | Where-Object {$[login to view URL] -match ".aspx"}) { $PageURL=$web.site.Url+"/"+$[login to view URL] $WebPartManager = $[login to view URL]([[login to view URL]]::Shared) #Get All Web Parts data #foreach ($WebPart in $[login to view URL]) foreach ($WebPart in $[login to view URL] | Where-Object { $[login to view URL]().ToString() -like "[login to view URL]*"} ) { $Result = New-Object PSObject $Result | Add-Member -type NoteProperty -name "Site URL" -value $[login to view URL] $Result | Add-Member -type NoteProperty -name "Page URL" -value $PageURL $Result | Add-Member -type NoteProperty -name "Web Part Title" -value $[login to view URL] $Result | Add-Member -type NoteProperty -name "Web Part Type" -value $[login to view URL]().ToString() $ResultCollection += $Result } } } #Export results to CSV $ResultCollection | Export-csv $ReportOutput -notypeinformation #Find a specific Web part change Line#34 to: #foreach ($WebPart in $[login to view URL] | Where-Object { $[login to view URL]().ToString() -like "*bamboo*"} )
Project ID: 17533580

About the project

7 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $77 USD for this job
User Avatar
"" SharePoint & Power Shell scripting Expert "" Hello there, Hope you are doing great !! We are a small but excellent team of SharePoint and .Net developers. We have more than 6 years of experience in SharePoint development, migrations, branding, workflow development, Microsoft power apps, Info path, etc. If you will hire us then I am damn sure that you will be fully satisfied with my expertise. I have more than 6+ years of extensive experience with Microsoft.net and SharePoint related technologies. I need one small meeting on personal message to discuss the complete requirements and then start the work ASAP. Looking forward for your kind reply. Regards, Hina ** Price and time mention over here are just placeholder. It might be change based on the requirements
$111 USD in 1 day
4.9 (36 reviews)
6.1
6.1
User Avatar
Hi Sir/Madam I have been working on sharepoint for 7 years. I have experience about sharepoint installation,configuration,development and integration.
$100 USD in 1 day
5.0 (12 reviews)
5.1
5.1
User Avatar
Hello I am an experienced PowerShell Dev and would be happy to help you with this. Thanks Callum
$35 USD in 2 days
5.0 (1 review)
1.9
1.9
User Avatar
I have 8+ years of experience in Microsoft technologies. I have good knowledge in PowerShell Scripting.
$88 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
As a SharePoint Administrator in a very large company (As you can see in my LinkedIn profile) 13 mixed (On Prem and online) farms, it is more than a daily task writing PowerShell scripts for SharePoint
$66 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
We already have script written for another project just need to make some tweak and you will be done. We have very good experience in SharePoint 2007,2016, Online and all kind of customization. Thanks,
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Washington, United States
4.5
14
Payment method verified
Member since Aug 31, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.