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)

2
votes
0answers
131 views

Not able to connect to service with windows account in mix mode authentication

I am trying to connect web service in mix mode/claim based environment with powershell, Below is the sample code for your reference, $WebSrverUrl = "sharepoint:2013/_vti_bin/authentication.asmx" ...
4
votes
2answers
951 views

Access Denied from Migrated SP2010 -> 2013 Web App

I've migrated a web application's content database from SP2010 to SP2013. After the migration was complete, I am completely locked out of the web application. Navigating to the root site collection ...
0
votes
1answer
395 views

Sharepoint 2007:How to export all list items to excel 2007 using object model in powershell script

Sharepoint 2007:How to export all list items and columns to excel 2007 using object model in powershell script
0
votes
1answer
548 views

Retreive column names of a list and (list items) and export to excel using powershell script

I need to retrieve column names of a list and export to Excel using PowerShell script. Can someone assist me to write a script for this? Thanks in advance.
1
vote
1answer
58 views

Error Acessing Remote SharePoint 2010 sites within same network from .NET 3.5 Windows Application

We have been working on a .NET Windows Application for doing Admin tasks and some validation in SharePoint 2010 , since the tool needs to have the functionality to do a site backup and restore I have ...
6
votes
2answers
711 views

SharePoint 2013 Variations Using Powershell

I am using powershell to manage the creation of some site variations following this tutorial: http://www.sharepointeurope.com/blog/2013/7/23/automate-variations-in-sharepoint-2013-using-powershell-c ...
2
votes
2answers
51 views

Require Condition for sitecollection not present with a value in array powershell

I am having an array containing 4 site collections, in that I need to check a condition that if a site collection " " is not present or doest contain a value in that array it should go in the loop. ...
0
votes
1answer
216 views

MOSS 2007 Powershell Export document Attributes to CSV

I have a Powershell script that technically speaking is working fine but I want to make some things more efficient. In order to export the output to a csv what i usually do is start a powershell and ...
1
vote
2answers
2k views

list trottling powershell script

currently my list has threshold value of 5000, I want to increase threashold and disable trottling. I can increase list threshold value from central admin but that would decrease performance of ...
0
votes
1answer
269 views

Working on the User Profile and Mysite web

I just trying to get few information from a user (like if the mysite web exits) and working with that. The main problem is understand if the user has a mysite web and delete it if exists but to do ...
0
votes
3answers
12k views

Extract all list names from sharepoint site to csv

I need a PowerShell script that loop through a site collection and list down all the list title in excel format
1
vote
0answers
2k views

SharePoint 2013 MetaNavigation Problem deleting Termsets

The following is just a test script borrowed in part from http://goo.gl/Cw1D8h "PowerShell to create and reuse Managed Navigation for multiple sites in SharePoint 2013" The following script works ...
2
votes
1answer
148 views

How to display the values in powershell in Excel format

I have got certian output of list properties using powershell script. I need to display it in an excel format. I require the code to display the result in excel format?
4
votes
2answers
3k views

Powershell to delete checked-out documents with no checked-in version

I have created a script to delete all documents inside a library, including documents in folders and the folders themselves. However, it seems that the script will not remove documents that have no ...
1
vote
1answer
187 views

Unable to compare 2 sharepoint site url in powershell script

Hi i need to compare 2 sharepoint site urls using powershell script. So that once the url is compared it should go into some loop for deactivatng a feature in only one site in a bunch of webapp and ...
3
votes
1answer
2k views

using powershell script update the page name in sharepoint 2013

I wan to change the page name with Power shell script. When I had run the script I was given an spexception error: Exception calling "CheckOut" with "0" argument(s): "The URL ...
3
votes
2answers
30k views

Unable to execute: Add-PSSnapin Microsoft.SharePoint.PowerShell

