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
vote
1answer
87 views

SP 2010 Debuging problem

Please HELP, I creating custom SP2010 intranet site for last few months. During development i didn't have any particular problem with debuging except this one and now I can't figure where's the catch. ...
3
votes
1answer
2k views

Creating the secure store service master key fails

I have some powershell to create a farm including the secure store service. The code is pretty straight forward: Update-SPSecureStoreMasterKey -ServiceApplicationProxy $id -Passphrase $passphrase ...
3
votes
1answer
1k views

How to remove the builtin “Item” Content Type from a list using powershell?

I have a custom content type and I added this content type to a list. I now want this list to only use the custom content type and I want to remove the built-in "Item" content type. I tried ...
3
votes
3answers
3k views

Nulling/clearing/updating Managed Metadata TaxonomyFieldValue?

In my recent adventures populating Managed Metadata values (aka TaxonomyFieldValue), I have encountered either a bug, potential oversight, or a substantial erosion of my sanity. In short, it does not ...
1
vote
1answer
616 views

PowerShell PostBuild Script - VS2010 Deployment

I am unable to use default Deploy Feature in VS2010, for SharePoint 2010 deployment most of the times due to complicated setup we have here. I usually have to run STSADM commands, one at a time to ...
0
votes
1answer
3k views

set-SPManagedAccount powershell command

The set-SPManagedAccount powershell command used as follows: set-spmanagedaccount -identity "domain\validdomainaccount" returns the following message: The account domain\validdomainaccount was not ...
5
votes
3answers
9k views

Download and delete documents using Powershell

I'm looking to build a Powershell script that does the following to all documents in a SharePoint 2010 document library: Downloads the document to a network file share Deletes the original document ...
1
vote
2answers
90 views

Is there a way to tell if an IIS site is connected to SharePoint?

I'd like to run a script report back what IIS Sites are SharePoint and which ones are normal sites. Using the following command in powershell, I get a long list of properties of the application pool, ...
0
votes
2answers
992 views

How Specify Application Pool and Identity When Creating Central Admin

I notice when executing the cmdlet New-SPCentralAdministration I am not able to specify the app pool name or its identity. What happens is the the cmdlet creates a new application pool with the ...
0
votes
1answer
356 views

Where can I find a powershell script that created full SharePoint 2010 site hierarchy based on an XML file?

Hi I am trying to create a powershell script to automate the creation of a SP2010 site collection. I want to have an XML file that the script can use to create the top site, sub sites, Lists, etc. ...
1
vote
2answers
3k views

Create sptimer job in c# and/or powershell

Can anyone tell me how to go about creating a timer job for sharepoint 2010 either using C# or Powershell. All the best
6
votes
2answers
166 views

What is a good way to build/install/provision a full web application?

I have a fairly simple SharePoint web application, with a publishing front end, an extranet for customers and an intranet portal. I want this web app to be easily redeployable -- pretty much a ...
0
votes
1answer
658 views

Remove-SPServiceApplication Hangs

I am attempting to run the following Powershell command to remove a service application. The command never returns and just hangs and hangs. Anyone now why? Remove-SPServiceApplication -Identity ...
0
votes
2answers
190 views

Deploying a sharepoint web service with Powershell

Is it possible to install a web service to sharepoint 2010 using powershell rather than using a solution package? I'm currently doing this via a mapped folder/ISAPI approach inside a feature but would ...
1
vote
1answer
305 views

Getting a web service with Powershell

I wanted to update a web application web.config via Powershell, and found this post really helpful. I'm intrigued as to how to this bit of code works, particularly the $closedMethod / ...
2
votes
3answers
12k views

Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

I have a powershell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to sharepoint 2010. I am getting the following ...
4
votes
2answers
6k views

Powershell and checking for Site existence

I am an nube to Powershell, so I think I have a pretty basic question here.... How do I determine if a SPWeb exists? I want to perform some operations on a site based on a URL passed in as a ...
1
vote
1answer
175 views

List of Solution packages are in the solution store

How to find a list of Solution packages are in the solution store in sharePoint 2007 using Powershell?
2
votes
1answer
635 views

updating credentials using powershell

I am in a position where service credentials change quite a lot, I would normally use central admin to change the credentials but quite often the application pool that runs that is using the same ...
4
votes
4answers
19k views

Iterating through a SharePoint List and Items with PowerShell

