Tagged Questions
0
votes
1answer
27 views
Remove all site collections under one specific path
I have a web application with 100 site collections under the /sites/ path.
Also a root site collection in the root /
I need a powershell script to delete all of them except the root site collection.
...
-6
votes
3answers
99 views
Is there any tool that can do c# code to powershell
I was wondering if there is an online tool that can convert c# code to powershell cmdlet code. I have following code that i need to have it powershell. I dont have visual studio to turn this into an ...
0
votes
0answers
20 views
PowerShell set SharePoint User Profile Property to a specific section
I am using PowerShell to add user profile properties to the User Profile Properties service.
Right now they are being added into the "Custom Properties" group. Is there a way to specify which group ...
-2
votes
1answer
61 views
Powershell Cmd and Option at runtime
Let me write this example: we are in a deploying process where we want call a command runtime (Get-SPFeature for example), and this command accepts some options that you want change during the process ...
0
votes
0answers
13 views
SharePoint 2013 Create Variation Labels with powershell script [migrated]
I'm actually trying to add variation labels to a site using powershell script (SharePoint 2013), and i know there is no powershell script for the job so im looking at some c# object model and i found ...
0
votes
2answers
47 views
powershell create new spweb
How can I create a new instance of SPWeb?
I don't want to use Get-SPWeb or New-SPWeb as I don't want to get an existing object, or create a new page.
I just want to create a SPWeb object and set ...
2
votes
1answer
6k views
Powershell script to list all sharepoint 2010/2007 pages and their layouts
I'm trying to write a powershell script which will run all over my sharepoint 2010/2007 pages and will list their page layout and will save the results into a text file.
while running the following ...
0
votes
0answers
102 views
Authenticate Powershell script on SharePoint site using Claims
I have the following problem:
my team uses a SharePoint team site, for delivering our work among other things. We are SharePoint developers and write a lot of powershell, but as far as this site is ...
0
votes
0answers
72 views
How can I get the date of the last Full Crawl in Sharepoint 2010 using Powershell?
I can run the following to get the current crawls and from there determine the last crawl completed date.
# Get the Search App from Sharepoint
$searchApp = Get-SPEnterpriseSearchServiceApplication ...
0
votes
0answers
248 views
Powershell command for getting Sharepoint deployment path
I'm using PowerShell to deploy a service to SharePoint. These are my commands so far:
Add-PSSnapin Microsoft.Sharepoint.Powershell -EA 0
Add-SPSolution "c:\SPService.wsp"
Install-SPSolution ...
1
vote
3answers
920 views
cannot get basic sharepoint powershell script to run
I have a simple powershell script intended to manipulate Sharepoint 2010. I have stripped it down to the minimum to illustrate the problem.
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction ...
1
vote
0answers
132 views
Can't Uninstall Sharepoint Application - Invalid State
Our Sharepoint 2013 Application failed to install and is stuck in a odd state. I followed the recommended approach for deleting the application using powershell commands on the hosted Sharepoint ...
3
votes
3answers
2k views
PowerShell 3.0 Sharepoint scripts not working
Today my powershell updated to version 3.0. This version is build against and uses .NET runtime 4.0. The Sharepoint 2010 cmdlets require .NET 3.5 and don't work under 4.0. Anyone has an idea how to ...
0
votes
0answers
175 views
How do I copy my master page up to SharePoint 2013 file system using PowerShell?
I guess I should ask if it's even possible, but I would like to be able to author my master page (and corresponding files) locally, and copy it up to the hosted SharePoint 2013 site using a PowerShell ...
0
votes
1answer
2k views
Enabling Sharepoint Features With Powershell
I am new to PowerShell and have been asked to modify a script that is used to activate features on a site. The script has some latency issues between the two feature activations, so I decided to make ...