People who code: we want your input. Take the Survey

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
1
vote
2answers
117 views

Is there a Javascript report for all Lists and Libraries in a site for SP 2013?

I know PowerShell will do this, but I don't have access. So just using javascript, is there a script that can do item count, date modified, library or list, URL, and times viewed for all lists and ...
2
votes
2answers
86 views

SharePoint Online Management Shell - PowerShell - Set-SPOSiteGroup - update SharePoint Group permissions for subsites

I migrated from SharePoint 2010 to SharePoint Online with a 3rd party tool - background knowledge. The Security Group was in a local domain. I found an equivalent SharePoint Group group that I would ...
2
votes
2answers
246 views

Retrieve list of a user’s permissions in Sharepoint?

Is there any way in SharePoint 2016 to get a full list of all permissions that has been granted to a user? I.e. a list including the permissions that is set on the object level. For example: if Alice ...
2
votes
1answer
68 views

PowerShell PnP Unable to get file versions in big files

I'm using OneDrive (office 365 account) as a cloud backup, and I got a problem with the versioning system as for big files (outlook .ost and .pst mainly) it keeps generating new versions for the file ...
0
votes
1answer
42 views

How to merge two lists of different domains with same columns into one new list with a new column categorizing the merger?

I have 2 lists: Student (lies in student domain) Employees (lies in employee domain) They both have same columns. I would like to create a new merged list which should also include a column called '...
0
votes
2answers
37 views

PS Script for retrieving all sp designer 2010/2013 workflows from sp 2013 farm

i am looking for some help in regards to a ps script to fetch spd 2010/2013 workflows from sp2013 on prem. Can someone please help with ps, i would like to export it to a csv file if possible
0
votes
2answers
598 views

PnP PowerShell to get all lists

I have a question regarding the PnP Powershell and the usage. So basically, I've created a simple foreach to iterate all subwebs to print a detail froma list. But it does not work as supposed. It ...
0
votes
1answer
69 views

Powershell: get items from a list

I'm struggling with weird issue, I'm trying to get the items from a list on a sharepoint Site, I made a very simple script for testing purpose: Add-PSSnapin Microsoft.SharePoint.PowerShell -...
0
votes
1answer
43 views

Getting Task List Comments Field value as blank while retrieval through SP 2013 PowerShell

I am referring below blog to copy one Task List item to another archival List in SP 2013 Portal. While copying the list items from source list the Comments field value for each item in source is ...
1
vote
1answer
77 views

How to use Site Design to remove default items from new sites?

very new to SharePoint and I've been asked to set up new site design templates for SharePoint online. While I've managed well enough to create and add new site designs, I'm struggling with the ...
0
votes
1answer
31 views

Run PowerShell Script on a Mounted Drive to Copy Files

I have written a PowerShell script that copies files from one mapped drive to another. Script runs fine when I run through PowerShell or command prompt. It mounts the both drives first and then wait ...
0
votes
0answers
195 views

create folder in SharePoint library using graph api

My below PowerShell code successfully upload the artifacts from my azure Devops pipeline in a document library in my SharePoint Site. I would like to do this upload in a folder which is created each ...
1
vote
3answers
363 views

Delete Comment Box in right side of SP items

How do I remove the COMMENT box showing in the right side of SharePoint list items? It just shows up recently with no reason. Thanks much
0
votes
0answers
28 views

Way to get user info by querying “OnPremisesUserID” instead of UPN?

We have a PowerShell script that needs refactoring. What we would like to do is query SharePoint to see if a user exists by their "OnPremisesUserID" property instead of first having to query ...
0
votes
0answers
26 views

C#, PowerShell to copy files from File share folder to SharePoint on prem doc library

I am looking for some help to either have powershell code or c# console app to automate copying/moving of files from file share to SharePoint on prem 2019 doc library. If the file already exists in ...
0
votes
1answer
60 views

Remove a user account from user info list without being a site collection admin

I am trying to remove a cached user account added in more than 18000 sites. for that I have been trying below PNP script: $displayName = "DisplayNameOfAccountThatNeedTobeRemoved" Get-...
1
vote
1answer
16 views

How to store users from another site in a list - PowerShell

