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
1answer
19 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
24 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/...
0
votes
0answers
5 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 ...
0
votes
0answers
10 views

How to add rollup images to many items, 1 image for 50 items

I have a CSV file containing my fields, e.g. title, item number, category.. and I want to include rollup image. How can I set the rollup image to be https://example.com/sites/SiteCollectionName/...
0
votes
0answers
9 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 ...
1
vote
1answer
24 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
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 ...
0
votes
0answers
26 views

What is happening when I get this error? “unexpected end of file, elements not closed: Fields” XML-exception

$spSite = Get-SPSite -Identity $productCatalogSiteCollectionURL $spSiteColumns = $spSite.RootWeb.Fields $taxonomySession = Get-SPTaxonomySession -Site $spSite $termStore = $taxonomySession....
0
votes
0answers
8 views

Specified Cast Is Not valid In Powershell [closed]

I receive an error when trying to set signature defaults for new messages. Specified Cast Is Not valid In Powershell { #Set company signature as default for New messages $MSWord = ...
0
votes
2answers
32 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
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
1answer
21 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
21 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
39 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, ...
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. ============================================= $...
-1
votes
1answer
33 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....
1
vote
1answer
19 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 (...
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
30 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($...
0
votes
0answers
23 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 ...
0
votes
0answers
11 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
26 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 ...
1
vote
1answer
32 views

Update sharepoint column based on value in excel spreadsheet

I have what would seem a simple task below but I’m afraid I'm new to Powershell and I've yet to find a solution that works. Scenario I have a Document Library called "Archive" that will have many ...
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 "...
1
vote
0answers
21 views

Powershell script returning Libraries that do not exist in the error log

I had created a powerShell script to get a list of all the documents added to document libraries across the entire Web Application. But it somehow returned some libraries that did not exist in the ...
0
votes
2answers
92 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....
0
votes
0answers
25 views

user profile synchronization not working

I had a issue with my user profile synchronization and i recreated a new user profile synchronization and once i did that i when into "Configure Synchronization Connections" then created new ...
2
votes
1answer
52 views

Change the display name of Title field in “All Items” View using powershell

Using Powershell script i have change the Display name of Title column to New Request in Content Type. I have use that content type in Custom list. When click on new item in list it will display New ...
0
votes
1answer
20 views

SharingAllowedDomainList

We have a need to white list our SharePoint Online tenant to certain domains for external sharing. Luckily for us, there is the SharingAllowedDomainList property in the Get/Set-SPOTenant, https://...
1
vote
1answer
51 views

checking if a site collection is readonly using powershell csom

i have a list of sites that should be readonly but i am trying to loop through the list and determine if they are or not, however it doesnt seem to me that the readonly property of the site collection ...
0
votes
1answer
38 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
0answers
19 views

How do I remove the current Subscription on SharePoint Central Admin of update it

I have been getting this error in Application Management-->Manage Service Application.In this the error comes Subscription Service Application Microsoft SharePoint Foundation Subscription ...
0
votes
0answers
55 views

Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error: (403) Forbidden.”

Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web ...
0
votes
0answers
23 views

map the term set to site column of SharePoint Online OR Office 365 with powershell script

I have to create site column with metadata type and have to assigne it with the TermSet with powershell or CSOM with SharePoint Online OR Office 365. Is it feasible and how? Thanks, Ram.
0
votes
0answers
31 views

SharePoint Online Map term set to Managed Metadata column in Power shell Script using CSOM

In SharePoint Online using power shell script, I have created Managed Metadata column.. Now in my TAXONOMY TERM STORE i have term store in group , now i am trying to mapped that term set to managed ...
0
votes
1answer
30 views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
0
votes
1answer
26 views

Difference between Get-SPSite and Get-SPsiteAdministration

What is the difference between Get-SPSite and Get-SPSiteAdministration cmdlets? I know Get-SPSite has more properties, but I want to know the core difference. Appreciate if u could explain in detail.
0
votes
0answers
24 views

PowerShell script for Site map

In this thread they have a script that does what I need. However when I put in my intranet site location for SharePoint I get an error saying it cannot find the object. Is the reason why the script ...
0
votes
0answers
19 views

Activate Globally Deployed Master Page

I tried to deploy a solution to Sharepoint 2013, consisting with only master page. However, while I can activate it with GUI just fine, I cannot find a way to activate it using powershell. ...
0
votes
0answers
18 views

How to delete a non-responsive query component from search topology using PowerShell?

How to delete a stuck and not responding query component from a search topology in SharePoint 2010? This query component worked fine before but it is not responding because the web front end server ...
0
votes
1answer
37 views

Import-SPWeb Into Host Named Site Collection

I have made a backup of a SharePoint Site using Export-SPWeb. I have also added a new Host Named Site Collection and I would like to Import the Site into this newly created Host Named Site Collection. ...
1
vote
1answer
32 views

Move subsite programmatically

I have to move a subsite in a site collection to a new site in the root level. I want to achieve this through powershell. The "Content and Structure" page located at /_layouts/15/sitemanager.aspx ...
0
votes
0answers
19 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
16 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
36 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
1answer
24 views

Import-SPWeb command not working

Trying to import one subsite from one site to other exported the site successfully using Export-SPWeb –Identity http://sitename -Path E:\backups\site.cmp but when trying to import using the below ...
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
21 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 form....