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

Hide specific Site Template from SP2010 Site creation list using Powershell or Stsadm

I have some custom site templates.. Now i want to just hide those templates from the Site Creation List.. I found some ways to like editing webtemp.xml and doing it from UI for each site collection.. ...
1
vote
1answer
412 views

People picker not able to fetch one user

I am trying to fetch user in people picker. However, in the Production Environment it is failing to resolve one of the user in few of the sitecollection. When I try to get the same user in other ...
1
vote
1answer
694 views

Packaging and Deploying page layouts with VS and Management Shell

I have created a .wsp file through Visual Studio which should contain a module with my page layouts I want to deploy. To do this I downloaded my page layout .aspx that was already created on my ...
1
vote
2answers
441 views

Remove SecondaryOwner from site collection with powershell?

Does anyone know how to remove the secondary owner of a site collection with the help of powershell? I know how to set the SecondaryOwnerAlias with the help of powershell but so far I did not find ...
0
votes
2answers
158 views

SPCopyDestinationCollection.Add() Method Does Not Persist to the Database

I'm attempting to run a basic PowerShell script to fix a lot of broken "Send To" destination links that resulted from a site migration from one farm to another. I wanted to proof-of-concept this on ...
1
vote
1answer
273 views

How can I load PowerShell 2 PSCX modules on a SharePoint Server that has PowerShell v3 installed?

My current environment of SharePoint 2010 Enterprise Server is having some of the servers updated to support PowerShell v3. At the moment we utilize PowerShell to manage some of the SharePoint Server ...
1
vote
1answer
153 views

Importing CSV with HTML markup in some values using PowerShell

I have a CSV file where some of the values contain decoded HTML markups (e.g. <b%gt;Example</b%gt;) that I try to insert in a SharePoint list. When I iterate through the values using ...
0
votes
2answers
2k views

Upload Site Template (.stp) as Farm solution using powershell

I have custom site template file which i got from the SP2007 site as .stp file.. CustomTemplate.stp What i need to do is Deploy this site template to SharePoint 2010 Farm.. I know i can do it from ...
0
votes
3answers
312 views

The way to modify the content of wp on all pages

I have a question, basically I have a SharePoint 2007, and I have some particular pages a cross the portal which contain a Content Editor Webpart. I would like to be able to modify this CEWP, by ...
1
vote
1answer
2k views

SP 2010 Timer JOB not appearing in the Timer Job definitions under CA

I'm having a issue with One of my custom develop timer Jobs on SP2010 Farm.? Timer Job is not appearing in the Timer Job definitions under CA , Operations Tab This timer Job is target scope on web ...
0
votes
1answer
5k views

Deploy a single feature using SharePoint Management Shell with SharePoint 2013

I have been working in a development environment and deploying my custom web part features from Visual Studio directly by just hitting F5. I now need a way to deploy features separately to a test ...
2
votes
2answers
599 views

SPImport Error: An event receiver has canceled the request

im running below Powershell Import CMD to import a site import-spweb "URL" -Path "E:\" -updateVersions Overwrite -includeusersecurity -nofilecompression -Force and this gets below error ....... ...
0
votes
2answers
2k views

Set group owner using Powershell

I use this command: Set-SPOSiteGroup -Site htt.....com -Identity newgroup -Owner newgroup2 (newgroup is a Sharepoint group, newgroup2 is another sharepoint group) Powershell responds with this: ...
0
votes
1answer
353 views

Using Content Enrichment without developing a custom WCF Web Service?

Reading the article How to: Use the Content Enrichment web service callout for SharePoint Server it looks like I need to develop my own WCF Web Service to use the Content Enrichment. The list of ...
1
vote
4answers
6k views

How do you apply a theme with powershell in 2013?

I'm writing a powershell script that creates a number of site collections. I want to programmatically set the composed look to "Sea Monster". Through the web UI I go to Site Settings > "Change the ...
0
votes
2answers
34 views

Full deploy with customization

I have installed 2 VM's (DC/SQL box and a SP2010app/VS2012 box). I have created a web app with its initial root site collection (based on Blank Site). My goal is to prepare the dev environment so ...
1
vote
1answer
1k views

