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,068 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
2k views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + $...
7
votes
1answer
505 views

How to Install Sharepoint Online Management Shell on Powershell 5?

I need to migrate 300K records from my filesystem to Sharepoint Online (SPO). I am on Win7 SP1 and have MS System Center 2012 Configuration Mgr. installed so can't install WMF/Powershell 3 or 4, but ...
7
votes
1answer
2k views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
6
votes
1answer
1k views

Update Custom Forms with Powershell

I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell. I'm not quite sure what the correct approach is. The form itself can be found as ...
5
votes
1answer
145 views

SharePoint Online Management Shell

Is there any way to check site collection document libraries Metadata i.e. (last modified date, owner name) using SharePoint Online Shell?
4
votes
0answers
451 views

Creation of personal My Site Site error

When users visit the My Site root page, they are greeted with the "We're Almost Ready!" message. Their My Site page is never created. When I check a users Personal Site Instantiation State, it shows ...
4
votes
1answer
3k views

Change Sharepoint Online subsite URL

I have a subsite in Sharepoint Online with a web address of https://mydomain/sites/sitecollectionName/subsite Is it possible to change the url to https://mydomain/sites/subsite If I understand ...
4
votes
0answers
532 views

Move multiple site collections from one content database to multiple content databases

Is there a easy way to divide site collection equally between the number of content databases attached to a single web application? I'm having a single content databases where a lot of sites were ...
4
votes
0answers
1k views

How to specify additional CSOM properties to load in a PowerShell script?

In a PowerShell script, I'd like to retrieve the url of the content type hub tied to a site collection. My scripts muse use the CSOM. I tried : $Context = New-Object Microsoft.SharePoint.Client....
4
votes
1answer
1k views

Adding new managed properties with a script in SharePoint online?

I was wondering does anyone know if there is a way to add a batch of managed properties in SharePoint Online? There is PowerShell script for on 2013 for on prem but what about online? Thanks!
4
votes
0answers
992 views

SharePoint microfeed cant be migrated?

I just used a 3rd party software to migrate Project sites data from 1 SharePoint site to another. Worked like a charm except for the microfeed. The tool doesn't support migration of microfeed. Anybody ...
4
votes
0answers
683 views

How can I count the number of posts & comments in a SharePoint 2013 newsfeed?

I need to count the number of posts & comments in a SharePoint 2013 newsfeed webpart on a page in a site. At the moment I can't see how to do this via Site Settings -> Report or Site Settings -> ...
4
votes
1answer
158 views

Can I lock down the user information lists globally?

I want to restrict users from having read access to user information lists within my entire farm. Is this even possible? If so, how can I achieve this with powershell?
3
votes
1answer
97 views

How get ID of modern Site Features

I am using site designs to create new site collections attached to a hub site with the appropriate features enabled, now I seem to have hit a wall between classic and modern features. I have an action ...
3
votes
1answer
443 views

Handling The SharePoint REST API Search Threshold Limit In powershell

We are using SharePoint Online. I would like to search in all sitecollections for the word "passport". I make it working with the REST api in powershell. But I have now only the problem that it ...
3
votes
0answers
129 views

Sharepoint audit reports automation with power bi

I was wondering if this possible. To automate the SharePoint Online Audit log report i.e a user viewing a page of the site from the excel spreadsheet and using powershell (im assuming) to create a ...
3
votes
1answer
176 views

*UPDATE* SharePoint 2016 Auditing

I find myself scratching my head as I know there are audit reports for the site collections, which is good, and I know there are third-party applications that can collate the audit data and present it ...
3
votes
2answers
75 views

Hiding system fields in the document library