I'm attempting to use the PowerShell ISE on a Win 2012 Standard Server. I followed the steps here (http://sharepointpromag.com/blog/powershell-and-sharepoint-step-1-loading-dlls-and-snap-ins) to add ...
0
votes
3answers
67 views

Wanna Learn PowerShell

I have read many blog sites about powershell and I wanna learn practical skills in PowerShell. Is there a website to read about what assignment to do or similiar?
0
votes
1answer
718 views

how to enable “Publishing Approval Workflow” using powershell

I tried to activate "Publishing Approval Workflow" feature using the below powershell script, Enable-SPFeature –Identity Publishing Approval Workflow –url http: But its not working.
1
vote
1answer
165 views

Require powershell command to retrieve a specific list and that particular list properties

I need to loop through all site collection in a web app and I have to extract the list name called "Project Center" and list down all the list properties. Help required.
1
vote
2answers
529 views

How do I create an SPSite object in powershell that references a remote farm?

I'm writing some powershell and I can easily access local farm resources but I would like to access a remote farm? Is this possible? The code works below when targeting the local server: $site = ...
4
votes
1answer
7k views

How to correctly dispose spweb and spsite on powershell foreach!

Title of the question is pretty simple, I have 18000 site collections and this script is showing 1GB of ram used, so I wonder how can I dispose correctly the spweb and spsite object $webapplication = ...
1
vote
2answers
260 views

SPWeb dispose after crashing powershell ISE [duplicate]

I built a powershell script that connects to sharepoint and adds items to a list. This script caused the PowerScript ISE editor to stop responding and crash before disposing. The SP server logs ...
1
vote
2answers
150 views

How to set a powershell variable to a specific sharepoint page

I have a SharePoint 2010 documents library that contains about 50 .aspx pages. I want to break inheritance on about 6 pages and set them to specific permissions. I am able to get a page by numerical ...
1
vote
2answers
172 views

Applying link with varying image to SuiteBarBranding -element across the site collection

I've followed these instructions to change the default header of the SharePoint(2013)'s site. The code I used is this: $webApp = Get-SPWebApplication https://<intranet> ...
2
votes
2answers
5k views

Is it possible to export/import a Sharepoint 2010 subsite?

Is there a way to import/export or backup/restore a sub site? I have a site collection at http://someurl.mycompany.com/sites/content. I have sub sites under that site collection that were created by ...
2
votes
3answers
1k views

Differentiate between custom timer jobs and system timer jobs

Is there a way to differentiate between custom timer jobs and system timer jobs. Under Central Administration - Monitoring - Job Definitions I see all the jobs defined on the farm. I´m new to this ...
0
votes
1answer
4k views

How to execute a script in SharePoint Management Shell?

PS C:\logfiles> dir Directory: C:\logfiles Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 12/11/2013 2:54 PM ...
1
vote
1answer
142 views

How to AddItem with certain ContentTypeID using PowerShell

I am using PowerShell to add 100 items which need to be of a specific ContentType. (requirement) Test my custom events receiver using powershell. The test is to create a list with a custom content ...
5
votes
1answer
3k views

Powershell: Cannot update taxonomy type column item with multiple values

I'm having a strange problem. I try to populate items' property which is of managed metadata (taxonomy) type and the update method doesn't work. This field has "allow multiple values" property ...
2
votes
1answer
419 views

How to delete data from AuditData table that does not exist any more?

