Questions tagged [powershell-script]

The tag has no usage guidance.

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
698 views

Get users who have permission through a sharing link Powershell sharepoint Online

I want to generate a report of every document and permissions on it. Permissions contains General Permission and Users who have permission through a sharing link/ or external sharing link. When I run ...
2
votes
2answers
8k views

Conversion of csv file to xlsx via Flow or SharePoint

I have a Flow to store email attachments (in .csv format) to SharePoint. Now, I want to use the file in Power-BI from SharePoint. However, I want the file in .xlsx format. Could you please suggest how ...
1
vote
1answer
57 views

How to Sync Exclude from Internet Search Engines with Internal Search using Powershell

I am using SharePoint 2013 On Premises. I am trying modify the values Exclude from Internet Search Engines( Present in Edit SEO Properties of a page, RobotsNoIndex field) with respect to Include/...
1
vote
1answer
618 views

SharePoint online ExecuteQuery command giving exception

I am writing a powershell script to copy the sharepoint online list items from one sharepoint online list to another while that list consist of 77 fields. I am getting below error. While the same copy ...
1
vote
0answers
63 views

SharePoint Content Inventory Using PowerShedll Script

I have a script, where it loops through the whole site collection and starts calculating the size of each list in the site, and calculates each document size (PDF or word document) to determine the ...
1
vote
0answers
48 views

Finding Unghosted page using PowerShell Script in SharePoint 2010

I've a requirement to find out the unghosted page means page which are created using SharePoint designer using powershell script in SharePoint 2007. It should include the custom list forms as well. ...
1
vote
0answers
104 views

How do I get the name and version of the list item workflow from SharePoint 2013 using PowerShell script

How can I get the name and version of the list item workflow as encircled in the image? I have written the below code to obtain the Workflow ID, Title ,Status, Item Name. I got the ID, STatus and ...
0
votes
1answer
21 views

Q. SharePoint Online - Setting LockState property via PowerShell not successful and no error reported

I have been attempting to Unlock a ReadOnly site in SharePoint Online. I have tried with PNP Connect-PnPOnline $SiteURL -Credential $Cred Set-PnpSite -LockState "Unlock" I have tried with ...
0
votes
1answer
33 views

How to verify retention labels at site level?

In our SharePoint Online, we have n number of sites where retention labels are being assigned for the contents. Though, we are not sure if we have labeled everything and would like to verify what has ...
0
votes
1answer
86 views

Get-PnPList cmdlet not returning anything

I'm trying to retrieve information from two columns on a sharepoint list in order to use them in powershell. Here's my code so far: $SiteURL = "https://xxxx.sharepoint.com/sites/xxxxx/" ...
0
votes
2answers
124 views

How to get all column and type and internal name in my site by PnP PowerShell

I'm using ModernUI for SharePoint Online. I'd like to get all List and Library's ColumnName, Type, InternalName in my site by PnP PowerShell. I did some research myself, but I didn't understand, so I ...
0
votes
1answer
13 views

Workflow to be run for every specific document or content type?

I will need to look for the solution to implement the manual script initiation for specific file type in the document library (ex. force unlocking a document). Idea is that I will add additional ...
0
votes
0answers
62 views

Getting Forbidden error while connecting to SP Online using CSOM Powershell

I have one powershell script where I am connecting to SP 2013 Library to download a file using Server side powershell script. After That in the same script file I am trying to connect to SP Online ...
0
votes
1answer
80 views

How to update “Lookup column” values from csv to Sharepoint Online using Powershell Script?

I have a Parent list called country and the child list where I want my values updated is call Continents. the lookup filed name in Continents is "Country". Any help will be greatly ...
0
votes
1answer
36 views

How to get last crawl duration in SP 2013 using power-shell

I'm using the below PowerShell commands to get the last crawl duration. when the Crawl In-progress the 'Crawl Completed' field is empty, I the output as duration in negative values. Could you please ...
0
votes
1answer
102 views

powershell script to replace a user Identity with a different identity

I'm having SharePoint 2016 On-premise environment, now we have a requirement as follows. we have nearly 100 SharePoint Groups, where we had already have many user's identity added as DOMAIN\username ,...
0
votes
1answer
79 views

SharePoint site is lock

I ran below script to unlock SP site. $admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration (“Site-Collection-URL”) $admin.ClearMaintenanceMode() Getting below error message ...
0
votes
0answers
109 views

Powershell Convertto-HTML from list items also outputs raw objects before the actual HTML

I am writing a Powershell Script to read SPListItems, create a PSObject for each, add it to the PS Array and after the loop ends I use the following to convertto-html myArray | convertto-html -path .....
0
votes
2answers
277 views

How to count number of lines and words in a SharePoint online Page

I am requested to generate a report that illustrates the number of pages and plus the count of words on each page, and the number of files in that site (word, PDF, images..etc.). Is there any custom ...
0
votes
1answer
423 views

Powershell script to get workflow tasks for each list item

I have a lot of number of webs (sub-sites) within a site collection that have lists that have list items with Approval workflows running on them. How would I get all tasks for each list item in ...
0
votes
1answer
37 views

How to pick up data using PowerShell from SharePoint Web Parts

We have a manual process at the moment where we have assigned "Content Owners" to out Sites/Sub-Sites. Content Owners, essentially have no greater permissions than regular users, but our Governance ...
0
votes
2answers
366 views

Not getting All FieldValues in Powershell CSOM Sharepoint 2016

I have created powershell script to get File/Folder Size details of Sharepoint site. However, I am not able to get all fieldValues of listItems. I am getting values for $listItem.FieldValues["...
0
votes
1answer
155 views

get list of al users on farm level on SharePoint 2010 application

I am trying run below script on SP 2010 environment for getting list users on farm level. But i am getting error. Can someone please correct me. Powershell script Add-PSSnapin Microsoft.SharePoint....
0
votes
2answers
29 views

Need help on running PowerShell command related to Sharepoint Client ID

By referring i see that i need to run the command but when i try to run i am getting below error PowerShell Command When i run i am getting below error i am new to powershell and i dont know what ...
0
votes
1answer
240 views

Set People picker field with sharepoint group

Is it possible to set a People picker field with SharePoint Group using powershell script ?. Thank you.
0
votes
0answers
16 views

Restore/change text/background colors in sharepoint online management shell

I changed colors under properties > colors to improve readability but: 1/ the colors don't reflect the changes I made 2/ I can't restore defaults or make any other changes. I uninstalled and ...
0
votes
1answer
27 views

Change contenttype of all site collection libraries with Powershell

Change contenttype of all site collection libraries with Powershell Hello everyone. I am an apprentice of powershell and SharePoint and I came across the following scenario: I have a collection of ...
0
votes
2answers
104 views

Add Azure AD users to SharePoints groups and document library permissions in bulk

I need to create Azure AD users in bulk (about 90), in order to add each of them: To a SharePoint group present in 90 sub-sites Authorizations from two libraries in each of these sub-sites Example : ...
0
votes
2answers
120 views

Powershell Pulling matching strings

I need help pulling every word that contains certain strings(more than one) from particular site and exporting to a file. My code is as follows: Add-PSSnapin Microsoft.SharePoint.PowerShell -...
0
votes
1answer
866 views

Powershell script that outputs all workflows,their title and status from sharepoint 2013 site that has workflows attached to every list

The SharePoint 2013 site has a few subsites and each subsite has further subsites that have lists in it. To these lists there is a workflow attached. How do I write a powershell script to retrieve ...