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
14 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
8 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
14 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
17 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
28 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
16 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
14 views

SharePoint Import/Export Command for Library with version setting disabled

I have to export a SharePoint library from a site in server A and import it to a library in server B such that only the items that are new or updated are imported to site in server B. While this can ...
0
votes
1answer
23 views

My sites Not creating site collections

I have a web application https://site . I have user profile ,search and metadata configured. I have created mysite host site collection https://site/my/personal. The user profile site collections are ...
0
votes
1answer
364 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it act like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
1answer
31 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
17 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
7 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
30 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
22 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
14 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
18 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
12 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
36 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
17 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
19 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
19 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
18 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
16 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
24 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
14 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
29 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
votes
0answers
25 views

Powershell in SharePoint Online - Request rejected [closed]

Getting this error while getting context of sharepoint online site using PowerShell
0
votes
2answers
419 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
571 views

Creating a calculated column with replace in Powershell

I am trying to create a caluclated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
1
vote
0answers
21 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
38 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
455 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
17 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 ...
3
votes
0answers
26 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 ...
5
votes
2answers
46 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 ...
0
votes
0answers
9 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 ...
1
vote
0answers
33 views

How to set “ShowField” in peoplepicker using powershell

Does anyone know how to set "ShowField" in people picker using powershell ? For ex.x, to set the "Required" property, we can user $SiteColumn.required="true" , but for showfield, ...
0
votes
0answers
22 views

Ignore/Exclude file when using Export/Import-SPWeb

I'm using the Export-SPWeb and Import-SPWeb Cmdlets to migrate a few libraries between SharePoint servers. However, one of the files being migrated is a shared data source which is only valid on the ...
0
votes
0answers
24 views

Error: “Cannot index into null array”

I am getting this error while trying to get the list name Cannot index into a null array. + $clientlist = $web.Lists["Shared Documents"]; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ...
1
vote
1answer
634 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
84 views

Set-SPAppDomain local

How can I set a local domain for: Set-SPAppDomain "mydomain" Set-SPAppSiteSubscriptionName -Name "mydomain" "mydomain" is just an example. Now for the second command I'm getting this error: ...
1
vote
1answer
30 views

How to set a multi-choice field value in a sharepoint list using powershell?

I have a sharepoint list and I want to set some value inside it. The multi-choice field is already defined and it is already pointing on data. I just want to pick one of the choices and set it in the ...
2
votes
3answers
87 views

Documents(file) name from Shared Documents in SP 2013 using powershell script

How do i get each document or file name from Shared Documents using PowerShell script. Thanks
1
vote
1answer
19 views

how to change the created date of a folder in sharepoint

I have a document library, I have used a powershell command to change the created date of the files uploaded in that library. However, I also want to change the created date of a Folder which is ...
2
votes
2answers
4k views

Change Document Library folder's Modified timestamp to latest timestamp inside

I have a Sharepoint 2010 Document Library with a range of subfolders and some files within each of them. The problem is, right now every subfolder has the same Modified timestamp, and I want each ...
1
vote
2answers
14 views

Add Safecontrol assembly in web.config through powershell

Can any one guide me in powershell to add safecontrol assembly in sharepoint web app web.config?
0
votes
1answer
481 views

spadminV4 which could not be contacted in deployment

I have Sharepoint 2013 and Powershell deployment. I execute muy ps1 script in SPS01 machine. Farm servers are SPS01, SPS02, SPS03, SPS04. User for deploy is UserInstallerMoss , it's Farm ...
0
votes
0answers
10 views

Use Powershell to configure PowerPivot Data Refresh Schedules

Is there a way via powershell to check and see which items have a data refresh schedule configured for them? and If they don't proceed to create one? I can't seem to find much on working with ...
3
votes
2answers
42 views

Cannot delete site collection in Central Administration

I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. ...
2
votes
1answer
575 views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...