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 ...

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Installing Install-SharePointPnPPowerShell.ps1 - PnP-Powershell responsive package

I'm trying to install the Install-SharePointPnPPowerShell.ps1 but i'm stuck with the options listed. I want to use the PNP-Poweshell responsive package. I typed in " SharePoint Online" and enter but ...
0
votes
0answers
13 views

Get .app path after publishing SharePoint hosted app

How can I get the path of the new .app that's created on publish? I want to use it in a post-build event (powershell). Obviously the path pops up after publishing so I know where it is, just can't ...
0
votes
0answers
12 views

Register-SPWorkflowService : The remote server returned an error: (404) Not Found

My environment consists of two servers, which are as follows: SharePoint 2013, installed on Windows 2008 R2 Workflow Manager 1.0 (version 2.0.20922.0), installed on Windows 2012 R2. This box does ...
0
votes
0answers
21 views

Load SQL and SharePoint in PowerShell script

I need to create one PowerShell in which i am using SQL and SharePoint both. In my development environment it works fine because there is single server for Content DB server and WFE server. But in ...
0
votes
0answers
17 views

Powershell script to automate, attaching workflow with association form data

I have a custom workflow with custom association form and my requirement is to attach the existing custom workflow to any of the newly created site and provide the values to the association ...
0
votes
0answers
21 views

Associated owner group is always null

I am using PowerShell to create site collections, and add users by code. I add users as visitors, contributors and as owners. In my powershell code I can get both the Visitors and Contributors group, ...
0
votes
0answers
13 views

Alerts Changed via Powershell do not show updates in SubEdit.aspx

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert ...
0
votes
0answers
24 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call ...
0
votes
0answers
13 views

How do I get a document set into a Powershell array instead of a SPListItem

I'm writing some powershell to supplement a 3rd party application. I'm trying to get a group of specific document sets into an array. the problem is the array is being populated as SPListItems, not ...
0
votes
0answers
25 views

Cannot delete item that “does not exist”

I can see the item in the browser and I can find and return the item in powershell, but when I try to delete the item, I get "Item does not exist. The page you selected contains an item that does not ...
0
votes
0answers
15 views

SharePoint Powershell rekove site-permissions

Based on a .csv with all the students, i am creating a subsite for each schoolclass and a document library for each student. I am breaking the inheritance for the sites and libraries, but the Admin ...
0
votes
0answers
27 views

SPO Management Shell: ConvertTo-SPOMigrationTargetedPackage

I've been having some problems with the SharePoint Online Management Shell that I hope someone here can help me out with, as I quite frankly think the error documentation is scarce, to say the least. ...
0
votes
0answers
22 views

Powershell Script to find URL's on content pages, lists and libraries that point to a specific url in SharePoint 2010

I'm trying to search through SharePoint 2010 to find links that point to a broken URL using PowerShell. Is there an easier way?
0
votes
0answers
33 views

Sharepoint 2013, access Most Popular Items in Library via Powershell

I'm creating a script to get some of the statistics SharePoint 2013 offers in a single file. The problem I'm facing is that I'm not able to get the most popular items for my document libraries. My ...
0
votes
0answers
28 views

How to deactivate webparts using powershell script

I want to deactivate forum and note board web part form my SharePoint site using powershall script. Any help please ? Thanks in advance :)
0
votes
0answers
18 views

Get size of any particular generic list using power shell

How can I retrieve size of any generic list. I know how to calculate size for document libraries and List item attachment. But not sure about any particular list item or generic list. ...
0
votes
0answers
12 views

SharePoint Online Management Shell, Search commands

I am having an issue with the global search center on Office 365, I have set the Global Search Center URL in the admin portal however it is not being picked up by all sites. I am still being taken to ...
0
votes
0answers
28 views

What's the c# equivalent of New-SPClaimsPrincipal in powershell

I am using following powershell command to get AD group claim from FQDN of AD grp $ADclaim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuer "trustedIdentifierName" -ClaimValue ...
0
votes
0answers
130 views

The specified user could not be found." with EnsureUser with Powershell

