Questions tagged [powershell]

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 local and remote Windows systems.[except from WikiPedia]

Filter by
Sorted by
Tagged with
1
vote
2answers
102 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
1k 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 ...
1
vote
1answer
454 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
5k 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
7
votes
2answers
183 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 one-...
1
vote
1answer
2k 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
237 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
389 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 / ...
6
votes
3answers
28k 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 ...
7
votes
2answers
14k 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
180 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
1k 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 ...
6
votes
4answers
48k 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
2k 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 ...
3
votes
3answers
5k 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 Microsoft.SharePoint.Taxonomy....
0
votes
3answers
3k 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
333 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 Lists in sync when located on 2 different servers

I have 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 ...
6
votes
3answers
15k 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") [void][System.Reflection....
1
vote
1answer
2k 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 ...
1
vote
1answer
1k 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
1k 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
5
votes
1answer
12k 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. ...
1
vote
1answer
233 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 the ...
0
votes
1answer
288 views

AddListItem to list by using powershell

Is it possible to add list items to a list by using powershell commands.
1
vote
4answers
2k 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
755 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
2k 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. [System....
1
vote
1answer
5k 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. Get-...
1
vote
2answers
2k 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
646 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 ...
4
votes
4answers
260 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 ...

1
72 73 74 75
76