Working with taxonomies via PowerShell: Removing a tag from an item

So I have a term store created and populated with terms, and I'm writing a script to retroactively tag items. During preliminary poking around, I found I can successfully tag an item with simply ...
1
vote
2answers
2k views

Document Set Move

So far I have managed to move Document Sets using PowerShell from Document Library A to Document Library B. I found this article: ...
5
votes
2answers
5k views

Is it possible to change an existing list's URL?

Is it possible to change a list's URL from something like /site/Lists/ListName to /site/ListName in SharePoint 2010?
1
vote
2answers
4k views

Change only the Public URL of an Alternate Access Mapping via PowerShell

this must be possible via PowerShell as it can be done from Central Administration. I have a task to modify just the public URL of an existing alternate access mapping (AAM). PS U:\> $aam = ...
0
votes
1answer
165 views

Error while deploying WSP through SP 2010 Management Shell

I am trying to deploy a wsp through SP 2010 Mgmt Shell but every time it throws an error: This is the script that I am running: Add-SPSolution -LiteralPath "E:\QD Survey 2013-01-10\QDSurvey.wsp"
4
votes
3answers
12k views

Retrieve All Lists With Specific Name Using Powershell

I have a powershell script that I am trying to use to add a column (Created) to a specific view in a specific list in multiple webs. The list exists in every sub web. The view exists in every list. ...
0
votes
1answer
3k views

Power shell script to copy the files and folders with in 2 specific dates

I have a powershell script which will move the files and folders from 2 different site collections which is working perfectly. Now if the user has added some more files on 09/25/2013 on first site ...
0
votes
1answer
450 views

Site logo link to root Site Collection using powershell

I'm searching for a powershell script to link/redirect all the logos of the sites to site collection root. I know that I can code in master page file, like this solution ...
0
votes
2answers
4k views

Get user id with powershell

I'm updating custom fields in a document library and I have to set a value for the person that's responsible for the file. On the frontend I put the AD account name in the field but it is stored as a ...
2
votes
1answer
6k views

How to update document meta data using powershell

I'm iterating through all files of a document library using powershell trying to update some files in some folders. I can read the file properties but I'm not able to update them. Here is my code: ...
2
votes
1answer
3k views

Difference between Administrator and WSS_Admin_WPG [duplicate]

What is difference between Administrator and WSS_Admin_WPG, on the SharePoint Server Machine Is Administrator rights on Server Machine enough to do all activities on SharePoint server , Power ...
2
votes
1answer
8k views

How to get the site and web url from a full url?

Let's have, for example, this url: http://corp.com/sites/project1/documents/forms/allitems.aspx. Is there an efficient way to analyse this full url to extract site and web url? The web application ...
0
votes
1answer
125 views

Is it possible to specify content database name while creating the Excel Service Application using powershell script?

I want to create the Excel Service Application as it is required to use the Excel Web Access Web Part. Firs I tried to create the application using sharepoint but GUI not providing facility to specify ...
0
votes
1answer
201 views

Bypass Approval in powershell foreach loop

I have a foreach loop in powershell to delete all deleted sites that are already in recycle bin of SharePoint. But when I run this loop it asks me weather I'm sure to do this or not for every single ...
0
votes
1answer
434 views

Create a Web Application using Powershell

I want to create a web application using powershell. Below is a list of commands I execute to achieve this and all works fine. Web application exists everywhere. But I cannot access it by it's url. I ...
0
votes
0answers
421 views

Error during Import-SPWeb

I am trying to exporting from my developing machine which has a backup of the content database, and importing it back in the production farm. Running: Export-SPWeb -identity http://mysite -Path ...
0
votes
1answer
139 views

Set Sharepointgroup or securitygroup as owner of a Sharepointgroup through powershell

I am trying to do this using the command described through this article: http://technet.microsoft.com/en-us/library/fp161387.aspx The description of the parameter Owner says: "Specifies the owner ...
3
votes
1answer
2k views

PowerShell script that would display the security of SharePoint Site

