Questions tagged [powershell-script]
The powershell-script tag has no summary.
66 questions
0
votes
1
answer
36
views
Can I create a site script that performs the steps below on a SP Site?
(Note: Referring to Modern SP Site below)
The steps:
Changes the look, specifically:
Theme
Header> Layout (to extended)
Header> Theme
Header> Background Img
Header> Site logo thumbnail
...
0
votes
1
answer
63
views
Get-Team cmdlet runs but returns no data
I attempting to create a PowerShell script which will return a complete list of Teams in an M365 Tenancy as a csv file. My script appears to run successfully but it does not return the expected data.
...
0
votes
2
answers
775
views
Query more than 8 Lakhs (0.8 million) documents from SharePoint Online document library using Power Automate
I have a document library with the document set content type and document content type in it. In the document library there is more than than 8 Lakhs (0.8 million) document. In the "My Document&...
0
votes
1
answer
3k
views
Converting DOC to DOCX within SharePoint Online
Based on this solution to convert .xls to .xlsx, is there a way to convert .doc to docx within SharePoint Online?
We migrated a lot of files and folders from NTFS folders to SharePoint online but did ...
0
votes
2
answers
1k
views
Get service account details and their usages in SharePoint Environment
We have lots of service accounts in our SharePoint environment, now we are planning to delete the unwanted service accounts from our environment to keep the environment clean. So, I was checking ...
0
votes
1
answer
39
views
Can anyone provide automate script to add/deploy/update solution in SharePoint 2016
Can anyone provide automate script to add/deploy/update solution in SharePoint 2016. So that developers can run this batch file without help from SharePoint Administrators. And please suggest me best ...
1
vote
1
answer
2k
views
Delete unique permissions of a File or Folder in a document library
I have a document library which has 3 folders in it and inside each folder there is a document (docx, xls, ppt).
My objective is to iterate every file inside my document library and check if It has ...
0
votes
2
answers
535
views
Add and delete Sharepoint Groups from site
Thanks for you time reading this.
We are a Technical School that's using Sharepoint 365 as way to collect files and resources. We have to open a Sharepoint to each class and I'm compiling a Powershell ...
1
vote
1
answer
4k
views
Get-PnPList cmdlet not returning anything
I'm trying to retrieve information from two columns on a sharepoint list in order to use them in powershell. Here's my code so far:
$SiteURL = "https://xxxx.sharepoint.com/sites/xxxxx/"
...
0
votes
2
answers
5k
views
How to get all column and type and internal name in my site by PnP PowerShell
I'm using ModernUI for SharePoint Online.
I'd like to get all List and Library's ColumnName, Type, InternalName in my site by PnP PowerShell.
I did some research myself, but I didn't understand, so I ...
0
votes
1
answer
35
views
Workflow to be run for every specific document or content type?
I will need to look for the solution to implement the manual script initiation for specific file type in the document library (ex. force unlocking a document). Idea is that I will add additional ...
0
votes
3
answers
2k
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
0
answers
378
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
1
answer
193
views
How to get last crawl duration in SP 2013 using power-shell
I'm using the below PowerShell commands to get the last crawl duration. when the Crawl In-progress the 'Crawl Completed' field is empty, I the output as duration in negative values. Could you please ...
0
votes
1
answer
1k
views
powershell script to replace a user Identity with a different identity
I'm having SharePoint 2016 On-premise environment, now we have a requirement as follows.
we have nearly 100 SharePoint Groups, where we had already have many user's identity added as DOMAIN\username ,...
1
vote
1
answer
737
views
security error:script execution is disabled on this system:I can’t access Sharepoint from Powershell
I am in the process of configuring my Sharepoint Framework development environment, I installed node.js and visual code everything is fine but after the powershell level I ran into this error that I ...
0
votes
1
answer
2k
views
Export and get the list of Orphaned users from SharePoint 2016 On premises - using PowerShell
I'm using SharePoint 2016 On-premises server, we have two main site collection, I need to get a list of orphaned users in each site collection.
I've come across this PowerShell script mentioned here
...
0
votes
2
answers
828
views
How to count number of lines and words in a SharePoint online Page
I am requested to generate a report that illustrates the number of pages and plus the count of words on each page, and the number of files in that site (word, PDF, images..etc.).
Is there any custom ...
1
vote
2
answers
1k
views
How to copy a network share directory to SharePoint online using Power Shell
I am trying to write a script using Power Shell to copy an entire Directory (Main Folders, Sub-Folders, and all Files in between) on a Network Share to SharePoint online. The most I have accomplished ...
0
votes
1
answer
90
views
p1 script not running with schedule job
I have SP2010 in WIN2008R2, i have script(datemodifier.ps1) to update the diff of 2 dates in SP list daily, When I run the script manually its updating the list, but when i schedule it with a task on ...
0
votes
1
answer
229
views
How to pick up data using PowerShell from SharePoint Web Parts
We have a manual process at the moment where we have assigned "Content Owners" to out Sites/Sub-Sites. Content Owners, essentially have no greater permissions than regular users, but our Governance ...
0
votes
1
answer
359
views
get list of al users on farm level on SharePoint 2010 application
I am trying run below script on SP 2010 environment for getting list users on farm level. But i am getting error. Can someone please correct me.
Powershell script
Add-PSSnapin Microsoft.SharePoint....
0
votes
1
answer
483
views
Set People picker field with sharepoint group
Is it possible to set a People picker field with SharePoint Group using powershell script ?.
Thank you.
2
votes
2
answers
13k
views
Conversion of csv file to xlsx via Flow or SharePoint
I have a Flow to store email attachments (in .csv format) to SharePoint. Now, I want to use the file in Power-BI from SharePoint. However, I want the file in .xlsx format. Could you please suggest how ...
0
votes
1
answer
351
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. ...