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
2answers
83 views

incremental-update to feature in SharePoint by powershell

New to PowerShell and SharePoint, i have a sharepoint 2013 project on visual studio 2013 that contains a SharePoint List definition and instance. After adding and installing the solution and ...
0
votes
0answers
6 views

Powershell SharePoint 2010 capture Permissions of folders in library with Broken Inheritance

I am looking for some code to find all users or Ad Group who have some sort of permission in specific folder (with broken Permission) in a specific library of a team-site. With the following code I ...
1
vote
1answer
15 views

SharePoint Online cmdlets in vanilla PowerShell

Is it possible to use the SharePoint Online cmdlets (Get-SPOsite, etc) in normal PowerShell and not through the SharePoint Online Management Shell (SPOMS)? From what I can tell the SPOMS is just ...
0
votes
0answers
20 views

SharePoint 2013 - powershell site permissions

I want to know, if it is possible to reset the site permission via powershell or with the central administration. So our problem is, that at a subsite (mainpage/subsite/...) the users have the full ...
0
votes
0answers
9 views

Getting the values of multivalue person or group fields using PowerShell CSOM

I have this list in SPO with two custom fields: Field 1: ReportedBy (single user or group) Field 2: Witnesses (multivalue user or group) I created a new list item and populated both fields with '...
1
vote
0answers
14 views

How to add the Calendar view webpart on the webpart page for SHarePoint Online by Powershell with csom

I am trying to add the calendar view webpart on the SharePoint Publishing page by powershell and csom, i was able to add it but it was showing all event view instead of calendar view. Code is added ...
0
votes
2answers
49 views

Cannot get scripts to run in PowerShell

We installed SharePoint 2010 on Server 2012. I am trying to install FBA, but cannot get the deploy script to run. First I switch to PowerShell 2.0 doing the following: Windows PowerShell ...
0
votes
2answers
37 views

Powershell script to apply FBA to web application

I have create Web application in sharepoint 2013 but I want to apply Form Base Authentication Using Powershell script.
0
votes
0answers
16 views

use powershell to list all running workflows

We've got a couple of workflow templates that are running in a bunch of sub-sites. I need to produce a list of all running workflows, but I can't seem to get the workflow names to show up. I can get ...
3
votes
1answer
640 views

PassPhrase is not valid in SharePoint 2013. Powershell not connecting to SharePoint farm to reset passphrase

I have removed Project server instance from my SharePoint 2013 farm. After that when I tried to run the configuration wizard, I found that the old passphrase is not valid. When I open powershell, the ...
0
votes
3answers
966 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. One ...
0
votes
0answers
35 views

Delete item with specific name from a list in SharePoint online

I am trying to delete a file using powershell with a specific name from a document library with the following code but I couldn't $SiteURL = "https://mytest-my.sharepoint.com/personal/...
5
votes
2answers
723 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
0
votes
2answers
34 views

Invisible termsets, visible through powershell

I accidentally created 9 of a termset and now am experiencing issues. I really don't want to delete the whole site collection they exist in but must do something. I created them through powershell and ...
1
vote
1answer
892 views

Get-SPGroup and Set-SPGroup commands

Like Get-SPUser and Set-SPUser, are there any commands like Get-SPGroup and Set-SPGroup ? I want to use Powershell commands like Set-SPGroup -Identity $ADGroupName -Web $SiteCollection
1
vote
1answer
216 views

Apps in a DR farm: ms.sp.int vs ms.sp.ext

During the set-up of a DR farm, we're facing a weird issue with apps. We have both a provider hosted app as well as a sharepoint hosted app deployed to a site using powershell. The apps are also ...
4
votes
2answers
3k views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
1
vote
1answer
26 views

SharePoint Online - Create a site out of site template - feature issue

I was trying to archive a site saving it as site template. I wanted to create another site using this site template, here i ran in to the issue, On further investigation i understand that a hidden ...
0
votes
1answer
454 views

Adding Calendar Webpart to a publishing page

I am working on a script to create a Calendar in SharePoint site and then add it to a publishing page as part of site provisioning. By using the similar to what is shown in this forum, i am able to ...
1
vote
0answers
44 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 ...
5
votes
4answers
1k views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
0
votes
0answers
2k views

Cannot find type [Microsoft.SharePoint.SPSite]: make sure the assembly containing this type is loaded

I'm trying yo Run this script ps1 from C# code but it returns me the following error where trigger "pipeline.Invoke()"; InitialSessionState iss = InitialSessionState.CreateDefault(); ...
0
votes
3answers
53 views

Remove unique permissions on all locations on site SharePoint 2013

I want to remove all unique permissions on one site from all locations on it, whether they are lists, libraries, list items, folders or docs in libraries. All unique permissions must be removed. I ...
3
votes
3answers
2k views

Restore-SPSite fails without any useful error

I'm trying to restore from a backup via PowerShell with the following commands: add-pssnapin Microsoft.SharePoint.PowerShell restore-spsite -Force -Confirm:$false -Identity https://uslv-acsw-t4.dev....
0
votes
2answers
96 views

Update list items remotely via Powershell

From the server itself this works: Add-PSSnapin "Microsoft.SharePoint.PowerShell" $SPWeb = Get-SPWeb http://mysharepoint.org $SPList = $SPWeb.Lists["My List"] $SPListItem = $SPList....
1
vote
1answer
27 views