I'm looking for a PowerShell script that would display or create a report of the security configuration of a site collection. Any help would be appreciated. It would list: Site Collection Owners ...
1
vote
3answers
8k views

Adding a User to an existing SharePoint Group

I am trying to create a script to add a user to an existing SharePoint group. I'm new to PowerShell Scripting & SharePoint, so I'm a little lost. I keep getting the error that the specified group ...
3
votes
2answers
778 views

SharePoint 2010 - Automatically create a new content database when a size is reached

I've been asked a question today regarding the automatic creation of a new content database when the current one reaches a certain size limit. Does anyone know if this is possible? Possibly with a ...
0
votes
0answers
878 views

Calling Enable-SPFeature in SP2013 with CompatibilityLevel isn't working

In an SP2013 environment running in SP2010 mode has anyone successfully called the Powershell command -- Enable-SPFeature while specifying the compatibility level? Example: Enable-SPFeature -identity ...
0
votes
2answers
1k views

Cannot export a Document Library with Powershell, but other Lists work

I'm trying to do an "export-spweb" command in Powershell to mass-transfer lists and libraries from one site to another. Now, it partially worked, in that all my Lists that were not Doc Libraries ...
2
votes
1answer
592 views

PowerShell script to update Task “Outcome” and “% Complete” fields

I have a problem (see Workflows do not continue after user completes a task nor do they update task outcome and percentage) that I can't get around. I thought about running a powershell script every ...
1
vote
0answers
983 views

SharePoint 2010 - setting peoplepicker-searchadforests, unable to remove property and get <Property Exist=“No”> after setting with no -url param

Interesting behavior that I was hoping someone could help with. Trying to adjust the "peoplepicker-searchadforests" property using the stsadm command in Powershell, I ran the below command: stsadm ...
0
votes
1answer
38 views

What is the proper method for installation of a team site with custom solutions?

What is the proper method for installation of a team site that has parts and webparts configured using PowerShell as well as six custom C#.NET applications for select webparts? Should I make a ...
2
votes
4answers
2k views

PowerShell Error, Invalid URI: The format of the URI could not be determined

i have typed the following inside PowerShell:- PS C:\Windows\system32> Restore-spsite ? cmdlet Restore-SPSite at command pipeline position 1 Supply values for the following parameters: Path: ...
2
votes
1answer
2k views

how to delete sharepoint workflow from powershell

hi guys i need a help to get easy way to delete work flow from sub site level . its a pain to load it to SPD and do for there since site have lot of work flows . this Poweshell i got the work flow ...
1
vote
1answer
104 views

Are there operations affected by installing PowerShell v3 with SharePoint 2010?

We currently run SharePoint 2010 Enterprise in our production environment and are looking at updated our build and deploy framework that is written in PowerShell. It would be nice to take advantage ...
2
votes
1answer
7k views

Backup Sharepoint 2013 site using powershell or stsadm

I am trying to take backup of of my sharepoint 2013 site http://something1:6060/ using powershell or stsadm but getting some errors. Using Powershell command:Backup-SPSite "http://something1:6060/" ...
1
vote
2answers
1k views

Removing field via powershell

A custom solution was installed at one point, and was removed do to it not functioning as expected. after the solution was removed several fields remained, and I'm trying to remove them with the ...
7
votes
2answers
29k views

Powershell command to find active features for site collection

Im trying to find active futures for my site from below script but im prompt with error ( cannot call a method on a null-valued expression) Appreciate your help $activeFeatures = Get-SPFeature ...
1
vote
1answer
400 views

Activate Content Organizer feature from code

how to activate content organizer feature from c# code or by powershell script. I want to activate this feature on my subsite from my code ?
1
vote
1answer
270 views

Outputting Folder Column Defaults in a List

I have folders in a library which have default values set for certain folders through the library settings I know the values are their because I can see them and they get applied to documents. I was ...
1
vote
3answers
7k views

How to upgrade one specific feature only with powershell

I created a farm feature and then I upgraded it. According to the documentation, the upgrade-spfeature -scope farm will upgrade all features requiring upgrade. Feature upgrade (part 5) – using ...