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)

1
vote
0answers
1k views

Mass update metadata in all items (files and folders) in a document library

This is my first question here, so apologies if it is a duplicate. I'm trying to write PowerShell code to mass-update a managed metadata property, doing something like this: $query = New-Object ...
1
vote
0answers
201 views

Remove Content Type Hub URL

I used a Powershell script to add the URL for the Content Type hub, as in the picture below. Now I wish to remove this URL. Not replace it, but remove it altogether using PowerShell. Is this ...
0
votes
1answer
614 views

Postbuild event with PowerShell 3 script does not works

In a SharePoint 2010 project, using VS 2012, I set up a post build event: "%WINDIR%\SysNative\WindowsPowerShell\v1.0\powershell.exe" -version 2 -command "& {Add-PSSnapin Microsoft.SharePoint....
2
votes
3answers
639 views

EnsureSiteAssetsLibrary throwing exception

The short story, when trying to execute SPListCollection.EnsureSiteAssetsLibrary I get: Exception calling "EnsureSiteAssetsLibrary" with "0" argument(s): "A list, survey, discussion board, or ...
0
votes
1answer
152 views

create new-spweb using given password and username in powershell

i want to create a new sub site using power shell but by a given user as in context, how can i do this. I am using New-SPWeb Cmdlet.
1
vote
1answer
2k views

powershell iterate over all global navigation urls and change them from absolute urls to relative urls

I made a backup restore of some site collcetions from production to dev environment. Then I noticed that sometimes when I clicked on the global navigation items on my dev, they were pointing to ...
2
votes
0answers
146 views

How to assign the metadata for folders and sub folders

I am migrating the SharedFolders and files from Windows to SharePoint Library. So here i am able to add metadata for only files, but not for folders. Here the below is the code i tried for adding ...
3
votes
1answer
6k views

PowerShell - Save output to a text file with dd-mm-yyyy added to the name of the file

The below script will run daily, task schedule, need help in saving the output to a text file e.g. something like SPContentDatabaseStatus_17-10-2013.txt and saved in a folder named Reports. Running ...
0
votes
4answers
576 views

GUI tool For PowerShell

Goal: User PowerShell in a user-friendly approach Problem: I have seen PowerShell using for MS-dos but there is not tool such as Visual studio as PowerShell? Any softeware with GUI for PowerShell ...
1
vote
1answer
153 views

Create GUI to run sp-commands using c#

I have a requirement to create a GUI that talks with sharepoint management shell and gives the output then and there. i tried the solution given here http://www.codeproject.com/Articles/18229/How-to-...
0
votes
1answer
742 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
430 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
716 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
478 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
282 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
158 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
318 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
625 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: Set-...
0
votes
1answer
362 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
35 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 $item....
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: http://www.sharepoint2010blog.nl/2010/07/20/Moving+A+DocumentSet+...
5
votes
2answers
6k 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 = Get-...
0
votes
1answer
167 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
13k 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
496 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 (http://samanalie.wordpress....
0
votes
2answers
5k 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
7k 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
4k 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
9k 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
132 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
224 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
466 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
438 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 c:\...
0
votes
1answer
151 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
9k 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
788 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
915 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
629 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
1k 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 ...