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)

2
votes
1answer
88 views

Add columns to existing libraries in SharePoint 2010 using Powershell

I need to add five new columns to existing SharePoint 2010 libraries using powershell. I am using below script: $ver = $host | select version if($Ver.version.major -gt 1) ...
1
vote
1answer
2k views

Can't create User Profile AD mapping using PowerShell in 2013

Using PowerShell, I want to add properties to the user profile in 2013 and map those properties to be synchronized with Active Directory. I can create the properties fine as well as the ...
0
votes
0answers
26 views

Powershell to fetch all alerts from SharePoint online

How to fetch all the alerts from all the sitecollections in SharePoint online using PowerShell script. Please suggest. Thank You.
0
votes
1answer
30 views

Which page layout to use to create a new Full Page, Vertical page?

In order to create a new web part page with a PowerShell script, you must provide a page layout. None of the page layouts on my site seem to match the Full Page, Vertical choice you have when you ...
3
votes
1answer
159 views

Cannot find an overload for “Load” and the argument count: “1”

I am working on some utility functions to ease the administration of our O365 tenant by importing some modules as part of my profile. The thing I'm working on currently is being able to provision One ...
0
votes
1answer
45 views

Change Modified Date and User in Versions

We have document libraries in Sharepoint 2010 with incorrect modified dates and users (they were imported from somewhere). I thought, I could correct them with Powershell, but it does not work the way ...
0
votes
1answer
86 views

Powershell Script to get items only in a particular view of SharePoint List/library

Is there a way to get the items that are present in a particular view of a sharepoint library? Actually my library has multiple levels of folders like this: Level1 Document set Level2 Folders and ...
1
vote
1answer
48 views

Check if site uses custom Infopath forms and workflows using powershell

I have to scan my SharePoint environment to check how many of the sites have custom Infopath forms and Workflows (OOB or SPDesigner). I am planning to use PowerShell to scan my sites/subsites. Do ...
0
votes
1answer
38 views

Powershell PS1 clone SP permissions Exception

I have found this nice PS1 that clone permissions from a SPUser To Other. When give inputs Many things goes wrong but I have non idea what. Has Anybody any idea about this issue? PS ...
0
votes
0answers
59 views

Grant permission on multiple folders using PowerShell

Can you please help me to grant permission to different folders ? I used the following article : Grant folder permission(SharePoint) using powershell script but when I tried to grant permission for ...
1
vote
1answer
27 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
0
votes
0answers
55 views

Iterate through items inside folders and sub folders in SharePoint Library

I have a SharePoint library with document sets on level 1. Then inside document sets I have Folders and some documents(word,excel,text) on level 2. Then again inside folders in level 2 I have some ...
0
votes
1answer
54 views

Yes/No Field Default value problem!

I have tried following script to set default value of Yes/No Field to Yes which is by default set to No in list Yes/No column, i get false result at last line. I have tried these values: 1 , $true, ...
0
votes
1answer
21 views
1
vote
0answers
50 views

New-SMBShare : No mapping between account names and security IDs was done

I am creating Shared folder and want to set permissions on it with SharePoint farm account and App_Pool Account as below: $FullAccessAccounts = "domain\farm,domain\app_pool" $ReadAccount = ...
1
vote
0answers
19 views

Remove Replicating directory changes on a user - AD - powershell

I'm having problem in my production environment with User Profile Synchronization Service that is stuck on starting. I'm not able to reach the AD but the hosting company does. I think they might have ...
1
vote
1answer
35 views

Retrieve all sitecollections and its subsites using PowerShell

How to retrieve all the Site Collections along with its subsites from SharePoint online using PowerShell. Please suggest. Thank you
2
votes
1answer
97 views

Office 365: Publish and deploy .app through PowerShell

Can we deploy a SharePoint hosted app in Office 365 (SharePoint online) using PowerShell? Like in SharePoint 2013 apps, we will import the .app file and then install it. Can this be done in Office ...
1
vote
2answers
57 views

Programatically get all SharePoint items in our SharePoint 2010 site's libraries and lists

I need to programatically get all SharePoint items in our SharePoint 2010 site's libraries and lists. By programatically I mean using a power shell, SQL query or even a webpart Libraries can be Asset ...
0
votes
1answer
59 views

PowerShell Script to Change “Mappings to crawled properties”

I want to change the “Mappings to crawled properties” from Include content from all crawled properties To Include content from the first crawled property that is not empty, based on the specified ...
0
votes
1answer
27 views

How to give application pool account permissions to search service application

We all probably know how to give application pool account permissions to search service application through central admin. But i want to do this using Powershell. What will be the Powershell script to ...
0
votes
1answer
33 views

Simple Powershell script to import TermSet file into Group

I am looking for simple powerhell script to import termSet .csv file into TermGroup. What will be the simple script to accomplish this?
0
votes
1answer
33 views

How to know if site collection is root with powershell

I want to loop over all web application's site collection and activate a feature on root web except the root site collection. How to know if current site collection is the root one. PS : I've used to ...
0
votes
0answers
29 views

How to set default value to CT column using powershell

I want to set the default value to a Content Type managed metadata column, I want to set the default value using powershell and want to set it to hidden. How to accomplish this?
0
votes
0answers
51 views

Problem Starting 2013 Workflow from Powershell

I have a scenario where I need to kick off a 2013 SPD workflow from a powershell script. This should be possible using the StartWorkflowOnListItem method. My script is as follows: Add-PSSnapin ...
0
votes
2answers
31 views

Powershell - Deleting Webparts from pages 'skips' webparts

