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
1answer
20 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
28 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
25 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
25 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
38 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
56 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
33 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
19 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
64 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
30 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
16 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
41 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
26 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
59 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
53 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
6 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
55 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
23 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
31 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
30 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
26 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
15 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
13 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
64 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
12 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
20 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
31 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
15 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
26 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
39 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
23 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
51 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
vote
0answers
37 views

List/Report of all active Shared Links in the SharePoint Online tenant using PowerShell?

Is there a way to generate a List/Report of all active Shared Links in the SharePoint Online tenant using Powershell? I know that we can find that in "Security and Compliance" admin center audit logs....
0
votes
2answers
44 views

Powershell : Read excel file data in document library and then modify it and upload it back using powershell in SharePoint Online

I am looking for powershell solution which will read xml file in document library and loop throgh all rows and add/modify rows/columns on the excel file and upload it back to sharepoint. Tried ...
0
votes
0answers
15 views

Special characters and Graph API

I'm using Graph API with PowerShell to send a message to Teams, which is ok, BUT the problem I get is with the special characters like french letters é etc. Instead of the é, I get a question marks ...
0
votes
3answers
61 views

Sharepoint Online: Get List Items from Documents List with over 5000 Items using Powershell

My goal is to create a powershell script that will change the created by value in my Sharepoint online documents list. Fyi this list contains 10005 items. I'm at the very beggining and already stuck ...
0
votes
0answers
24 views

Get-spproduct -local stuck

I launched a get-spproduct -local command through PowerShell with the farm account, however, it ran now for almost one hour. Got the same behaviour with stsadm -o localupgradestatus. It just runs and ...
0
votes
1answer
49 views

Convert the Powershell script to Python 3

I'm trying to perform an upload files from Linux to share point using Python. However I tried a lot by googling but nothing help. At last I got a power shell script that is working. So requesting for ...
0
votes
1answer
16 views

Download files from a sharepoint document library that has exceeded the listview threshold

I'm trying to download all documents from a SharePoint library that has more than 200K documents and has obviously exceeded the listview threshold and I haven't been able to find a script that will ...
1
vote
2answers
147 views

Set-SPOSite not working for Group enabled SharePoint Online sites

I'm executing the below script to disable one of the document sharing options: set-sposite -Identity "https://tenant.sharepoint.com/sites/useraccessmanagement" -DisableCompanyWideSharingLinks ...
0
votes
0answers
9 views

Try Catch not trapping error

I'm running posh 4.0 on Windows Server 2012 R2. When this line is reached and the $site variable contains a non existent site, the error is not trapped and instead the generic error is displayed. ...
0
votes
1answer
11 views

Update URL's link Inside Office (docx, xlsx) documents

We need to change the root of our SharePoint 2013 Document Management site collection due to a company ownership change from Sharepoint.acb.net to Sharepoint.xyz.net. I configured everything using the ...
0
votes
1answer
11 views

Unable to set sharepoint workflow job property

I'm trying to to run the below command but error which I have never seen before. I have ran this many times never got this error. stsadm -o setproperty -propertyname "job-worfklow" -propertyvalue "...
0
votes
0answers
18 views

get-pnpfile but import into an object

I'm using PNP powershell to connect to SPO and download files using get-pnpfile, while initial test are good for downloading files, what I really want to do is download the file into an object rather ...
0
votes
2answers
33 views

Remove anonymous link from SharePoint thanks to PowerShell

I am currently working on a script that should remove an anonymous link from SharePoint using Powershell. I don't know where to start and i would like to know if somebody has an idea on how to do it. ...
0
votes
2answers
33 views

Error in copying file: The specified user could not be found

I'm copying the files between site collection document libraries in share point online using the below script but it failing to copy the files when the author of the files no longer exists. Below is ...
0
votes
1answer
34 views

CAML in Powershell within 2 dates

I've been tweaking my code with various solutions discovered here and elsewhere with no luck so I figured its time to ask for help. I'm using Posh ver. 4.0 on SP 2013 Enterprise on-premises. I have a ...

1
2
3 4 5
76