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
17 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
9 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
38 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
46 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
57 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
18 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
24 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
18 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
52 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
55 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
30 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
25 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 ...
0
votes
1answer
113 views

How to get Sharepoint online Modern Site Page's views count

I am trying to retrieve the view count of modern SharePoint site page using PowerShell search API. But the view count on the page and count of viewsLifeTime is different.\ PowerShell output: ...
0
votes
0answers
15 views

Unable to verify file existence using CSOM PowerShell having file name with Unicode character in SharePoint Online

I have a requirement to check if files in my local folder exists over one SP Online Library. I have written CSOM Powershell to verify the same and it is working fine. But where the File's name is ...
0
votes
2answers
22 views

Enable developer dashboard question for SP2016

I failed to find official article about how to enable Developer Dashboard for SP2016. The only one I can find is this old one for SP2010 foundation. The PowerShell script it suggested is : (Get-SPFarm)...
0
votes
1answer
24 views

Restore-SPSite Fails :The operation that you are attempting to perform cannot be completed successfully

I am trying to restore a site collection backup from production on the dev site collection. Old dev site collection already exists, but I am trying to overwrite that with the latest copy. I ran ...
1
vote
1answer
111 views

Reset Document ID prefix in SharePoint Online in PowerShell

I am looking for a way to reset the Document ID prefix for all documents in my SharePoint Online tenant in PowerShell. I have got 4000 site collections and customer prefers to use new prefix in '...
0
votes
0answers
15 views

Powershell Transfer files under multiple subfolders to another folder under same Document Library Sharepoint

I have a document library "Documents1" which has multiple folders (aa, bb,cc, dd, Redundant). Trying to write a powershell script to move files placed in multiple sub folders to folder "...
0
votes
2answers
107 views

Issue with connecting to SharePoint using PowerShell

I am trying to connect to SharePoint with the below PowerShell code. And for my account Multi-Factor Authentication is enabled. $AdminSiteURL= "https://xxxxxxxxx" Connect-PnPOnline -Url $...
0
votes
1answer
15 views

Unable to get correct Navigation settings details for SharePoint 2013 Web using Powershell

I am using SharePoint 2013 Site collection. I am trying to get the Navigation Setting details for each web inside the site collection using PowerShell. Using below lines of code to retrieve the same. ...
2
votes
1answer
49 views

How can I remove “Get the mobile App” button from SharePoint on-premise 2019 site?

How can I remove "Get the mobile App" button from SharePoint on-premise 2019 site? I know the PowerShell to remove it from SP Online. But, it is not working in SharePoint 2019 on-premise. ...
0
votes
1answer
43 views

SharePoint Online, creating multiple list with pnp PowerShell errors out

