Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take 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]

1,152 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
55 views

Getting error "cannot access local farm" when connecting via winrm client from a non-windows machine

I'm trying to connect to a Sharepoint Server 2016 and run Sharepoint cmdlets but I am getting an error saying: "Cannot access the local farm. Verify that the local farm is properly configured, ...
user avatar
1 vote
1 answer
89 views

How to read Assigned To column from SharePoint Workflow Tasks List using Powershell?

I am trying to fetch List details along with associated task columns to export into Excel using PowerShell. I am able to get all columns using following script except Assigned To column to show with ...
user avatar
1 vote
0 answers
41 views

Is there an API or web service for Copy-SPSite?

What API endpoint is called for the command Copy-SPSite? Also, is there a WSDL web service for this command, like there is the ExportWeb service in Sites.asmx relating to the command Export-SPWeb?
user avatar
1 vote
0 answers
89 views

How do I move the Hub Navigation bar to the page header?

I have made a team-site template as the main site of our organisation's intranet frontpage, as well as the sites for each department, and I would like to replicate the communication site navigation ...
user avatar
  • 11
1 vote
0 answers
12 views

What is the recommended/best process in moving SharePoint 2013 from one domain to another in Azure?

There one unique scenario we are facing, where we have SharePoint 2013 on Azure along with SQL too. We have 2 WFE, 2APP and 2 SQl in Azure of domain called xyz.com. Scenario 1:We need to migrate/move ...
user avatar
1 vote
0 answers
87 views

Is there a way to save a site in SharePoint online as a template programmatically (with an API, PowerShell, C#, etc.)?

I have a SharePoint Online site that has custom scripts enabled, and I want to programmatically save it as a template. I do not want to use PnP Provisioning Templates, I want to access the same ...
user avatar
1 vote
0 answers
104 views

SPO list migration from one tenant to another with Graph API and Powershell

I am currently working on a project that has me doing migrations from one SPO tenant to another. I do not currently have access to most popular tools like ShareGate, Metalogicx etc. I mainly have to ...
user avatar
  • 155
1 vote
1 answer
489 views

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential? The Powershell command Get-SPOSite gets all sites on my Office 365 tenant. How could I filter all site ...
user avatar
1 vote
0 answers
223 views

List/Report of all active Shared Links in the SharePoint Online tenant using PowerShell?

Is there a way to generate a List/Report of all active Shared Links in the SharePoint Online tenant using Powershell? I know that we can find that in "Security and Compliance" admin center audit logs....
user avatar
  • 1,450
1 vote
2 answers
159 views

What is client context and role assignments?

This script is used to remove all sharing link on files. My question is: I don't understand what Get-PnPContext is or what RoleAssignment is? I don't understand those commands, can someone explain ...
user avatar
1 vote
1 answer
118 views

How to add multiple groups value in people or group field using powershell script in server side in SP2016

How to add multiple groups value in people or group field using powershell script in server side in SP2016. I am trying to add multiple group names in People or Group filed in list using Powershell ...
user avatar
  • 11
1 vote
2 answers
200 views

Cannot write configuration file while New-SPWebApplication

When I use New-SPWebApplication I am getting error below error in SharePoint 2019 I am using SharePoint Farm Admin account. What can be the reason for it. Some time It will finsih without error
user avatar
  • 1,519
1 vote
1 answer
737 views

remove an access from a specific person to a specific file or folder of Sharepoint et Onedrive using PowerShell

I am actually working on a script that should remove access from a specific person to a specific file or folder. We can share files to person from outside our organisation using Onedrive and ...
user avatar
1 vote
2 answers
70 views

Sharepoint : how to create a navigation link in sharepoint home site automatically when a new site is created using ms teams

As soon as we create a site using teams there should be a navigation link generated in the sharepoint homepage?
user avatar
1 vote
0 answers
26 views

WSP package deployed through Powershell commands not reflecting the changes

There are few custom items like lists,content Types and pages which gets deployed through couple of features. When I directly deploy from visual studio, the custom items are deleted and recreated ...
user avatar
  • 389
1 vote
1 answer
100 views

What does CommentsOnFilesDisabled tenant property do?

There is a tenant property CommentsOnFilesDisabled that has no documentation describing what it does exactly. Does anyone know any additional information? After changing this property at a tenant, I ...
user avatar
1 vote
2 answers
531 views

Powershell script for SharePoint 2010 Site usage Web Analytics Service

By using sharepoint power shell, how we can know all the users accessing sub-sites by using web analytics service
user avatar
  • 49
1 vote
2 answers
558 views

How to change a Private Site logo with PowerShell

I am trying to change the logo of a private site through PowerShell, but whenever I try the system changes it back to a new logo. I add the new logo to the 'Site Assets' library and then use the Set-...
user avatar
1 vote
1 answer
82 views

Add value from a variable to a list via PowerShell

I have a variable that contains column-value (terms) from a page/list $terms = $page.FieldValues["Terms"]; where "$page" is a variable containing the site page. I get another site page as a list ...
user avatar
  • 165
1 vote
2 answers
159 views

How to find all Delve Blogs in the tenant

Recently, Microsoft has announced they are retiring Delve blogs So we wanted to know how to find all the Delve Blogs in the tenant. let me know if there is a way to get this information. Thank you
user avatar
1 vote
1 answer
111 views

Search settings changed in PowerShell not applied

We created a search center in our intranet. We configured the root web of each site collection so that the search uses the search center. We also configured search navigation. Then we made a ...
user avatar
1 vote
0 answers
22 views

Connecting User ID to Search Report Results

SharePoint 2013 allows the search reports to be pulled from site collection level by month and day. The report is helpful but I want to know who did the search. The report seems inaccurate because ...
user avatar
1 vote
1 answer
540 views

Archive or move List Items with Version History and Attachments using PowerShell

I have a large list that I need to archive list items off to a different list within the same site. (I'll make the list into a template to make the archive lists.) The list is an InfoPath list that ...
user avatar
  • 1,282
1 vote
0 answers
49 views

Powershell - How to group rows when using Import-CSV

I have a CSV file with one column, SharePoint Site URLs: Site A Site A Site B Site C Site C Site C How can I group the rows so the I only have unique sites: Site A Site B Site C
user avatar
1 vote
1 answer
205 views

How to get a list of Site Level workflows in SharePoint using Powershell?

How do I get all site level workflows in SharePoint on-Prem (v 2013 and above)? I see a lot of posts on enumerating workflows related to lists but not really for site workflows. Preferably something ...
user avatar
  • 11
1 vote
2 answers
175 views

Modern Themes Not Visible in the Gear Menu (SharePoint Online)

I have just inherited a redesign project from a previous employee. I've never used SharePoint before, but I've done loads of reading and seen many YouTube videos and I've been able to create a custom ...
user avatar
  • 11
1 vote
0 answers
758 views

SharePoint office 365 regional settings

I am planning to update regional settings in Office 365 for SharePoint site and Microsoft Team site with the following code: The question is if the Global admin or tenant admin would have ability to ...
user avatar
  • 1,787
1 vote
1 answer
466 views

Apply-PnPProvisioningTemplate (403) Forbidden, There is no Web named "/SiteURLName/_vti_bin/sites.asmx"

We use Powershell and PNP to create sites and apply tenants. I've had pauses coded into the script to allow time for commands to complete in the past. Lately we've encountered the (403) Forbidden ...
user avatar
1 vote
1 answer
69 views

How to use powershell to organise files into folders SharePoint Online

I have a document library in SharePoint Online that has a large amount of documents which have a column that sorts them. What i want to be able to do if it is possible is use powershell is move all of ...
user avatar
  • 21
1 vote
0 answers
33 views

How to add clienttemplate.js to schema.xml for a SharePoint list using powershell

Can anyone suggest me a code to do the following 2 changes in the Schema.Xml of a list: 1) To change the Type from HTML to GRID. 2) To add the following JSLink: <JSLink>clienttemplate.js<\...
user avatar
1 vote
1 answer
93 views

