Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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]

0
votes
0answers
16 views

automate office 365 health checkup to take screenshot every hour

So the requirement is like this: Login to o365 portal, navigate to health section ( this url https://portal.office.com/AdminPortal/Home#/servicehealth) take the screenshot of the page upload the ...
0
votes
0answers
6 views

Extracting Data from manifest.xsf file using PowerShell

Hi I trying to extract information about the rules that are applied to a number of InfoPath forms, and I am using Powershell to do so. I have unpacked the template.xsn file, and found the manifest....
0
votes
2answers
18 views

Need to update the DOCX file content stored in SharePoint 2013 Library using PowerShell

I have a need to update the DOCX file content using SharePoint 2013 PowerShell. I am using below code to do the same, but once file gets updated and checked in by the code, the files getting corrupted ...
1
vote
0answers
29 views
+300

Batch update via PNP Powershell

I have data from a CSV that will be imported and added to column values for each of these items. I can loop over CSV, get the items, and set the values (Set-PNPListItem) - but the sequential ...
0
votes
1answer
17 views

How to add link to the quick launch using PowerShell [closed]

I need the code to add a List in quick launch with PowerShell. Can anyone help me with this?
0
votes
1answer
12 views

remove <div> from a sharepoint list with powershell

I have a web part where a user adds a comment into a multi-line text field. It was originally set up as a rich-text field but I need to change it to plain-text for reasons. When I did so, all the ...
0
votes
1answer
14 views

Get Status of SharePoint workflows in the SP farm using Powershell

I am trying to figure out it what properties of $list or $wp return the status of workflow(Completed, In progress, Error Occurred and canceled). or how i can get the status of each workflow in the SP ...
1
vote
1answer
25 views

Copy Permissions : Get-SpSite : Cannot find an SPSite object with Id or Url

I'm trying to fetch the groups, users and roles from a site collection a server to another site collection on another server. I'm trying to get the data using Powershell's Get-SpSite <site url> ...
0
votes
1answer
20 views

Export List of File Names and URLs

Using either Powershell or other method, I need to export a list of titles of files, their filenames with extensions, their locations, and their URLs into a text or Excel file. This is what I have ...
0
votes
1answer
17 views

How to execute powershell script from server1 for deploying wsp in server2

I am trying to run a powershell script in server1 to deploy WSP file present in server2. Here is my code: $password = ConvertTo-SecureString "password" -AsPlainText -Force $cred = New-Object System....
1
vote
1answer
32 views

Powershell command to update enterprise wiki pages without changing modified, modifiedby + do not trigger ER or workflows

I am working on an enterprise wiki site collection inside sharepoint server 2013 professional farm. now i want to write a power-shell command to update some custom fields values for the wiki pages, ...
0
votes
0answers
18 views

Add secondary column to index

On SP 2013 on prem, I am using PowerShell script to add indexed columns to a list. I have managed to add that, like this: $siteUrl = "http://url" $web = Get-SPWeb $siteUrl $listName = "...
0
votes
0answers
16 views

Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType' from assembly 'Microsoft.SharePoint.Client'

When I try to load "Microsoft.Online.SharePoint.PowerShell" got below error. Not sure where I am going wrong here. Microsoft.Online.SharePoint.PowerShell 16.0.8924.1200 ...
1
vote
3answers
52 views

Can not install SharePoint Online Management Shell

I am trying to install "SharePoint Online Management Shell" when I do so got below error. This application requires the following to be installed: PowerShell 3.0. When I checked my ...
0
votes
1answer
24 views

How do I deploy my Sharepoint solution WSP file using Jenkins?

Can anyone tell me how to deploy a SharePoint solution wsp file in Jenkins CI tool? I have build the Solution in Jenkins and the WSP file has been created. Now I want to deploy it to local server. I ...
0
votes
1answer
32 views

Less than symbol in formula causes error in calculated column when applying site design

I'm producing a site design script for SharePoint Online in PowerShell using Add-SPOSiteScript as per these instructions, and I can create the script and add it to a site design without any errors. ...
0
votes
0answers
7 views

Adding an “Apps you can add” app with Powershell for SharePoint Online for all Subsites

Currently I am running into an issue. I have an app installed from the SharePoint store "Docusign" and it is at the top level site collection. I have to manually go to every subsite and click the gear ...
1
vote
0answers
18 views

Disable minimal download strategy using powershell

I am trying to disable the minimal download strategy but the feature is not available even though the redirection persists. This site is a users Blog site. The Blog link from the MySite redirects ...
1
vote
0answers
25 views

How to know what object is used for sharing in SharePoint online via powershell

I have retrieved a report to extract all the site groups across site collections in SharePoint Online tenant. During this process, I have got an item "sharing links with GUID". how to find what item(...
0
votes
1answer
13 views

How to add wikipage in wikipage library using powershell?

I tried to add a wikipage in the wikipage library using the code provided by Vijai Anand Ramalingam on c-sharpcorner.com. I'm copy-pasting the script here to avoid dead link issues preventing future ...
0
votes
0answers
6 views

SharePoint App force upgrade installed instances

I'm using on-prem SharePoint 2013, which has an app installed. Instances of this app are installed on countless subsites. The app calls on a web-service to get some data. As part of a cloud ...
0
votes
1answer
17 views

SP13: Searching for Check-out Documents

Is there a way to do a site collection search to show all documents that are in checked out state? If possible could it be an OTB feature or maybe a powershell script?
0
votes
1answer
25 views

Enable/Disable site features from powershell

I need to activate the Team Collaboration Lists feature and deactivate the Minimal Download strategy in a user's blog and personal site. I am a farm admin, is that possible using powershell? UPDATE: ...
0
votes
1answer
23 views

SharePoint Online - Find all Infopath Forms in all sitecollection with csv?

I am looking for some help here. I have a need to find all infopath forms in a SharePoint online environment. I need to run through all site collections (alot of them) and write to csv file for ...
0
votes
1answer
18 views

Unable to update the left navigation url through powershell

I am trying to update the SharePoint 2013 on premise portal navigation urls though below powershell. The script is getting executed successfully without any error. But when I am cross checking the ...
0
votes
1answer
28 views

copied folder break inheritance fails

When i copy the folder with in same document library and trying to break inheritance it fails. below is the code for the same. Can any one help on the same Add-Type -Path "C:\Program Files\Common ...
1
vote
0answers
12 views

PowerShell List View Threshold Error when trying to storage quota of a document library

I'm facing an issue when trying to use PowerShell to get information on document library sizes in site collections with SharePoint 2013 on-prem. My PowerShell code is as follows: $siteURL = "http://...
0
votes
0answers
9 views

Powershell script to get all site pages which has yammer webpart

Is there any powershell script to get all site pages (Title, site link) within the site collection, which has yammer web part in SharePoint online?
0
votes
2answers
33 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 : ...
1
vote
1answer
17 views

Flushing the BLOB cache best practice

So i need to flush the BLOB cache on our SharePoint 2013 site. Found the below code on multiple sites but wondering if it should be done out of hours or just during the day. My limited understanding ...
0
votes
0answers
11 views

Powershell - Add a file with systemupdate()

I need to replace a file in a library but I don't want to touch the metadata from desktop file properties. Will systemupdate() let me skip sharepoint metadata so that only the file is replaced without ...
0
votes
1answer
21 views

Powershell Script - Switch All lists and libraries back to Classic

I hadn't opted out, I don't know how I missed the message about opting out but today all of our lists/libraries have switched over to modern. I can no longer switch it back to classic in the admin ...
1
vote
1answer
90 views

How to copy the folder structure and permissions with in the same library

I have a document libray with structure like given below: FolderA->Subfolder1->item1 Subfolder2-->item2 They have folder level permissions . now ...
0
votes
1answer
19 views

Create a subfolder in SharePoint 365

I have the following script that creates a folder named as yesterday's date under the list "Documents". However, I need to create this folder under another subfolder called "FinancialReports" instead. ...
0
votes
0answers
20 views

Using Power Sheel to add web part in share point page

i have a problem in adding web part in empty page via share point online it working without errors but no change in page function AddWebPartToPage ($ctx, $sitesURL) { $pageRelativeUrl = "/Pages/...
0
votes
0answers
14 views

Sharepoint 2010 - Refresh Lists

How Can I refresh 4 lists in PowerShell? My script doesn't work. $web = Get-SPWeb http://Server/ListLocation $list = $web.Lists["Tarefas Geral"] foreach ($item in $list.Items) { $item....
0
votes
0answers
14 views

Powershell script to clear InfoPath cache

I would like to run a powershell script that will clear the InfoPath cache, Can someone help please? Thank you in advance.
0
votes
1answer
26 views

Get all External Users of a SharePoint site using CSOM Powershell

i want all the external users of a SharePoint 2013 site using powershell CSOM or C# CSOM as we dont have tenant admin rights to use Connect-SPOservice command. Is there any script in PnP or CSOM to ...
0
votes
1answer
29 views

Sharepoint 2010 - refresh list job

I need to refresh all my lists in server daily. To refresh one list I use this powershell: $web = Get-SPWeb http://Server/ListLocation $list = $web.Lists["ListA"] foreach ($item in $list.Items) { ...
1
vote
1answer
30 views

Powershell script for Restarting SharePoint Timer Service (SPTimerV4)

On SharePoint log folder so many ".usage" files are creating and not getting deleting. Due to space issue occurring. So We are restarting "SPTimerV4" service manually. We need to scheduled task ...
0
votes
2answers
44 views

Archive old items from one list to another(Archive) list in SP2013 using powershell or SharePoint Designer

We had sharepoint list with 10,000+ items. We need to move (or) archive items to another list which are created by one year back. Means items need to move if created date is less than (or) equal to 30/...
1
vote
0answers
13 views

Custom Upload Page still works for Document Library of SharePoint 2016?

I have a requirement where I need to create one custom upload page for one document library, so I built the code in a webpart control. In that form I have set custom upload control and some meta data ...
0
votes
0answers
10 views

How can I find out which sites are using custom JavaScript in SharePoint online with Powershell?

I have to write a a powershell script for SharePoint Online to find out how many sites are using custom javascript files.
0
votes
1answer
17 views

Add {_UIVersionString} into information management policy setting via powershell

is it possible to set the label {_UIVersionString} into information management policy setting via powershell Thanks! Viktor
1
vote
1answer
13 views

How to enable commandlets for SharePoint Web in PowerShell

I am trying to get $Web.RequestAccessEmail in the following powershell script. but i don't see the cmdlet
0
votes
0answers
27 views

unable to connect with SharePoint site using CSOM

I am trying to connect to SharePoint 2013 site with CSOM using a function with 2 arguments. When i am giving only $x that is site URL as argument then code is working fine but when i am giving two ...
0
votes
1answer
28 views

Set Document ID Prefix programmatically via PowerShell (Sharepoint online)

I am looking for a script to enable DocID and set a Prefix. Found this solution here: http://blog.repsaj.nl/index.php/2015/04/o365-enable-document-id-and-set-prefix-via-csom/ . But how bind into a ...
0
votes
0answers
8 views

Adding a AD group to a SharePoint group on multiple sites using csom

Im currently working on a script that will add a AD group to multiple sites via csom powershell where the sites are loaded from a CSV file. After what i have found online, im trying to use the Add-...
0
votes
0answers
10 views

Find Items with Old Url

Is there a PowerShell script that will help me find an old URL from SharePoint Items? We have saved items from custom lists and links that are used to keep hyperlink and we wish to update all of them. ...
2
votes
1answer
33 views

help with csom script for SPO, adding user to same default sharepoint group on multiple sites

As described in the title, im trying to add a user to the same default sharepoint group on multiple sites with a csom powershell script. (e.g. "Visitors" group) But the default groups has different ...