I am building a site creation script in PowerShell working good for now. I added a part to create lists and add to navigation depending on what kind of site is selected. ` Connect-PnPOnline -...
0
votes
0answers
9 views

Make sharepointform look like infopathform by filling rightcolumn with big memofield

I am trying to recreate an infopath form for my SharePoint 365 list with a PowerApp form. The appendix contains the image with infopath. That is the way i would like it to be. A big memofield on the ...
0
votes
0answers
10 views

Changing the access rights from Read Only to Edit for 1500 list elements for different users

I have a SharePoint list which has about 1500 elements. Every element has a different user who has read only rights for it. I have to change that right to Edit Mode for every user. The problem I have ...
0
votes
0answers
25 views

SharePoint's Search API or CSCOM search didn't return OneDrive site for some of demo tenants

I am using CSCOM to search all site collections for tenant using: https://demotenant1-admin.sharepoint.com/_vti_bin/client.svc/ProcessQuery with following parameter: <SetProperty Id="8" ...
0
votes
1answer
24 views

SharePoint 2010 run powershell as a different user

I am trying to start a workflow with Powershell and when I do that it fails on start since its starting the workflow as a System Account Is there a way to execute the powershell and start workflow as ...
0
votes
1answer
23 views

how to get list of users from OWNERS or designer group for all the site collections in a farm

Is there a PowerShell way that can give me list of owners for all the site collection and sub-sites from all the web applications in a given farm? how to get list of users from OWNERS or designer ...
0
votes
0answers
29 views

Powershell script to split csv file

I have below PowerShell script to split csv file. This script works fine in my local machine but it is very slow in client's jump box. The size of my original file is around 300MB and splitting rate ...
0
votes
1answer
34 views

Sharepoint Download file CSOM - last step

Ok, so this maybe more PowerShell related than SharePoint. Actually, I am looking for the last step of downloading a file: Write-Host "Load file ..." $file = $ctx.Web....
0
votes
2answers
74 views

Sharepoint Online get all files with no checked in version via powershell script with lists larger than 5000

I'm wondering if anyone has a solution to this. I'm trying to write a powershell script, that would get all files that do not have checked in version for lists with files of about 150k and above. I've ...
0
votes
1answer
26 views

How to backup a content database with Backup-SPFarm cmdlet?

According to official KB, the cmdlet should be Backup-SPFarm -Directory <BackupFolder> -BackupMethod {Full | Differential} -Item <ContentDatabaseName> [-Verbose] However when I run above ...
1
vote
2answers
47 views

PowerShell to get all O365 groups

I am working on PowerShell script where I have to get the all the O365 groups using PowerShell with minimal permission. Please share the supporting articles to get the O365 groups and permission ...
0
votes
1answer
42 views

Get a list of 2013 Workflows

I'm trying to get a list of 2013 workflows on our 2013 on prem farm using PowerShell. I'm using the script found here, https://sharepointpixels.wordpress.com/2016/06/23/sharepoint-list-of-2013-...
0
votes
0answers
28 views

Best way to delete PageParserPath elements in web config file using powershell?

I want to remove certain PageParserPath elements from all web config files, depending on the VirtualPath. My query is whether there is a way to do this using SharePoint cmdlets or is it best to use ...
0
votes
1answer
24 views

SharePoint online get the Wiki hidden list using PowerShell

Using PNP PowerShell I am trying to get the SharePoint online wiki hidden list and wanted to un-hide. I have tried following PowerShell scripts to get the hidden list, but it is not getting the Wiki ...
0
votes
0answers
12 views

Microsoft Teams Migration using Graph API not able to maintain Teams/Channels tab ordering in destination

We are able to migrate the Teams and Channels tabs using Microsoft graph API. But the issue is the tabs ordering is not maintain in the destination environment. Could you help me to find the ...
1
vote
1answer
28 views

Powershell+Sharepoint Online: Recycle Bin Recovery to Target Path

Using Powershell, I have found it possible to audit and restore the recycle bin using: Get-PnPRecycleBinItem and Restore-PnpRecycleBinItem. What I cannot find though is how I would go about sending ...
0
votes
1answer
15 views

How to generate a report of what new , modified or removed documents in sp online monthly

I am looking for a ps that can generate a report monthly of whats changed from a docs perspective, at a site collection level to log all new ly added files, removed, modified files etc. Can someone ...
0
votes
1answer
19 views

Powershell to export perms at site collection level

I am looking for a ps scrip that connect to a sharepoint online site collection and export permissions info for all the contents below the site collection, can someone please help.
0
votes
1answer
20 views

Error using SPWebConfigModification to update web.config

I am trying to update web.config using SPWebConfigModification and I am getting the following error: Exception calling "ApplyWebConfigModifications" with "0" argument(s): "...
0
votes
1answer
23 views

Looping through all documents in a site through powershell script

I'm new to powershell and trying to loop through all document libraries of a site using below code: $webs = (Get-SPSite "XXX" | Get-SPWeb -Limit all -ErrorAction SilentlyContinue) $Lists = $...
0
votes
0answers
23 views

The trial period for the product has expired when running Update-SPProfileStore

I am using the PictureProfileUpload3.1.ps1 to import user profile images from AD into Sharepoint 2019 On-Premises. The script runs fine in our Dev and PROD environments, but in UAT we get the ...
0
votes
1answer
30 views

Looping through all documents in a site through powershell

I'm new to powershell and trying to loop through all document libraries of a site and find/output those file locations into a CSV which have a custom column value equals Null. Any link or sample code ...
0
votes
1answer
22 views

Sharepoint Automation via Task Scheduled Powershell script connection issue

I am writing a Powershell script to automate a file upload from a Microsoft Server 2012, but am having difficulty connecting to the Sharepoint site. I am using the SharepointPnPPowershellOnline plug-...
0
votes
1answer
231 views

The underlying connection was closed: An unexpected error occurred on a receive/send

I'm using the below script to copy the files from source library to destination library. Script run successfully but after certain period i am getting the below error. I've close to 20000 items in ...
1
vote
1answer
568 views

PowerShell 'Get-TeamChannelUser' is not recognized as the name of a cmdlet

I am trying Get the Channels users, using the following PowerShell Comments $ChannelUser=Get-TeamChannelUser -GroupId $GroupId -DisplayName $ChannelName It throws an error: The term 'Get-...
0
votes
0answers
40 views

Getting Forbidden error while connecting to SP Online using CSOM Powershell

I have one powershell script where I am connecting to SP 2013 Library to download a file using Server side powershell script. After That in the same script file I am trying to connect to SP Online ...
0
votes
0answers
21 views

How to Get-Team in PowerShell batch operations

I have tried to get the Get-Team from my POC environment using PowerShell Script. It works absolutely file. But when I have tried to run it in prod environment the script got stuck due the Teams High ...

1
2
3 4 5
78