Questions tagged [powershell]

Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems.[except from WikiPedia]

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Looping through a SharePoint List to compare a field value with another List Item ID in Powershell

I have two Lists. A Calendar Lists and a Custom List In one List I have multiple records all with an 'EventID' field which relates to a Calendar record (The record ID) I am trying to use PowerShell to ...
0
votes
1answer
14 views

Polling SharePoint Online Site to check when a custom Document Set has synced from the Content Type Hub

I have a custom content type called "Project" that inherits from the Document Set content type, that is created from the Content Type Hub (CTH) in SharePoint Online. This "Project" ...
0
votes
1answer
24 views

System.Net.WebException: The remote server returned an error: (429)

I'm executing a CSOM Powershell script on my SPO Tenant. This script exports all list items and documents which has unique permissions. The script is working fine however I get the below errors ...
0
votes
1answer
35 views

How to read the parent name of content type

I want to read the document library content type parent name. Below is the code I used. I am not getting any values in that. Can someone suggest on this? $contentTypes = $ctx.web.contenttypes $ctx....
0
votes
0answers
17 views

How to deploy from powershell script using github actions?

I am trying to deploy to siteCollection appcatalog on each push to my github repository using github actions. Saw that it's possible using Office 365 CLI action, but that only allows tenant admins to ...
0
votes
0answers
14 views

How to remove duplicate entries in CSV

The code is running properly. But this is creating the multiple duplicate entries in CSV file and Parent properties i am not getting the values. $List = $web.Lists $ctx.Load($List) #$ctx.Load($List....
0
votes
1answer
18 views

Report of all lists/libraries and documents where a particular keyword in available

One of our monitoring tool is getting replaced by another tool. So I need to generate a report all lists items/libraries and documents where the old tool name is referred and take action. I have to ...
0
votes
0answers
14 views

How to automate relinking of Infopath forms to SharePoint 2013? Is there such a custom workflow?

I'm searching high and low on the net on how to automate the relink process and there's only one I found to be the closest. I don't think there's a custom workflow that can be made within SharePoint. ...
0
votes
1answer
18 views

How I can filter documents of document librarys with powershell sharepoint client sdk

I have a powershell sharepoint script that give me all items in a document library of a site. Problem is, I get Documents I don't want. Like home.aspx and some other regular documents from sharepont ...
1
vote
1answer
23 views

Update or set value in people picker field using API

I am trying to set value in people picker field. I want to pass an Email address of the employee instead of employee ID in the API. Any help is highly appreciated. Using API endpoint: _api/web/lists/...
0
votes
1answer
40 views

Move files from one SharePoint to another SharePoint

I have a Ticket List with many Form Items (20k) and i would like to move most of them to another SharePoint Site which is only used to archiv those old items. We already have a Script that moves Items ...
0
votes
0answers
12 views

How to Compare SharePoint Groups and Users Permissions are same in both target and Source site?

I want to compare the Groups and users from source(SharePoint server 2013) and target site(SharePoint online) using powershell script. I have tried below code but i am not able to retrieve "...
0
votes
1answer
14 views

Find references to URL in SharePoint on premises

Is there a Powershell script, or query, or an area in Central Administration, or in the Site settings etc, where I can check what pages reference a certain URL? e.g. http://mydomain/sites/collection1/...
0
votes
0answers
26 views

How do you add a Hero web part to a FullWidth Section using PS PnP?

When running the following PowerShell code using the PnP module (Install-Module SharePointPnPPowerShellOnline): Connect-PnPOnline -Url https://tenantname.sharepoint.com/sites/sitename -UseWebLogin Add-...
0
votes
1answer
45 views

'Connect-PnPOnline' is not recognized when running task scheduler

I'm trying to run a powershell script with the Windows task scheduler. The script works perfectly when I run it manually. But receive the following error when executed (with highest privileges) in the ...
0
votes
1answer
14 views

How to modify the content of an xml file in SharePoint Online by powershell