I am using SharePoint 2016 and want to hide created, created by, modified and modified by fields. This is in the document library view and not the new, edit or display forms (i.e. if you click on a ...
3
votes
0answers
434 views

Copy items from one list to another with kept versions with PowerShell

I want to copy items from one list to another using PowerShell, but what I would like to keep after copying data is versions or at least multiline of text column that has append feature. I managed to ...
3
votes
1answer
3k views

The Push Notifications feature is not activated on the site

All of a sudden I started to seeing below error with PnPPowershell. Get-PnPContentType : The Push Notifications feature is not activated on the site When I googled I got below article which ...
3
votes
1answer
676 views

Query SharePoint Online Logs

I created a new site collection in SharePoint Online and then created a subsite. The template I used is Teamsite. I did nothing else then adding these two elements. No other modifications. Now I ...
3
votes
1answer
1k views

What is SharePoint (on-prem) authentication realm?

Could anyone clearly explain what is Sharepoint authentication realm (the one set by Set-SPAuthenticationRealm cmdlet)? In what cases do I need to set this realm equal for 2 (or more) farms, and in ...
3
votes
1answer
235 views

Export-Csv outputs pscustomobject NoteProperty values inline instead new line

I have a pscustomobject whose NoteProperty "Members" is populated with values within a loop. $results.Members += $currentGroupMember.Title When I do "Export-Csv" all values within "Members" are ...
3
votes
1answer
2k views

Using Powershell to update an Office 365 List with lookup column

I am wondering if anyone has seen an issue when updating an Office 365 list that contains a lookup column? I have 2 Lists in my SharePoint Online site, the first List is my lookup list that maps ...
3
votes
0answers
791 views

Office 365 powershell, how to get credentials object with MFA

My goal is to extract the recent messages from the message center and push it to another list that is accessible to non-admins too. I found this script in a forum, exports a csv, that is already a ...
3
votes
0answers
250 views

SharePoint Online native tools - Stuck with 2GB per file limit?

I was happy to see that MS increased the per-file size limit for a SPO library from 2GB to 15GB. However, it seems that uploading data using anything other than the browser is still hampered by this ...
3
votes
0answers
160 views

How to remove an 'ill formated' view

My Document Library errors, when trying to go to its settings, or to create a view. It also errors, when accessed with SPD. The logs hint where the issue is: "Application error when access /...
3
votes
0answers
41 views

Remove SPGroups from SP 2013 On-Prem SiteCollection -Special Case

When an item is added in the list, I need to create 4 SPGroups dynamically with the title of the SPList fetched in the ItemAdded method. Due to some mistakes in the event receiver code, the number of ...
3
votes
0answers
920 views

SharePoint Online CSOM: Get value behind list item lookup field

I'm trying to get the value behind a list item that is a lookup field. The list item is a clickable string that has a URL attached to it. Here's a screenshot (German language, though). I want to ...
3
votes
1answer
208 views

Undeclare a Record with only Site collecton admin rights

Sharepoint Online: I have a problem with a list item that was declared as record but now is impossible to undeclare. Despite I am the Site Collection Amdinistrator, when going to Compliance Details ...
3
votes
0answers
1k views

Switching SharePoint Online library experience from classic to modern on Site and Site collection level

We're planning to roll-out the modern library experience to a customer in batches instead of switching over all at once. So we do not want to switch on the modern experience from the SharePoint admin ...
3
votes
0answers
533 views

Fill Target audience field in a list using PowerShell - Sharepoint 2013

I need to set target audience field in a list while populating the list with data. How can I achieve this using PowerShell command. I found this article. But it didn't worked as it throws Column '...
3
votes
4answers
509 views

Restore-SPSite giving error “Access to the path XYZ is denied.”

I have been trying to restore Sp site from our production environment to testing, for this purpose I have got the backup of production site and then copied to my testing environment. Then I have ...
3
votes
1answer
137 views

WebPart not getting refreshed on changing properties from powershell

I edited the Content property of a Content Editor Web part via powershell but when I first view the page, it is not getting reflected. When i click edit once , I see my changes . What could the issue ...
3
votes
1answer
972 views

Powershell CSOM folder.Files.Add(FileCreationInformation) Working earlier, Fails now?

Using Powershell and CSOM, on Sharepoint Online, I have successfully upoaded 300K pdf files w/metadata into folders in document libraries. Today, though, the same code is failing to Add files... ...
3
votes
1answer
1k views

Cannot find deleted document in recycle bin

I have a document library. Someone had deleted a document 3 days ago. Then user needs to restore back to the same location right now. But this document does exist in Recycle Bin, I check the Admin ...
3
votes
0answers
432 views

Setting InplaceSearchEnabled via PowerShell in SharePoint Online

I am trying to create a script to modify several web parts in a site collection so I don't have to go through the tediousness of doing it 50 times through the browser, but I seem to be running into a ...
3
votes
1answer
581 views

Removing Items from Recycle Bin that uses specific Content types

I want to delete custom content type from Pages library but it did not allow me to delete and says "content type is still in use". Then i get to know that i need to delete it from following locations ...
3
votes
1answer
249 views

What permissions do I need to update SiteCacheSettingsWriter with Powershell?

I'm trying to enable and configure output cache on a site collection with Powershell. But I get an Access denied when running the script. Exception calling "Update" with "0" argument(s): "Access is ...
3
votes
0answers
112 views

Sharepoint 2013: Get Items by Term-Tree

I have a list with a Term field. I want all Items that have the Term "Stationärer Bereich:Vertrieb" or "Stationärer Bereich:Vertriebsinnendienst" (Including the subtree Terms). This is my Termset: ...
3
votes
0answers
986 views

How to find total number of pages in a site and count of words in SharePoint site?

I am requested to generate a report that illustrates the number of pages and their corresponding URLs, plus the count of words on a page, and the number of files in that site (word, PDF, images..etc.)....
3
votes
1answer
400 views

How to move SharePoint 2010 list workflows from QA to Staging

Is there a way to move SharePoint 2010 list workflows from one environment to another without the use of "SharePoint Designer"? I know how to Export it to visio and do stuff but my main issue is, it ...
3
votes
0answers
368 views

How can a document with version “1.0” have a status of “Draft”?

I have a set of documents which appear to have no problems in the browser, but when I inspect the properties of the document in PowerShell, it reveals that it is actually a Draft document: PS C:\...
3
votes
0answers
86 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
3
votes
1answer
2k views

Remove Workflow Manager scopes?

Is there any way to remove additional scope that get's created when you create a connection to multiple SharePoint Farms from a Workflow Manager service server? Register-SPWorkflowService -SPSite ...
3
votes
1answer
310 views

Access Crawled Property values using PowerShell

Is it possible to retrieve a list of values for a given crawled property? If so, how would this be achieved using PowerShell? For example, I have a crawled property called 'Forename' and I would ...
3
votes
1answer
62 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
3
votes
0answers
1k views

Install app for SharePoint using PowerShell - permissions on user profiles

I'm trying to install our app using the PowerShell and after running the application I get an error while accessing the user profile data. We are using the following permissions in our app: ...
3
votes
0answers
28 views

How to rename a list-associated SPD2013 WF?

I have 20 sites that all have the same SPD2013 WF - it is a WF that executes on a specific list when an item is added or changed. We goofed on the naming of the WF and would like to rename the WF. Is ...
3
votes
1answer
206 views

Powershell Command builder

I am trying make a c# application which runs sharepoint cmdlets in management shell 2010. I have tried below code: protected void ExecuteCode_Click(object sender, EventArgs e) { ...

1
2 3 4 5
22