Add-SPSolution and Install-SPSolution is working even without installing it's dependencies

I have one farm solution that have two activation dependencies defined as: <ActivationDependencies> <ActivationDependency SolutionId="{4400849B-2E03-4030-95DB-D98B1790EAD9}" SolutionName=...
0
votes
2answers
732 views

How to write powershell catch error stacktrace to a listitem?

I am using a powershell script where I do some logic. It is a big powershell and is scheduled. I would like to triggered when there occurred some error. I would like to have the whole error stacktrace ...
1
vote
0answers
95 views
0
votes
1answer
22 views

Remove URL field from Links list using powershell

I need to remove URL field from Links list using PowerShell. Is there any way to remove. I think it need to be deleted from Content type. But I just need to remove the reference.
0
votes
0answers
24 views

SharePoint 2016 - Add-SPProfileSyncConnection with ADFS

I want to use the following PowerShell command with ADFS. How can I define to use the right Authentication Provider Instance? My working normal use command but not working for ADFS: Add-...
0
votes
0answers
43 views

Problem facing in Add-PSSnapin Microsoft.online.sharepoint.powershell

I want to get SharePoint data, but the problem I have faced is when I try to run Get-Spsite or Get-Spweb it shows and error that The term 'get-spsite' is not recognized as the name of a cmdlet, ...
2
votes
3answers
643 views

EnsureSiteAssetsLibrary throwing exception

The short story, when trying to execute SPListCollection.EnsureSiteAssetsLibrary I get: Exception calling "EnsureSiteAssetsLibrary" with "0" argument(s): "A list, survey, discussion board, or ...
0
votes
2answers
1k views

Problem copying lookup column data from one list to another via PowerShell

I have the below script that works for moving list data between two lists on sites next to each other that have the same schema. Everything works perfectly bar a column of type LOOKUP named "Name of ...
0
votes
1answer
740 views

Get permission level for SharePoint Group Powershell

I have different SharePoint groups for sub-site which has unique permissions, I am writing a powershell script and I have come across a point where i need to get the permission level of a XYZ ...
1
vote
1answer
20 views

How to manage permissions per file semi-automatically

we have a document library. A team reviews the uploads and if the data quality is good, they want to allow a certain group of people to read the files (but not before). There are a lot of files (...
-1
votes
1answer
38 views

Recursively loop through all sites and their subsites using powershell? (SP 2010)

I have tried many things but I only get the list of all sites in the main site. function LoopThroughSites { Param ([string]$url) $web = get-SPWeb $url $count = $web.Site....
0
votes
1answer
17 views

Powershell script to delelte items older than 3 months from first stage recycle bin in SharePoint 2007

Below script deletes All Recycle Bin items in SharePoint 2007. Wanted help to modify the script to delete only items older than 3 months. ============================================= $...
2
votes
1answer
1k views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
2
votes
2answers
1k views

Disable alerts for List or a site in SharePoint2013?

I am having a list in SharePoint2013,i want to disable the Alerts Option in that particular list or Site,can any one give example to disable the alerts by using OOTB or PowerShell.
0
votes
0answers
15 views

Adding custom template on a not English site collection

Has anyone experience with adding a custom template to a Site Collection in another language except English? I tried in English and it worked fine. $Siteurl = "http://myserver/sites/...
0
votes
1answer
31 views

Move-SPUser not update Editor of listitem

I have to do a script to migrate user because of change domain. From DOM1\user1 to DOM2\user2 When i do $web = $spsite.openweb() $userToReplace = $web.EnsureUser($oldLogin) if($...
4
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 ...
2
votes
1answer
621 views

Error while running the Powershell script

I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]" #Add SharePoint PowerShell SnapIn if not already added if ((Get-...
0
votes
0answers
32 views

How to get user in PowerShell for SAML Claims authentication

I am using this PowerShell to add a user to a group. This code works for our Windows claims users: $site = Get-spsite "https://test.contoso.com" $web = $site.RootWeb $claim = New-SPClaimsPrincipal -...
4
votes
1answer
21 views

How to disable a timer job during a certain timeframe?

I have a timer job in SharePoint 2013 that needs to run every 5 minutes, but not during certain timeframes each day. The only way I could find to do this was to use a Windows Scheduled Task to run a ...
2
votes
1answer
954 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
0
votes
1answer
31 views

Creating a site collection doesn't seem to accept the template

I'm creating a site collection and trying to apply a template to it Here is the code: $Siteurl = "http://myserver:8010/sites/sitex5" New-SPSite $Siteurl -OwnerAlias "mydomain\sp2k13admin" -Name "...
0
votes
0answers
12 views

Change Composed Look on muliple Site Collections

I need to create 100+ site collections in SP2013. I have a PowerShell script and XML file to achieve this (and is working). However, marketing want to brand and change the look of the Team Sites - I'...
0
votes
0answers
28 views

Automate to add new or update Csv files to Office 365 Sharepoint List

I have a few .csv file that I want to automate it so that it will add or update(if existing) into Office 365 SharePoint list. Is there anyway to do it via powershell? If so, is there an reference or ...
0
votes
1answer
27 views

Anyone heard of EnableBranchCacheHashGeneration?

I am going through some exam prep for the 70-489 exam and ran across a question that has EnableBranchCacheHashGeneration as a possible answer. I cannot find anywhere online where this is property is ...