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
0answers
148 views

Tool (SSIS or Powershell) to migrate large number of documents with metadata into SharePoint?

I'm looking to migrate 400GB of files (Word, PDF, etc.) from a network file share into SharePoint 2010. The target farm has two WFE's. My question is whether the fastest (in terms of the migration ...
2
votes
2answers
635 views

Activate webfeatures on all SharePoint online webs

I want to activate a webfeature on all subsites of a sitecollection in Office 365 / SharePoint online. I thought i can do the actions in a SiteCollection Feature, but that's throwing a timeout error. ...
2
votes
2answers
10k views

Activating Site Collection Level Feature with PowerShell Script

I am trying to activate a Site scoped feature using a powershell script. I have another scrip which deploys my solution and I see my feature is installed correctly in Site Collection feature gallery. ...
0
votes
1answer
160 views

Update List Item with Powershell Begets Strange Return

On my portal I have a list with columns for First Name Last Name and Account where Account contains usernames. So I have this function which reads through my list (it connects fine, it reads the list ...
1
vote
1answer
52 views

How to move alist with powershell from one site to a subsite?

I havent found how to move or at least copy a list with its content from one site to a subsite. The copy/move needs to copy with versioning included. No clue where/how should I start Thanks
0
votes
1answer
143 views

How to traverse all columns of type Choice with powershell?

I need to traverse all columns in one list of type choice only, I really know how to iterate over a list, and even on columns, but I only need to see choice columns in my script any idea?
0
votes
1answer
6k views

Code for Updating the Master Page Powershell 2013

Can someone please walkthrough this code for me. I just want to make sure that I understand it correctly. I've gotten it to run, but nothing seems to be happenings. Basically, I just need to know ...
1
vote
0answers
67 views

Problem with File.Checkin only on certain files

I have a powershell script that is copying files from a mapped drive into sharepoint and setting some meta data. All is working as expected with the exception of certain files lose most meta data when ...
2
votes
3answers
4k views

Make timerjob runs on specific server?

I have an already developed timer job that is running on front end servers, but I want to set it to run on application servers only. Can I do this with PowerShell without modifying any code of the ...
2
votes
1answer
1k views

Broken Lists Cannot Be Deleted

There are a few lists in a SharePoint Server 2010 development environment that are broken. Due to this situation, clicking the lists in the SharePoint Web interface throw .NET exceptions, and viewing ...
1
vote
1answer
2k views

What is the correct way to migrate a SharePoint web app from classic to claims based authentication?

In my new project, the client wants us to convert several web applications from Classic to Claims. I've read many articles on the steps to convert a SharePoint web application from classic mode to ...
0
votes
0answers
904 views

C#: cannot get listitem field value but works fine in powershell?

back again with a strange issue. Using powershell I can get a handle on a SPListItem and do Item["My Field"] which prints its value. However, in a C# custm workflow activity, when I attempt to do ...
1
vote
1answer
312 views

Find third-party features with powershell

Can I find just third-party features with Powershell? I other words, I want to create an inventory with all features that not come originally from Sharepoint installation.
1
vote
0answers
139 views

Approaches to managing PowerShell for every day menial tasks

PowerShell is a very powerful tool to handle many aspects of a SharePoint farm. On the one hand there is the set of commands typically used by the administrators of the infrastructure. These people ...
1
vote
2answers
1k views

SPSD on Sharepoint 2010 cant run because of framework 4?

I downloaded the Sharepoint Solution deployer SPSD, and I want to use it an SPSD 2010 Farm, to install jusst a wsp But I got this error, which is pretty obvious, 2010 projects run on 3.5 framework ...
0
votes
2answers
3k views

Cannot create a group in term store using powershell - current user has insufficient permissions to perform this operation

I am trying to create a term group in the Term Store in sharepoint 2013 using powershell. Bellow you will find the powershell script that I am using plus the error that I am getting. ...
1
vote
2answers
3k views

Unable to update item using powershell when event reciever is enabled

I have a powershell script that I am using to update some list items programatically. It seems to work as I expected when I disable the event reciever that is associated with the list however when I ...
1
vote
2answers
1k views

Powershell exception when updating ContentType

I have a strange issue when using PowerShell to modify a library ContentType. The following script works correctly: $web = Get-SPWeb $url $lib = $web.Lists[$libName] ...
1
vote
1answer
424 views

Solution deployment fails with error “Violation of PRIMARY KEY constraint 'PK_Classes'”

In our install script, which installs several solutions together, we found that solutions were occasionally failing to deploy with the following error in the ULS log: ...
1
vote
3answers
8k views

Internal Name for the Name(linked with document with edit menu) field SharePoint form library 2010

I am creating a form library(info-path) view using power-shell command. One of the fields the view should contain is the Name(linked with document with edit menu). I want to know this columns ...
0
votes
1answer
4k views

modifying exisiting ListView in sharepoint 2010 using powershell

Hi We have a listViewA(col1,col2,col3) and listViewB(col1,col2,col3) on the same form library. Now the requirement is to modify these existing listviews, so that they do not contain the old column ...
0
votes
1answer
2k views

Get-SPweb with concatenated URL

I cant believe this isnt working, I must be blind!! Please help me... When I do $blog = Get-SPWeb http://sp01.domain.com:8080/my/personal/user1/Blog it is working quite well, but foreach ($site ...
1
vote
1answer
4k views

Modifications to the Suite Bar are only applied to the top level site in the Site Collection

I have used PowerShell to change the left part of the Suite Bar in Sharepoint 2013. However, the changes are only applied to the top level site of the site collection. I assumed it would change for ...
2
votes
1answer
3k views

Remove-SPWebApplication not working if SPAdminV4 service is run by Local System?

I have sucessfully removed my Web Application with the following script: PS C:\Users\SP2013Farm> Remove-SPWebApplication http://portal.com -Confirm -Dele teIISSite -RemoveContentDatabases Confirm ...
4
votes
2answers
255 views

What are the cmdlets for SharePoint 2013 that have no GUI equivalent?

I've not found a comprehensive list on anywhere of the PowerShell cmdlets for SharePoint 2013 whose function or output cannot be achieved via the GUI (Central Admin, Site Settings, etc). I would ...
1
vote
1answer
111 views

Restore-SPSite exception: SPStoredProceduresContent

I'm trying to restore a site collection backup from one server to a different server in powershell, but I get the following error: Restore-SPSite : The type initializer for ...
1
vote
2answers
321 views

Advantage of PowerShell? [closed]

I don't really clearly understand what benefit of PowerShell can be used in relation to SP 2013? What concrete example can it provide business value?
0
votes
1answer
167 views

Is it possible to add a Shell Admin when the SP server is installed on the DC?

I know there are many reasons why a SharePoint 2010 Server should not be on a Domain Controller but this is for a test Server that was rolled up quickly. The current problem is I need to run ...
1
vote
2answers
1k views

Add a level 2 subsite to quick launch of its level 1 subsite

How can I add a link on the quick launch of a subsite, which bring us on the level 2 subsite ? if I do $spweb = Get-SPWeb http://url:portwebapp/SiteCollection/SUBSITE1/SUBSITE2 Then ...
1
vote
2answers
3k views

How can i delete with powershell all sites from a sitecollection without the rootweb?

How can i delete with powershell all sites from a sitecollection without the rootweb? I found this: Get-SPSite <SiteUrl> | Get-SPWeb -Limit All | ForEach-Object {Remove-SPWeb -Identity $_ ...
0
votes
1answer
88 views

Export root site content types and selected properties to csv

I want to recreate a clients' ct structure using VS2012 so some cts and their guids I did have a go but it would be nice only to add the properties I want to my csv file rather than whole lot.. Any ...
2
votes
1answer
3k views

Set group as secondary owner of a Site Collection

All is in the subject. Is it possible to use an AD group (instead of a user) as the secondary owner of a Site collection ? Both in graphical mode and with powershell (New-SPSite ... ...
1
vote
0answers
201 views

PowerShell - Csv : foreach with conditions?

I have to import a csv file, and I want to put a condition directly in the foreach. I mean : To read the csv, i do (yes my delimiter is \ ) : $csv = Import-Csv -Delimiter \ -Path $mypath -Header ...
2
votes
1answer
125 views

Changed URL to pages, but still redirects to Pages?

I have an external website which needs to show URL in lowercase only. I don’t want to use URL Rewrite or any third party tool. Instead we decided to change the actual URL’s of the Pages Library. I’ve ...
0
votes
2answers
1k views

How to get all the SharePoint web parts that are there inside a page and not inside a web part zone

I need some C# or powershell script where I need to list down all the web parts that are defined inside a page and not inside a web part zone. I tried with GetLimitedWebPartManager, but that API, ...
3
votes
1answer
148 views

Change displayed username for Google claims based users

I have set up a SharePoint 2013 environment and am using Azure ACS to authenticate users via Google. This is working really well, however in the top right corner where my user is logged in, it's ...
0
votes
2answers
4k views

List all Pages Libraries using PowerShell and SPSiteDataQuery?

I use foreach in my scripting to make sure I get every web in every site in a specific webapp to, in this case, list (and eventually update) all Pages libraries in the SiteCollection. I've been ...
2
votes
0answers
486 views

Configure welcome pages on sites and subsites with powershell

I have to configure the welcome page for all my sites, and sub-sites. Is it possible to add content in the welcome page ? I mean : a little text, a calendar, and sections on the page's right side ...
0
votes
1answer
394 views

How to deny the requests access on a site collection

SharePoint 2013, In graphical mode, in the authorizations properties of a sites collection, we can decide if users can request the access or not. I'm wondering how to do this in powershell. $spsite ...
0
votes
1answer
1k views

Copy a Site Template to another SPWeb

I've got the following problem: There is a solution I didn't develop, that creates and configures a new Website. I have to change the Site Template that is used for this. So I changed the template ...
0
votes
1answer
27 views

Using powershell to get the connection parameters of the sql server

I'm creating a script to get the CNAME and port that the SharePoint servers use. Is there an out of the box way of doing this? I know that there are plugins I can use but would prefer not to.
1
vote
0answers
63 views

create a content/configuration database using local account with powershell

so someone set up a sharepoint dev environment for me using SP2010 on Windows 2008 R2, and SQL 2008 R2, but they didn't install it as a stand alone which is what I was going after. There is no domain ...
0
votes
1answer
512 views

How can I access/set stsadm properties from code?

I'm trying to set the ChangeLogRetentionPeriod stsadm property from code, which is normally set from the SP powershell. What is the best way to go about setting this property from code? Background: ...
0
votes
1answer
380 views

Adding Calendar Webpart to a publishing page

I am working on a script to create a Calendar in SharePoint site and then add it to a publishing page as part of site provisioning. By using the similar to what is shown in this forum, i am able to ...
0
votes
1answer
206 views

Recreating Host-Named Site Collection Fails To Show Site

I have decided to go with host-named site collections during our SharePoint 2013 migration and have been testing a single site collection to start and everything worked great. I was able to add a ...
0
votes
2answers
2k views

SharePoint 2013 : Updating user profile property using PowerShell

I am working on a powershell script to update the following user profile property on my SharePoint 2013 enviornment, Personal Site Personal Site Capabilities: 0 Feed service provider defined ...
0
votes
1answer
643 views

How to remove specific file types (i.e. docx) from multiple specific Sharepoint libaries?

I am a newbie when it comes to Powershell so I'm asking for help. In Sharepoint 2010 I have several document libraries in a single site collection that all start with the name of 'PT-' and in those ...
0
votes
1answer
87 views

If-exist-then-do condition

I'm new to powershell and I don't get how to do this: if exist $versions | select * | where {$_.versionid -eq "1024"} then do $List.GetItemById($_.Id).file.undocheckout()
2
votes
1answer
650 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
858 views

Delete List Items Using PowerShells with Date Filtering

I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...