I was trying to get a user with EnsureUser to make sure that if the user doesn't exists on the site collection, it is added right away. Write-Host "LoginName" $usernameau #this prints ...
0
votes
0answers
25 views

Add custom tiles to waffle menu in O365 using Powershell Script

I have a requirement to add custom tiles in the waffle menu of O365. I am looking for a Powershell script for this implementation. Please guide.
0
votes
0answers
15 views

Looking for a script to show where a solution is active in SharePoint 2010

I'm able to see that the solution is globally deployed (in CA) and I am also able to get the SolutionID with no problems. I'm looking for a way to show everywhere the solution is actually active and ...
0
votes
0answers
21 views

PowerShell Report on files uploaded during a certain time period

I'd like to generate a report using PowerShell that will tell me which files have been uploaded into a document library within a certain time period. Ex: The last month. I found this script which ...
0
votes
0answers
8 views

Cross Site Collection Boundary for SPFieldLookup

I am looking for a solution similar to this post, Cross-site and SPFieldLookup, but I need to cross a site collection boundary. Is this possible with modifications to the powershell on the posted ...
0
votes
0answers
23 views

Get-SPLogEvent returns nothing

I use Get-SPLogEvent PowerShell command in order to retrieve ULS logs by following below link. https://technet.microsoft.com/en-ie/library/ff607589.aspx However, it returns nothing; neither error ...
0
votes
0answers
30 views

The following exception occurred while trying to enumerate the collection: Access is denied

I am trying modify content located in an unattached content DB. But I am having trouble accessing the lists. Here is my powershell code: $db=Get-SPContentDatabase -ConnectAsUnattachedDatabase ...
0
votes
0answers
30 views

Is the SharePoint Online list of Site Collections actually a List and how can I access it?

When a user with the correct priviliges opens the SharePoint section of the O365 Admin Portal the first thing they encounter is a long list of site collections with storage quotas and site ...
0
votes
0answers
16 views

Creating multiple sharepoint sites & need to Add logo/cutom theme for those sites which newly created

