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
17 views

How to move tilde(~) files to separate directory?

In, SharePoint Online environment there are lot of ~ files. examples: ~am ~$ Is there a simple PowerShell script to get all those files into 1 directory?
-1
votes
0answers
22 views

Powershell pnp for copying all site assets libraries

Need to build a script that copies all site assets libraries from a given on-premise site collection to online site using Powershell PnP. Please help! I am new to Powershell PnP. Need all the site ...
0
votes
2answers
27 views

how to find whether i am using infopath form or sharepoint list form in SP2010

I am keen in learning more on infopath. How to know, whether we are using custom infopath form or sharepoint list form. Is there any way to find which one we are using for creating items on the list ...
1
vote
0answers
16 views

Get user name & mail id from Sharepoint Popularity Trends

Is there any way to find the name and email-ID of unique users for sharepoint library from powershell. I found the count from "Popularity Trend" excel,but i want the users details. I am sharepoint ...
0
votes
1answer
24 views

How to add multiple users in Multi-user People Picker field (Person or Group Field)

I want to add multiple users in multi-picker person field in SharePoint list. I tried below code but always getting an error that: New-object : Cannot find type [Microsoft.SharePoint....
0
votes
0answers
13 views

How to set NavigationNode AudienceIds

In a recent CSOM update by Microsoft (see here), the AudienceIds property of the NavigationNode has been made public I've been trying to set an Audience for the node using Powershell but so far no ...
0
votes
3answers
25 views

Unlike what is mentioned on many articles, using SystemUpdate() is able to our enterprise wiki pages without creating new versions

I am working on an enterprise wiki site collection inside sharepoint on-premises 2013, and i want to update a field named "PageNumber", without affecting the modified, modifedby & version number, ...
0
votes
2answers
22 views

How to check permissions per specific user for all sites in SharePoint Online

How can I check (create csv report) all permissions per specific user for ALL SharePoint site collection on SharePoint Online tenant? Is there PowerShell script for that as I'm not aware of a report ...
0
votes
0answers
12 views

Editing Content Types in Sub-Folders of a Library

We have 10,000+ documents to update the content type on. We cannot find a way of doing this manually, require some sort of script that would enable us to do this. I have found scripts that change ...
1
vote
1answer
28 views

Mount-SPContentDatabase rollback after upgrade

We need to move/use a content database from old to new web application. Scenario goes like: Detach content database from Old Web Application with Windows Classic Authentication mode Attach content ...
0
votes
0answers
16 views

Set-SPOUser : File Not Found

I have a script that adds a user or group to everyone one drive for business. The input file has a list of users that the script run against. Below is the set-spouser command. Set-SPOUser -Site $...
0
votes
1answer
12 views

Editing a content type using Content Type that doesn't exist in the Content Type Hub

We deployed some Site Collections using templates that weren't linked with the Content Types on our Content Type Hub, in fact, we have never really used the ct hub. All our Site collections have a ...
0
votes
0answers
12 views

Update items in multiple site collections

I need to update a high number of files throughout all site collections in our tenant based on a specific value in a file attribute. How should I go about that?
2
votes
2answers
28 views

unable to delete sharepoint home library

I'm trying to delete the home library as it is not needed anymore. Unfortunately, there isn't a 'delete library' option under the permissions section. Does anyone know how to delete this library? I ...
0
votes
0answers
26 views

Rolling out new description for existing Content Type

over the past few days I have been trying to update the content type description on a site collection. I have been doing this using SharePoint Designer. Unfortunately, when I push to Site the ...
0
votes
2answers
24 views

Powershell script to change a user first and last name for sharepoint 2010

I have a user who name is John Doe for example. And his email was doej@gmail.com and he left the organization after a while and we had a new user who name was joseph Doe and we created the same email ...
0
votes
1answer
10 views

Powershell to replace string in snippet in default.aspx

I have a requirement to replace a style section by appending in a new @import url for every default.aspx page in our farm. The problem comes in because this area might look like: <![CDATA[<...
0
votes
1answer
26 views

to connect to a site having form based authentication with powershell csom

i want to connect to a SharePoint 2013 site having form based authentication using powershell CSOM. With VS i can connect with X-FORMS_BASED_AUTH_ACCEPTED header. What alternative i have to use so ...
0
votes
1answer
28 views

submitted item user need to get email receipt in sharepoint list 2013

Suppose when user submitted item in SharePoint list, he\she need to get email confirmation as your item submitted and sent request to IT Desk as message. And also in a list we have one column name as "...
0
votes
2answers
22 views

powershell script for fixing default URL to SharePoint list column

I am trying fix default URL for Hyperlink column in share point list and getting error. Please correct me. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Configuration ...
1
vote
1answer
22 views

Sharepoint storage recommendation for recycle bin? (with a storage limit of 10GB)

Our users from O365 are able to use OneDrive. We set the OneDrive storage limit to 10GB. In the last few days, some of our users report that they receiving a mail like: Your onedrive is out of storage ...
0
votes
1answer
8 views

Powershell download image using current user credentials

I have a SharePoint2013 url, i need to download two image files and compare its size in powershell. Is it possible to compare two image file's size and dimensions without downloading it to local Or ...
1
vote
1answer
23 views

How to create site collection with blank site template in SharePoint Online

Is there any way to create a site collection in SharePoint Online using the blank site template, STS#1 via PowerShell? I have attempted to do so already using the New-PnPTenantSite cmdlet and ...
1
vote
1answer
16 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
3answers
34 views

List of all document libraries that have versioning turned off in SharePoint Online

just wondering what the powershell command would be that would allow me to get a list of all document libraries that have versioning turned off in our SharePoint Online site. We are working on ...
0
votes
0answers
33 views

Delete All Files in A SharePoint List

I would like to delete all documents in a SP List named RecordsDocument. Below is my current script: $web = Get-SPWeb "http://url.com" $Libraries = $web.Lists | where {$_.BaseType -eq "...
0
votes
0answers
17 views

Sharepoint 2013 Workflow Stuck in starting when executed from powershell

URL of the Site $web = Get-SPWeb -Identity "https://mysite/sites" Get the Workflow Manager. $workmanager = $web.Site.WorkFlowManager Name of the list $list = $web.Lists["Picture Library"] ...
0
votes
1answer
39 views

How to import multiple users from CSV to SharePoint list User field?

I am trying to import a CSV to a SharePoint list which is working for all the field types I need except where the field is Person or Group and it allows multiple selections. I have a Person field ...
1
vote
1answer
49 views

Update a site column Display name using PnP, to allow me to use existing Display Name

I am working on sharepoint online classic team site and i created a new site column using the site columns UI, as follow:- where the site column gets its display name and internal name as "...
0
votes
1answer
21 views

List of pages where app is installed? Hopefully via PowerShell

Scenario: I am migrating a bunch of apps to the cloud and I'm trying to justify if they are being used before I rewrite them (they are oooooold). We are in SP2013 on-prem currently, Problem: I need ...
0
votes
1answer
16 views

Changing a folder to a One Note Document in CSOM for SharePoint

I am trying to amend the Prog-ID on a Sharepoint folder so I can change it to a One note document. Here is my code in CSOM, but it just says Prog-ID is read only, but I have read this can be done, ...
0
votes
0answers
26 views

How to access the Security trim for SharePoint Online using Powershell

I have been trying to access the securitytrim (_layouts/15/SiteNavigationSettings.aspx)context under the sitenavigationsettings page in sharepoint online. I can do them easily for the on premise ...
0
votes
0answers
17 views

Can we get Search related reports for a particular Subsite in SharePoint online?

We have a sub-site in SharePoint online under a site collection. Can we get these reports for that sub-site alone either out of the box or through powershell? • Top queries by day/month • No ...
0
votes
1answer
28 views

Script to find all items that do not inherit permissions for Sharepoint 2007

I was wondering if there is a script or two that can be run to find out all items that have specific unique permissions and also list WHO has access to the items? I need to migrate over 3 million ...
0
votes
2answers
38 views

PS Script: view all unique permissions for site and subsites

I inherited a SharePoint Online old UI env and the client would to get a overview off all current security settings. I've found multiple tools (SysKit, Tru Sp auditor, ...) who will do almost what I ...
0
votes
1answer
17 views

Date and Time format with ParseExact using Powershell

I have a single ligne column (Called : Next Due Diligence Date) in my sharepoint list where i have a date with "MM-YYYY" format. I want to parse it to "01/MM/YYYY" For this, I tried the Code below : ...
1
vote
1answer
36 views

Add-PnPNavigationNode - How to set node order?

Quick question: Does anyone know of a way to change the order of the nodes in let's say the QuickLaunch nav when adding them via Add-PnPNavigationNode? I only know of the -first parameter. Thanks a ...
1
vote
1answer
48 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
12 views

How to migrate SharePoint Workflows using PowerShell?

I am migrating subsites to a different site collection using Export-SPWeb and Import-SPWeb. However, I am losing all OOTB workflows as well as SPD workflows via this means. The SPD workflows exists ...
1
vote
0answers
42 views

POWERSHELL Webclient Download/Upload giving “The request was aborted: The request was canceled.”

The powershell code to download and upload file from Sharepoint is throwing error for both download and upload functions. Error is : Exception calling "UploadFile" with "3" argument(s): "The request ...
0
votes
0answers
14 views

how to access SiteNavigationSettings in sharepoint online using powershell

How to uncheck securitytrim under SiteNavigationSettings in Online using Powershell. I believe we cannot use SiteNavigationSettingsWriter(used for OnPrem) for Online
1
vote
1answer
67 views

Can I use PnP PowerShell to set Conditional Access Policy on individual sites?

Using SharePoint Online Management Shell and Set-SPOSite I can set the Conditional Access Policy on individual OneDrive sites. Is it possible to do the same thing with PnP PowerShell? I can only find ...
0
votes
0answers
15 views

Exclude OU from people picker

On our SharePoint 2013 environment, we have 2 domains attached and are trying to remove the content of an OU of the format: company.co.uk\group\subgroup I've tried various options, including $wa....
1
vote
1answer
13 views

Required rights to start crawl

Boss wants to start/stop a specific crawl remotely. Thought about using a pssession cmdlet to test. However, I want to use a specific account to do so, with just enough rights to to start and stop ...
1
vote
0answers
14 views

How to update a site collection property bag with xml like data using powershell?

I've tried this: $spSite = Get-SPSite -Identity http://mysitecollectionUrl; $spwWeb = $spSite.OpenWeb(); $xmlFileContent = GetContent -Path ./myXmlFile.xml $spwWeb.AllProperties["myPropertyBagKey"...
0
votes
1answer
9 views

provide teamsite template trough sitescript: cannot convert Object[] to string

I made a (simple) sitescripttemplate in JSON which I would like to make available for all the users who can create a site. The inconvenience lies in the fact I only got it working which I write the ...
0
votes
1answer
24 views

Get the log out of list update Powershell script

I have following powershell to create new list item from a CSV file and it is working perfectly fine in SP Online environment. we are making some changes in this list to have the Title field hold ...
1
vote
1answer
19 views

How to export content of blog posts for future migration?

I would like to export the content of all blogs (excluding personal blogs) in SharePoint 2013 on prems. The purpose of that is to migrate later in a different platform. Is there any out of the box ...
1
vote
1answer
25 views

How to disable access request in SharePoint Online using CSOM

I am trying to disable access request using PowerShell CSOM. But when i try to set RequestAccessEmail to "", it does not work if the first radio button is checked. It will work only if the second ...
0
votes
0answers
6 views

Stopping RoleAssignments.Remove(sp principle) from impacting folders with broken inheritance

In PowerShell i have a folder with Unique Assignments, and sub folders (3 or 4) one of which has also got unique Assignments. I have a user "A" that has contribute to the top level folder and ALL of ...