I am attempting to delete some webparts from various pages in a site collection using Powershell. It seems that 'querying' the webparts on the page pulls the correct number of webparts to delete, but ...
1
vote
1answer
46 views

PowerShell script to check if MMS is connected to Web Application

I want to check if Managed Metadata Service is connected to any Web Application by powershell script. What will be the possible script to check this?
0
votes
0answers
24 views

How to add a Custom List to website using Powershell?

I am creating a custom list via powershell. After the creation I have to open IE go to a page and add the list manually. Is there a script that will add a list into a page?
0
votes
1answer
82 views

How to reverse GrantAccessToProcessIdentity(“Domain/User”)?

In our SP2013 on-premise farm, we have two web applications. One for standard team sites and one for MySiteHost. These 2 web application are running under two different IIS app pool with two different ...
0
votes
0answers
27 views

Adding custom SPGroup to all lists in Site using powershell

I want to add custom SPGroup as contribute permission to all the lists in a sharepoint site using powershell. all the lists are at root web of the root site collection. Need possible script to ...
0
votes
0answers
13 views

How to add SP Group to Managed Metadata Term Group using Powershell

I want to add Active Directory Group to Term Group using Powershell. I have found script to add AD Group to Term Group, but i want to add AD group to multiple Term Groups. Need powershell script to ...
0
votes
1answer
39 views

How to check if “State Service application” is installed or not

I want to know by some powershell script if "State Service application" is installed or not? I have some other script to run but before running that script, i want to check if "State Service ...
0
votes
1answer
69 views

Unable to restore Sharepoint Site from backup

I have a Sharepoint site (2013), I need to move the site to a different server. I am using Powershell to create backup and restore. But getting the error in ULS log: "Could not deserialize site ...
0
votes
1answer
31 views

Remove item level permission for specific user using powershell

I want to remove the permission for each item and then want to add my unique permission I have tried the code for giving permission. But firstly, i want to remove it and then add new permission. My ...
0
votes
1answer
116 views

How to add AD Group to SharePoint Group using Powershell

I want to create a SharePoint Group named "SomeGroup" and then want to add crossponding Active Directory Group to this SharePoint Group "SomeGroup". I have searched but not found any good example to ...
0
votes
1answer
21 views

How to get user login name using powershell

I have a name of an employee For eg: "XYZ". Now i want to get its login name using script. I have tried like this: $user='XYZ' $userName=$web.EnsureUser[$user] But i m getting $userName null ...
0
votes
2answers
58 views

Unable to commit changes to publishing pages using powershell

First off let me start by saying this is the first time I have posted a question here, I often visit this website and other StackExchange/Overflow sites for assistance on various projects and ...
0
votes
2answers
97 views

How to create a Shared Folder using Powershell and set permissions

I want to create a shared folder using PowerShell and then want to set permission on it as follows: Farm account: Full access Application pool account: Full access Everyone or Authenticated ...
1
vote
1answer
88 views

How to create root site collection with custom web template using PoweShell

I have found Powershell script to create site collection with template "STS#0", but i want to create Root site collection with custom Template, what will be the possible powershell command?
0
votes
2answers
32 views

-Identity parameter in “Enable-SPFeature”

I just want to confirm -identity parameter in Enable-SPFeature -Identity $parameter -Url $spSiteCollection.Url Powershell command. In $parameter parameter, should we need to provide the ID of feature ...
1
vote
1answer
33 views

Create App Catalog using SharePoint Online Management Shell

How can I create an app catalog site for a SharePoint tenant using the SharePoint Online PowerShell? When calling the Get-SPOWebTemplate command, there is no APPCATALOG#0 template which may be ...
1
vote
1answer
30 views

How to add permissions for new MMS service

I want to Add permissions for the new MMS service using powershell (all farm and application pool accounts) like below: As Service administrator (Full control) As Term store administrators (Full ...
0
votes
1answer
84 views

Custom entity extraction

I need help with custom entity extraction setting. I created an UTF-8, comma separated .csv file, script with the right dictionary (Microsoft.UserDictionaries.EntityExtraction.Custom.Word.N) and UNC ...
0
votes
1answer
26 views

How to create Web Application with custom MMS application association

I have found Powershell script to create Web Application, But I don't find how to associate it with custom Managed Metadata Service application. I Need help to write Powershell script how to associate ...
0
votes
1answer
56 views

Add video files to asset library using PowerShell

I want to add video files to the Asset Library programmatically using powershell and Kindly help me. I tried the below code : Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction ...
1
vote
0answers
48 views

SharePoint Online 2013 - How to upload a new page layout into master page gallery using powershell

I have created a new custom page layout with custom content type using SharePoint designer 2013 and downloaded a copy of it. Now I have to upload that to another environment using PowerShell. The ...
0
votes
2answers
55 views

Get documents inside the folder from Shared Document using powershell

I need to get all the documents name inside the folder from shared document using power shell. Thanks
2
votes
1answer
491 views

SharePoint Error when I run PSConfig

I am getting the following error when I attempt to manually run PSConfig following an update on this server from the June/July 2012 CU to the April 2013 CU (this is from the logfile): 06/10/2013 ...
1
vote
1answer
30 views

After creating Managed Metadata Service using PowerShell

I have created Managed Metadata service application using PowerShell. The MMS was created and started successfully. My Question is, Will this new MMS be added as connected service to the central admin ...
5
votes
2answers
64 views

Create new SharePoint user using SharePoint Online Management Shell

I have a *.sharepoint.com tenant provisioned through singing up for Office 365. Is there a way to create a new user for the tenant using PowerShell (for SharePoint Online)? This would normally be ...