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
65 views

Inject HTML into SharePoint view (AllItems.aspx) via powershell

This is a good question with no good answer. I have HTML I want to inject into various existing SharePoint views, via powershell. I've been doing this via SharePoint designer so far - is there a way ...
1
vote
3answers
81 views

PowerShell script to download SharePoint attachments (Excel) with certain worksheet name

I'm trying to write a PowerShell script that will scan a SharePoint list and download an excel spreadsheet if it has a certain worksheet name. I'm not sure of where to start as far as syntax goes... ...
2
votes
1answer
35 views

SharePoint Online: Change properties

I am retrieving a change log for SharePoint Online site, but I am particularly interested in the who performed the change and on what item. $changeQuery = New-Object ...
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.
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) ...
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 ...
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 ...
0
votes
0answers
58 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 ...
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 ...
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

Get all Pages and their Page layout in a web app using powershell

I want to get all pages and their layout using powershell in a given web application
1
vote
0answers
49 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
0
votes
1answer
20 views

Can I [safely] change the code name/EntityPropertyName of objects?

We have several lists and columns that we've renamed overtime, and some of the lists/columns also contain spaces. This makes accessing these objects with the EntityProperytName through the CSOM quite ...
2
votes
1answer
95 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 ...
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
4answers
177 views

My sites not creating site collections

Steps 1) Created a web application https://site. 2) Configured user profile ,search and metadata. 3) Created a Team site collection at the root i.e.https://site 4) Create a Explicit path at 'my' ...
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
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
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
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
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
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
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 ...
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
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?
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
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
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
2answers
57 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 ...
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
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
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 ...
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
1answer
82 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 ...
3
votes
1answer
158 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
0answers
29 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...