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

0
votes
0answers
10 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
12 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 ...
1
vote
2answers
30 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
19 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.
0
votes
1answer
18 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
28 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
39 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
41 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 ...
0
votes
1answer
27 views

PowerShell for Beginners [closed]

Goal: Achieve the fundamental knowledge and skill in PowerShell Problem: What recommended book/available material or assignment can I retrieve in order to learn about PowerShell at home?
1
vote
1answer
36 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 ...
0
votes
1answer
23 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
47 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
34 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 ...
0
votes
2answers
30 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
1answer
23 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
18 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 ...
0
votes
1answer
14 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
59 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
36 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 ...
0
votes
1answer
27 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
36 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
38 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
37 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
29 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
1answer
66 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
25 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
35 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
80 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: ...
1
vote
2answers
52 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?
0
votes
1answer
40 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
30 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"
1
vote
3answers
83 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
84 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
22 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
37 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 ...
1
vote
1answer
62 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: ...
0
votes
1answer
45 views

Difference between Administrator and WSS_Admin_WPG

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 ...
0
votes
1answer
41 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
17 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
25 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
34 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
32 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
28 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 ...
0
votes
0answers
22 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
1answer
94 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 ...
1
vote
2answers
64 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
16 views

When running solution deployment through a remote shell, solution deployment hangs

I have a remote shell (using PowerShell) running a solution deployment on SharePoint 2010. It hangs on the deployment and never finishes deploying. When I do this locally from the box, there are no ...
0
votes
0answers
41 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
41 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 ...
0
votes
0answers
23 views

Page to Search for matching SharePoint Online 2013 Sites and Subsites across the entire o365 tenant. Language and design options?

I'd like to have a Page on SPO that enables my o365 site admin user to search all SPO site collections and sub sites by a string in the URL, Title and Home Page text. What's the best ...