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
2answers
1k 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: ...
4
votes
2answers
3k 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
3k 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
132 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"
3
votes
3answers
8k 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
2k 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
232 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
3k 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
3k 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
2k 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 ...
1
vote
1answer
3k 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
88 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
154 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
230 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
290 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
101 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 ...
2
votes
1answer
1k 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
4k 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
627 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
626 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
908 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 ...
1
vote
1answer
371 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
710 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
36 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
1k 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: ...
1
vote
1answer
1k 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
82 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 ...
1
vote
1answer
3k 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
783 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 ...
2
votes
2answers
19k 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
252 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
152 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 ...
0
votes
3answers
5k 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 ...
0
votes
1answer
684 views

List attachment details

I have a SharePoint application with many users. Is it possible to get list of all attachments in a list item with user name and date time when the attachment was added using PowerShell commands?
0
votes
1answer
198 views

Create link “node” instead of “NavigationNode”

I'm able to create subtitles in my sites. I create title under others, this create subtitles. I use New-Object Microsoft.SharePoint.Navigation.SPNavigationNode which create titles, but what the object ...
0
votes
1answer
272 views

Sharepoint 2010 site collection back up content only no permissions required

Ive a requirement to back up a site collection from dev environment and use it to provisivion a an exact copy as a new site collection in UAT. I understand that we can use the following PowerShell ...
1
vote
2answers
290 views

Site Definition not available from Powershell

Using SP 2013. I have created a site definition in Visual Studio 2012. Deployed that as a solution. From the UI I can create a site and select the template I created. However when I go into ...
0
votes
1answer
45 views

Configuration details

I just inherited a SharePoint farm and am trying to sort through everything and figure out whats going on. Are there any tools built-in or 3rd party that can show me the current configuration details? ...
2
votes
2answers
249 views

Add AD user to sharepoint site

Please help me about adding new AD users, AD groups with Permission to sharepoint site. I can do it for lists and document libararys but adding to site seems to be different. This is what i do for ...
0
votes
1answer
416 views

Delete permissions from site with powershell

I know how to delete permissions from lists and document libraries. Simply I can use the BreakRoleInheritance, and I can remove every user. But I couldn't find a way to do this with a site. Like ...
2
votes
1answer
2k views

Need to kill all Workflows on a list in Sharepoint 2010

Can someone explain to me how to do this using Powershell?
0
votes
2answers
2k views

Trouble using PowerShell cmdlet

I try and run this Script using Powershell ISC run as Admin: #Site URL $web = Get-SPWeb "http://cgprojects/sites/tfs"; $web.AllowUnsafeUpdates = $true; #List Name $list = ...
1
vote
2answers
256 views

SP_Admin SQL Permissions

I'm trying to create a web application using powershell and I'm getting a log in error with the SP_Admin account. I'm not sure if I've made a mistake when I was setting up the environment, I might ...
1
vote
1answer
333 views

Is there a powershell command to wait for the App uninstall job?

I have the following script to update my SharePoint app with the latest version but it always fails with the error: Install-SPApp : An instance of this App already exists at the specified when ...
0
votes
1answer
296 views

Restore from Production to Development

I have two different servers with Sharepoint 2010 standard edition setup. I have two different SQL database servers(DEV_Content and PROD_Content) for these two environments. I would like to create ...
1
vote
1answer
2k views

Can't create User Profile AD mapping using PowerShell in 2013

Using PowerShell, I want to add properties to the user profile in 2013 and map those properties to be synchronized with Active Directory. I can create the properties fine as well as the ...
2
votes
1answer
696 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 ...
1
vote
1answer
858 views

How to embed javascript code in a page using Powershell?

I have a powershell script that creates article pages in a publishing portal site collection. As part of that script I insert the content for each page by setting the value of the $item["Page ...
0
votes
0answers
322 views

Problems after import-spweb

I have used export-spweb and import-spweb to move multiple sites around in SP2010. After import-spweb I notice that some libraries are really messed up. When I try to add an item to the announcements ...
0
votes
1answer
884 views

SharePoint 2013 - Edit TopNavigationBar

I want to edit an item in the TopNavigationBar with a PowerShell script. I´m using a Windows Server 2008 R2 (English) with SharePoint 2013 (German). My PowerShell script says that the Title is ...