Our auditData table is growing and growing. I was able to delete some data using the powershell script: foreach ($site in get-spsite -Limit ALL) { $site.Audit.DeleteEntries("05/01/2013") ...
1
vote
1answer
514 views

how to get back old modified user name and date in Sharepoint 2010 document library?

Is is possible to revert sharepoint back with old modified user and modified date information? Even restoring version history changes modified user and date. For ex: my file in sharepoint 2010 ...
0
votes
2answers
4k views

Access Denied Add-SPSolution [duplicate]

I'm getting this error while adding solution to prod farm... a few weeks ago i found a website that gave me a line to write before launching any add command, but can't find it anymore Secondly, ...
2
votes
1answer
43 views

Copy of Test Phase to Production Phase

If you have two phase, test and production phase and test phase has a database with 40 table + 55 views + all cubes from analysis service. The production phase is a reflection of test phase. Is it ...
1
vote
2answers
173 views

what is best practice for automating site structure creation?

I'm working on creating a website in SharePoint. I need a way to automate what I have done until now. For example I have created a web application and two site collections and bla bla. Now I have two ...
1
vote
1answer
91 views

Is it possible to make the sp group names localizable when created using powershell

I have been able to create a powershell script that creates sharepoint groups per site collection. But I need to create this groups in 2 different languages. my question is, is it possible to make ...
3
votes
2answers
737 views

is it possible to compare environments?

I'm trying to find a tool or a PowerShell script which allow me to compare 2 environments, my goal is to compare my production farm and my pre prod farm and to compare as many settings as possible, ...
0
votes
1answer
107 views

Different results from Command Line and Script

If I run Get-SPWebApplication -IncludeCentralAdministration | Get-SPSite | Get-SPWeb I get back a list of all web sites including Central Administration. If I put this line in a script and run this ...
2
votes
1answer
63 views

Retrieve Custom Workflows Info

Via SharePoint Designer it's possible to verify all Site Collection Workflows (on the Workflows List) grouped by type. How can I via Powershell retrieve all that info displayed in the SPD Workflows ...
2
votes
0answers
99 views

Is it possible to read the contents of deleted folders in the RecyclingBin?

I've been playing around with scripts that read deleted files from the recycling bin such as the one below but I can't figure out how to read the files within a deleted folder without restoring it ...
0
votes
3answers
478 views

Create a document library from custom list definition with powershell

I have a question regarding the creating a Document Library based on the custom list definition, how can I do that using the PowerShell. Thanks
1
vote
2answers
246 views

Editing CreatedDate on a publishing page using powershell

I am trying to move some publishing pages from an old SharePoint server to a new one using powershell. When I try to update the createdDate it says the property is read only. Is there a way to change ...
1
vote
2answers
105 views

configure claims authentication in Sharepoint Which has configurd in 2 different servers

I am trying to implement claims based authentication in SharePoint which is configured in 2 different servers, previously it was in one server and it worked fine with a custom STS(.net mvc ...
0
votes
1answer
2k views

Upload file to SharePoint Document library using powershell

I want to upload the same file to multiple site collection with the same hierarchy in all the site collection using powershell and the with functionality auto checkin/checkout. I have able to upload ...
3
votes
3answers
15k views

Export all the columns from Sharepoint list via Powershell

While exporting the data from Sharepoint via Powershell into a txt/csv file, I started to think, is there a way to choose all of the columns than writing all of the columns down to the code? because ...
2
votes
1answer
1k views

How to check user has visited site collection first time?

I want to know which users have visited the site first time from the added users. For ex, I have added 40 users in the sharepoint but only 10 users have logged in and 30 have never logged in the site. ...
1
vote
1answer
884 views

Powershell to add users to custom security groups - getting 0x80070005 error

The following powershell reads an xml file and adds users to custom SharePoint security groups. If ([bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")) ...
0
votes
1answer
506 views

Error while creating search center (Powershell)

I try to create a new search center (as a subsite of a subweb) with powershell When I do this, I get an error: New-SPWeb : Provisioning did not succeed. Details: Failed to initialize some site ...
-1
votes
2answers
226 views

3rd party tool to minimize the manual effort - SharePoint 2010?

We would like to setup a tool to help us on the below listed activities and dont expect any additional features, the tool should be cost effective as we have 2wfes with less than 4k users. Manage ...
0
votes
1answer
114 views

How to send files from Shared Folder to SharePoint Library

We have a ticket system on the network that creates documents in a shared folder (Different computer on our network). Is there some way I could create a script to take files from the folder and add ...