I'd like to make a report of all sites in all of my web applications, and store site owners in one of columns. I am using PowerShell. I can retrieve the owners using $Root.AssociatedOwnerGroup.Users ...
0
votes
1answer
41 views

Sharepoint 2013 - Pop-up window before sharing to everyone

I'd like to warn users before sharing a file or a site to "Everyone" by showing a pop up. Is there a way to do this ? Otherwise, is there a way to block sharing to everyone ? Thank you for ...
0
votes
0answers
45 views

Hot to create a link for 'People with existing access' using powershell

Hoi For a customer i need to create links to documents that also work if the document moves or is renamed. The links need to work for people with existing access .. so that also external people can ...
0
votes
1answer
11 views

Can someone please help me with my WebApp backup using PowerShell?

I have a WebApp called Brett - WebApp that I'm trying to backup using PowerShell and for some reason, it keeps complaining that it can't find that item. I've created a folder under my C:/ drive called ...
2
votes
3answers
201 views

How to delete rows from a SharePoint list using PnP PowerShell?

I am using PnP PowerShell to access the SharePoint Online environment. How can I delete rows of a SharePoint list?
0
votes
2answers
145 views

why i am been automatically login when running this command “Connect-PnPOnline -Url ”https://***.sharepoint.com/sites/ApprovalProcess/“ -UseWebLogin”

I run the following PnP command: Connect-PnPOnline -Url "https://***.sharepoint.com/sites/ApprovalProcess/" -UseWebLogin Now a dialog will open and login me automatically, and when I try to ...
0
votes
1answer
66 views

Set-SOPSite does not apply sharing setting

I'm trying to set the Sharing setting of a site in a provisioning script. After creating a Team site (classic experience) site, I want to set the sharing to new and existing users we have set in the ...
0
votes
1answer
514 views

Can't Import Microsoft.Online.SharePoint.PowerShell

I am currently trying out the Hybrid Search of SharePoint (2019) and am facing issues when trying to import 'Microsoft.Online.SharePoint.PowerShell'. I get the following message: PS C:\Users\username&...
0
votes
2answers
63 views

Does Set-PnPDefaultColumnValues support DateTime field in SharePoint Online document library

I am using Set-PnPDefaultColumnValues to set default values in document library in SharePoint Online and one of the column is DateTime. When I run this cmdlet for DateTime field I don't get any error ...
0
votes
0answers
13 views

Multivalued user field shows wrong values after adding users with PowerShell