I would like to fix some xml files seperated on multiple sites and document libraries in powershell. I have in a csv file the url of all these xml documents. So I already have some loop for each xml ...
0
votes
2answers
13 views

How to identify the Nintex Workflow using Powershell in SharePoint 2013 platform

I want to find out all the Nintex workflows exists in my SharePoint 2013 Site collection using Power Shell. Kindly help me on how to identify the workflow as Nintex workflow using Power Shell. Thanks
0
votes
0answers
16 views

SPO list migration from one tenant to another with Graph API and Powershell

I am currently working on a project that has me doing migrations from one SPO tenant to another. I do not currently have access to most popular tools like ShareGate, Metalogicx etc. I mainly have to ...
0
votes
1answer
13 views

Getting all Content Editor web part details who are using Custom Script using Powershell in SharePoint 2013

I want to find out all the Content editor web part details who are using Custom Script, JSlink using SharePoint Power Shell. Please help me on this Thanks
0
votes
1answer
15 views

How to identify Custom Site column and Custom Site Content Types using SHarepoint 2013 Powershell

I need to find out custom site columns and custom site content types used in the client SharePoint applications. I want to list down those using SharePoint 2013 PowerShell. Please help me on this.
0
votes
1answer
28 views

FormDigestValue empty in Sharepoint Site using PowerShell

So, I was originally trying to create an item in a Sharepoint site, but as I took a 403 as response, and searched, I needed to put the X-RequestDigest header to work. I tried to fetch it using the &...
2
votes
1answer
51 views

Authenticating against SharePoint online in Powershell without using user name and password

Is it possible to use the context of the person whoever is running the PowerShell and get the list items from SharePoint online? I am trying not to have the Get-Credential login prompt or having the ...
0
votes
2answers
30 views

Creating subfolders in Teams SharePoint site

I am trying to automate the creation of some standard folders in a Team's SharePoint document library, using PowerShell and CSOM. In SharePoint on the web, the folder structure looks like this: ...
0
votes
0answers
15 views

How to replace the special character in CSV file single column

I have retrieved the content editor XML web part properties and stored inside the CSV file which has multiple property columns in file. Content column has multiple special characters (?,&). I want ...
0
votes
2answers
43 views

Getting a Context using PowerShell and SharePoint Online Management Shell

There are so many SharePoint code samples out there that it's really difficult to figure out what the current best way to do something is. Forgive me as I may very well be mixing technologies. Here'...
0
votes
1answer
28 views

How to loop through all the pages in site pages

I want read all the pages web part which is resides inside the site pages across site collection, sub site level. The code is below $site = Get-SPSite # This is enough to select all webs in site ...
0
votes
0answers
14 views

WebServiceProxy in SharePoint online

I was using PowerShell to update items in SP On-Premise and now the sites are migrated to SharePoint online. The PowerShell scripts updates multiple lists using WebServiceProxy and it doesn't seem to ...
0
votes
1answer
33 views

Error - Connect-SPOService : Method not found: '!!0[] System.Array.Empty()'

I'm trying to connect to SharePoint online tenant using the below PowerShell script but I get the error: I'm sure the script is correct because it works fine on other machines. But on one particular ...
0
votes
2answers
25 views

Sharepoint REST query returning 100 results no matter what filter I use

I am trying to execute a REST query on a Sharepoint 2013 list with Powershell, but I'm always getting back more results than I want. Even if I filter the query to only get back 1 list item, the query ...
0
votes
2answers
35 views

How to schedule a SharePoint Online Powershell script to run everyday?

We have been scheduling SharePoint on-prem Powershell scripts using Windows Task Scheduler to run at a specific time But how do i schedule a SharePoint Online Powershell?
0
votes
1answer
37 views

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential? The Powershell command Get-SPOSite gets all sites on my Office 365 tenant. How could I filter all site ...
0
votes
0answers
5 views

Identifying where External Content Types are being used in a particular site and list in SharePoint Using PowerShell

I am migrating ECT's from SP13 to on prem SP19 (we migrated the entire site by mounting the content DB first to a 2016 farm then to our 2019 one) some are working some are not. Although I can create a ...
0
votes
1answer
49 views