I am trying to iterate over a List and view properties on some items that live within that list, and down one or two levels; this is on a SharePoint 2010 server. So far I have been able to connect to ...
0
votes
3answers
681 views

Windows Powershell stsadm

I am quite new to windows powershell. I have tried to run the following command "stsadm -o setadminport. I get the error that the Term stsadm is not a recognized cmdlet, function etc. My reading ...
2
votes
3answers
3k views

Why are Taxonomy Term Stores always empty?

Using the following code I should be able to access the Taxonomy Term Stores: $site = new-object Microsoft.SharePoint.SPSite("http://localhost") $session = new-object ...
0
votes
3answers
2k views

Good PowerShell Tutorials for SharePoint People?

For those of us new to SharePoint 2010 and now needing to do much of our work through PowerShell, not knowing PowerShell really well. What have you used to get up to speed on PowerShell? Thanks!
1
vote
2answers
329 views

Convert a basic site to a full site in SharePoint 2010?

I'm not quite sure of the best way to ask this. I have some sites that I would call basic sites (SharePoint Foundation 2010 was WSS) that have very basic functionality and then I have other sites ...
0
votes
4answers
2k views

how to keep two sharepoint list in sync when located in 2 different servers

I two lists one is on site A which is on server A and the second one on site B on server B So i decided to use Powershell to export the list on site A and then grab the export and load it to the list ...
4
votes
3answers
5k views

Use Powershell to iterate through all UserProfile properties

The following script spits out all UserProfile properties for users on Sharepoint 2007: [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") ...
0
votes
1answer
1k views

Cannot create a new configuration database with PowerShell

I want to create a new SharePoint 2010 farm using PowerShell. I use the following command: New-SPConfigurationDatabase When issuing this command (and providing the needed parameters) I get the ...
0
votes
1answer
832 views

Setup an item level auditing for a sharepoint document library

I would like to setup an item level auditing (Opening or viewing or downloading) for a sharepoint 2007 document library without enabling audit for the entire site-collection. This link may help us ...
1
vote
1answer
953 views

PowerShell Scripts to report and alert on site and subsite size

Can anyone help me to write PowerShell scripts that do the following: Report and alert on site and subsite size Report and alert on individual file size Collect search statistics
4
votes
1answer
4k views

Traverse through List of Documents using PowerShell

I am new to PowerShell and would like to achieve the following tasks on a SharePoint 2010 Document library: 1) Using PowerShell, how can I display the List of Documents in a simple Document Library. ...
0
votes
1answer
173 views

Exception setting ApplicationPoolPassword

Following the example in this blog post, I am trying to create a new Web Application with PowerShell. However, when I try the line: $WebAppBuilder.ApplicationPoolPassword = "password" I receive ...
0
votes
1answer
277 views

AddListItem to list by using powershell

Is it possible to add list items to a list by using powershell commands.
1
vote
4answers
1k views

Create a PerformancePoint Services App with custom database name via PowerShell

It seems New-SPPerformancePointServiceApplication cmdlet does not have -databaseName parameter as other cmdlets to create a service apps. I wonder if it is possible to create PerformancePoint services ...
2
votes
1answer
728 views

Migrating My Sites to new dedicated site host

We have taken over a site where My Sites are placed in the Intranet web application. I want to migrate the My Sites to a dedicated host site. From what i have been able to find out so far, I will ...
0
votes
6answers
1k views

SPWebConfigModification is throwing an error

I am trying to update the web.config file through Powershell using the SharePoint class "SPWebConfigModification" however facing the issue mentioned below, please help me to fix this. ...
1
vote
1answer
2k views

Delete timer jobs

I have a couple of timer jobs that I cant get rid of. I think they got created as a consequnce of creating a custom job. Also, if I use powershell Get-SPTimerJob then I get an exception. ...
1
vote
2answers
1k views

Quotas on individual sites

Is there any way to apply storage quotas to individual sites, rather than the entire site collection?
2
votes
2answers
527 views

MOSS2007 PowerShell vs Console Application

I'm looking for a few examples of when you would be better off writing a PowerShell script vs writing a Console Application to perform some operations against the Object Model in a MOSS2007 or WSS 3.0 ...
2
votes
4answers
242 views

Administering SharePoint with PowerShell

I have a limited knowledge on Powershell, but from what I've seen, it can be very useful in admin/dev tasks. What would I have to develop to get a nice toolset for WSS/Stsadm administration? Is ...