What I have I am using a PowerShell script to populate a column with site collection owners from multiple web applications and their sites. (I'm using SP 2013 on premise). I retrieve owners from a ...
0
votes
1answer
145 views

How to create modern page in SharePoint online using CSOM Powershell

I want to create modern page in a modern site using CSOM PowerShell instead of PNP. After creating that I need to configure list and Events we part in that. Please guide me on this. Thanks in advance!
0
votes
1answer
55 views

Cannot index into a null array

I am running a simple code in PowerShell but i get the error Cannot index into a null array. I am new in PowerShell, but basically i am traying to delete but first view all records from a big list ...
0
votes
1answer
219 views

Get SharePoint 2016 workflow inventory with the last run time

I am running the below PowerShell script to get the all workflow in a given web application: #For SharePoint 2007 Compatibility [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft....
0
votes
1answer
84 views

Permission issue with Invoke-PnPQuery

I am trying to run the code below to update the "noCrawl" property but I am facing an issue with Invoke-PnPQuery: Connect-PnPOnline -Url $url -Credentials $cred $Web = Get-PnPWeb $Web....
0
votes
1answer
52 views

SharePoint - Using Powershell to get site information

I am trying to get the following information from all my sites. Site Name, Site URL, Users with Full Control(in groups or not), User Email I am able to get the Site Name and Site URL with Powershell. ...
0
votes
0answers
24 views

A parameter cannot be found that matches parameter name “NoB2BSiteUpgrade”

I tried to use the mount database with NoB2BSiteUpgrade like below Mount-SPContentDatabase "MyDatabase" -DatabaseServer "MyServer" -WebApplication https://sitename -...
0
votes
1answer
82 views

How to add Docusign App to all the subsites using powershell or selenium?

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 ...
0
votes
1answer
32 views

Backing up SharePoint Online ( Office 365 Cloud) using scripts

Is it possible to write scripts to backup a SharePoint Online site through scripting ? I have seen Power Shell scripts which are used to backup SharePoint site but I am not sure if they can be used to ...
0
votes
2answers
94 views

Powershell script to get all the Read-Only columns inside a list

I have 4 custom lists which i want to replicate manually inside another tenant. now i can access the list content type and re-create the columns, but how i can know if the list have any Read-Only ...
0
votes
1answer
18 views

PowerShell to Break Permission Inheritance for all document libraries in a Site

There are many document libraries in in sites instead of going each document library how can I write PowerShell to Break Permission Inheritance for all document libraries in a Site ,
0
votes
1answer
23 views

Add event to personal calendar for SPO without using Automate

We need a logic to add event to M365 users' personal calendar according to a company calendar (saved in SPO). We didn't have Power Automate plan so it is not an option. Could we use SPD2013 workflow? ...
0
votes
0answers
10 views

Custom Communications Template with right column

The default Communications template Hero display occupies the full length of the page and has one large image block on the left half of the page, and 4 small image blocks on the right half of the page....
0
votes
1answer
254 views

PnP powershell to enable documents to open in client app

I can enable this using the site settings, but I am looking to write a PowerShell script add into a PnP template to enable documents to be opened in the client application vs in the browser. This is ...
0
votes
0answers
20 views

Is there a recommended step-by-step guideline regarding converting/migrating of nested subsites into a flat site collection structure?

I am facing a challenge of moving the company intranet from a structure of nested subsites to a flat structure of site collections. The intranet is hosted on SharePoint Online and is planned to be ...
0
votes
1answer
303 views

How to get when a site collections was created using the Get-PnPTenantSite command

How to get when a site collections was created using the Get-PnPTenantSite command? For example when i do Get-PnPTenantSite -Filter "Url -like '/mysitecollection'" -Detailed The properties ...
1
vote
3answers
160 views

How can I set an existing text column's maximum length with PnP Powershell?

I'm trying to add a text field to a document library with PowerShell PnP and set the maximum string length to 4 but I can't seem to figure out how and I'm getting nonsensical outputs. When I add the ...
0
votes
2answers
23 views

Mange access requests heading to one single person for all sites

To Manage the Access requests to access the sites, I've to configure access request settings in SharePoint 2016 on premises ,by Going to --> Settings -->> Site Settings -->Click the "...
1
vote
1answer
28 views

Best way to chain together two SPO cmdlets

In the Sharepoint Online Management Shell my goal is to call the cmdlet Invoke-SPOSiteDesign (doc) with one fixed Design (i.e. the -Identity parameter) onto all SPOSites on my tenant. I can get all ...
0
votes
0answers
27 views

Data Base in Read-only mode when creating a SharePoint application

We created out new SharePoint 2019 Farm of 3 SharePoint Servers and 2 SQL Servers (Cluster). When I try to create a new web application I get an error: Cannot update database on SQL Server instance ''....
0
votes
1answer
20 views

Cannot script check in of deeply nested draft documents using PnP

I have a site that was just migrated to SPO, and had "require checkout" turned on by default on the Documents library. Users have since bulk-uploaded a few hundred docs without checking them ...
0
votes
3answers
116 views

several site collection add into “Readonly” mode using powershell script

We have 100+ site collections on csv file and we need to mark all sites into "Read Only" mode access based on csv file using powershell script. Anyone suggestion highly appreciate. we am ...
0
votes
1answer
127 views

Map SharePoint 2016 On-Prem Document Library as a Network Drive with PowerShell

I am trying to map a SharePoint 2016 on-prem document library as a shared drive. I can map it manually but I am trying to do it with PowerShell my document library url is http://mysharepointinstance/...
0
votes
0answers
43 views

SharePoint REST (Top & SkipToken) With PowerShell?

I'm using PowerShell to query SharePoint online REST endpoint. (/_api/web/) I have a large list (2800) items, and I either need to grab the top results after sorting or page through it to load it into ...
1
vote
1answer
106 views

Update External Sharing Setting via powershell for a modern site collection

I am looking for some help with pnp powershell to see if below would be possible to do: Once a modern team site collection is created, I would like to set Sharing setting for the same to 'New and ...

1 2
3
4 5
79