Create content type template using Power Shell

I want to create the content type using power shell. By using created content type with need to create the content type template using power shell script.
0
votes
1answer
20 views

Not able to connect to SharePoint Online Site

I have tried the same code in with another domain site on my laptop, works fine. But, when I run the same script on a Windows Server 12 R2 on another domain site it throws an exception as shown in the ...
0
votes
1answer
29 views

How can I get the list of broken link of one drive by Powershell script?

How can I get the list of broken link of one drive by Powershell script? I have got the copy link Url by $linkShortCut = [Microsoft.SharePoint.Client.Web]::CreateAnonymousLink($ctxClient, $itemUrl, ...
0
votes
0answers
28 views

SPO PowerShell to Get users who have permission through sharing link

I'm using the below script to find all list and library items that are shared(to internal and external users) in a SharePoint Online site. I am able to identify the documents which are shared but not ...
0
votes
1answer
27 views

Enable Tree View Navigation using Power Shell script

I want to enable tree view navigation in a site collection and sub site level using power shell. Power shell script loop through site collection and all sub sites and turn on Enable Tree View ...
0
votes
0answers
25 views

Custom Action: get the full URL

I want to add custom action which opens the external link and passes the current URL as a parameter. Something like: https://external.aspx?&url=https://company.sharepoint.com/sites/testSite/...
0
votes
1answer
14 views

How To read User Information List In SharePoint 2013 Using Power Shell Scripts

I want to retrieve all the user email id, display name, user name & Title from user information list using power shell
0
votes
0answers
11 views

Adding variables into array via powershell for SharePoint list

I am trying to update the "Title" column in a SharePoint list (List has multiple "Titles" with the same name) and want to update all items where the Title matches I have used the following: $web = ...
0
votes
2answers
59 views

Export to CSV file

I am able to read the SharePoint web part properties and values using below code and able to export it. But after exporting, when i open the file could not find exact values. Find the code below: $...
0
votes
1answer
11 views

Analytics usage report timezone

We are using SP2016 enterprise. In Site settings -> Popularity and Search Reports, we can download the usage report. The report is generated based on GMT 0 timezone but all my users are located in GMT+...
0
votes
1answer
18 views

How to assign object to variable in Powershell

I am trying to assigned a variable from a search object : $tes = $ListLookup.Items | where-object {$_.title -eq "TEST"} | sort Title | FT ID So the above brings back the ID of the item I want. But ...
0
votes
1answer
22 views

Delete My sites without affecting user profiles

I want to delete my sites without affecting existing user profiles and also want to disable my sites creation. I know to delete site collections using powershell script but want to know, is there a ...
0
votes
1answer
13 views

Add new item to list with lookup value from another list via powershell

I have trying to add new item via powershell to a list that has a column with a lookup to another list $NewItem = $list.Items.Add() #Add properties to this list item $NewItem["Title"] = "...
0
votes
2answers
23 views

Read the content of web part

I have content editor,script editor, image viewer etc.. part on share point homepage. I am able to read the web part properties. Now i want to read the content or values of that web part using power ...
0
votes
1answer
35 views

The remote server returned an error: (500) Internal Server power shell

I am trying to load the on premise SharePoint site using below PowerShell code: Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint....
0
votes
1answer
18 views

Ho to verify if event receiver is custom or default in share point 2013

I have requirement to get all the list of event receiver names(Not Default) in a share point 2013 site which are custom. Kindly guide me on identifying the custom receivers only. Thanks in advance! ...
0
votes
1answer
20 views

Get ItemChild properties using Powershell Script SharePoint 2013 document library

We have a document library which contains multiple document set we have below requirements : Get all document set properties like Name, Created Date, Modified date. Get all ItemChild (document ...
0
votes
2answers
48 views

Read the web part properties from page using Power Shell

I have on prime SharePoint 2016 site which has couple of web part on the homepage.I want to read the web part properties from the page and Export the data to CSV file using Power Shell commands.

1
2 3 4 5
75