This is my script. $csvfile='C:\CSVFilepath\bulkSitecreation.csv' Import-csv $csvfile | Where {New-SPSite -Url $_.Url -OwnerAlias $_.OwnerAlias -SecondaryOwnerAlias $_.SecondaryOwnerAlias -Language ...
0
votes
0answers
17 views

Add existing content type to “new” button

I have the following code that adds a content type to a document library (sharepoint 2013) and it works fine. However I now need to make sure this new content type is added to the list of content ...
0
votes
0answers
67 views

PowerShell calling Sharepoint 2013 REST API to update list item

After attempting several different examples I am unable to update list items using the Sharepoint REST API. I receive back a 400 error from the request. The creplace is due to Sharepoint sending ...
0
votes
0answers
19 views

PowerShell Script - list of MySite (OneDrive) quota usage

I am looking for a PowerShell Script that can export a list of our SharePoint users with the information of used quota (Total Quota, Used, Free, ...in Megabytes). I have only found the scripts where ...
0
votes
0answers
139 views

Invoke-WebRequest : The remote server returned an error: (401) Unauthorized

I am getting below error while running below command for SharePoint url from powershell. Invoke-WebRequest -UseDefaultCredentials -Uri http://spurl Invoke-WebRequest : The remote server returned ...
0
votes
0answers
75 views

How Can I copy Publishing Pages & Site Pages with WebParts to another site collection in SharePoint Online?

I am looking for a solution which can help me to copy Pages (Publishing, Site etc..) from one site collection to another site collection in SharePoint Online. To meet this requirement I have tried ...
0
votes
0answers
24 views

Connect to a SharePoint 2010 site having SSO authentication using Powershell

I am trying to connect to a SharePoint Site having an SSO authentication using PowerShell. But i am unable to do so. Please note, I am trying it from an external server so i have to do it using ...
0
votes
0answers
26 views

SharePoint Online PowerShell Custom Group in Site Settings

I know how to use PowerShell to create a new SharePoint Site Settings link, but I cannot seem to find how to create a custom group within site settings. Here is the code for creating the Custom ...
0
votes
0answers
34 views

WarmUp script that handles ajax / rest request - System.Net.WebClient

It seams that my warmup script does not work as expected. In my personal.aspx (mysite) we got several ajax /rest request that list several user data (lists, user properties, etc) that runs on ...
0
votes
0answers
94 views

Exception Message: Exception calling “ExecuteQuery” with “0” argument(s): “Error=Value=InvalidArgument”

I'm new to Sharepoint Online and Powershell. I tried to convert this example from https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.client.file.startupload.aspx to run with ...
0
votes
0answers
16 views

How can I mass update the format of a collection of subsites?

I have a SharePoint 2010 site with around 200 subsites in it. Management wants to uniform ALL the subsites so that they're in a certain layout. What's the best way to make this happen? The 2 ...
0
votes
0answers
38 views

How to loop sharepoint document library subfolders with powershell in CSOM

I have this code: cls function Recurse ($folder){ write-host ----- $folder.Name $context.Load($folder.Subfolders) $context.ExecuteQuery() foreach($folder in $folder.Subfolders) ...
0
votes
0answers
19 views

Get-SPSiteSubscriptions belonging to a specific Web Application

I have 2 Web Applications in my On-Premise SharePoint farm configured for Multi-Tenancy. Each web application contains a list of Tenants. When I execute Get-SPSiteSubscriptions in PowerShell, I get ...
0
votes
0answers
17 views

Copying Append Changes Multi-line columns with powershell

I need to migrate the contents of LISTA to LISTB using powershell. LISTA has a RESOLUTION multi-line of text column with append changes enabled and history of comments added to that column. I need to ...
0
votes
0answers
18 views

List Sharepoint groups powershell - missing groups

I am using this code to list all groups within a web app. When I look at results not all the groups are there. When I go to the root of the site - people and groups, the groups are there. Why are ...
0
votes
0answers
10 views

Import-SPSiteSubscriptionSettings

Has anyone used Import-SPSiteSubscriptionSettings PowerShell successfully? If so, can you please provide me with the detailed steps to use it? The Technet article is not so helpful for me. Any help ...
0
votes
0answers
28 views

Export List content type SharePoint 2013

I'm having 10 content types in a SharePoint 2013 List. I want to export all content types separately using PowerShell scripts or any. Note: List content type
0
votes
0answers
30 views

can I change the password of claim based Ax user

I have created claimed based user for AX sharepoint site(Enterprise portal) using given script New-AXUser -AccountType ClaimsUser -AXUserId har -UserName amit-UserDomain PortalAuth -CreateInProvider ...
0
votes
0answers
43 views

Creating folders in Document Sets with PowerShell

I have a document library with only document sets at the top level. In every document set I would like to create a set of standard folders with PowerShell. I have connected the document library to ...
0
votes
0answers
33 views

Raise limit on Database Connector and BCS in SharePoint Online

I have found a way to increase the limit for on-premise SharePoint, but is there any way to increase the 2000-row limit on the Database Connector for SharePoint Online? I am connecting an external ...
0
votes
0answers
25 views

Powershell script to check duplicate field value

I need a PowerShell script that loops through a form library and checks if a certain field has duplicates, and if so it should send out an email to a specified recipient. This field is called Frm Int ...
0
votes
0answers
89 views

Getting User from Active Directory through PowerShell and updating SharePoint List

I have created Windows 2012 R2 as a domain controller as bellow Server Name :- Server Domain :- milind.intra I have all users in user container only and not all user have manager in active directory ...
0
votes
0answers
20 views

Powershell for workflow not recognizing URL

I have a powershell that kicks off a workflow but my system is not allowing me to run it. The error I'm getting is as follows: Get-SPWeb: Cannot find an SPWeb object with id or URL: xxx.com and site ...
0
votes
0answers
35 views

Content Organiser Rule creation via powershell running slow

I am using a variation on this script posted here How to create Content Organizer rules through powershell in sharepoint 2010? My script pulls from a CSV file because I have over 600 rules to add. ...