Script to copy from fileserver to sharepoint and monitor

I am new at powershell scripting. I am asking for help. I have to create a script to upload folders from a fileserver to sharepoint. The script must monitoring that location( folder). And when a new ...
user avatar
  • 29
1 vote
1 answer
827 views

Get site owner email details only from Owner group using Powershell

I need powershell snippet to get site the owner name and email details only from default site owner group Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Add-Type -...
user avatar
1 vote
0 answers
17 views

Trying to update a Document Library field in 150 SharePoint sites

We have 150 customer portals in our SP site collection, all sites are a templated copy of each other - i.e. they all have an Internal Documents, Working Documents and Final Documents. Inside each ...
user avatar
1 vote
2 answers
178 views

Error while hiding field in Edit form SharePoint Online document library

I am getting error message like : Exception calling "ExecuteQuery" with "0" argument(s): "The node to be inserted is from a different document context." Can anyone suggest what I am missing here......
user avatar
1 vote
0 answers
22 views

Get-SPSite pipelining

I'm trying to run the following on a very large farm that has over ten thousand site collections: Get-SPSite -Limit All | Write-Host $_.Url I know that with that many site collections, it would take ...
user avatar
  • 145
1 vote
4 answers
1k 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 Power ...
user avatar
1 vote
0 answers
61 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(...
user avatar
  • 2,176
1 vote
0 answers
141 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://...
user avatar
  • 267
1 vote
0 answers
29 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 ...
user avatar
  • 2,003
1 vote
0 answers
45 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 ...
user avatar
  • 11
1 vote
0 answers
461 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 ...
user avatar
  • 416
1 vote
1 answer
77 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/...
user avatar
1 vote
1 answer
825 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 ...
user avatar
1 vote
0 answers
1k 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 ...
user avatar
  • 11
1 vote
0 answers
60 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"...
user avatar
1 vote
1 answer
30 views

To check who is running scripts in On premise farm

Is there any way to get detailed report of who is running CSOM/JSOM scripts in SharePoint 2013 environment and what those scripts are doing?
user avatar
1 vote
0 answers
101 views

Message error when retrieving a SPOnline Site after creating it using PowerShell

I'm implementing some PowerShell scripts for helping my team create new SharePoint Online sites. One of these scripts follows these requirements: be able to create a site, be able to remove the site ...
user avatar
  • 779
1 vote
0 answers
257 views

How to republish SharePoint 2013 workflows via Powershell farm-wide

I have a SharePoint farm with Dedicated WFM farm which is working fine, Now i am splitting SharePoint farm in to two farms (Farm A and Farm B) but workflow manager farm will be remain same. Everything ...
user avatar
  • 56.7k
1 vote
0 answers
96 views

Is there any PowerShell or CSOM script in order to publish InfoPath forms to SharePoint Online?

I need to automate my task of publishing InfoPath forms to SharePoint Online using Powershell script or CSOM code.
user avatar
1 vote
1 answer
192 views

Update all BCS Field in SPSite using Powershell

When i delete an item in my external list, it's not deleted automatically from the list where i use the BCS Field. I have to click Refresh. I'm using this BCS in many lists. I'm looking for a ...
user avatar
  • 523

1 2 3
4
5
24