Tagged Questions

This tag should be used for questions that relates to PowerShell usage in SharePoint. Relevant links for using PowerShell for SharePoint, and general PowerShell links SharePoint 2010 Products administration by using Windows PowerShell Windows PowerShell for SharePoint Server 2010 Administrators ...

learn more… | top users | synonyms

0
votes
2answers
24 views

This powershell runs but why is it so slow

I ran this powershell which automates wsp addition, activate, deploy web parts and it runs fine. However, it takes about 3 minutes to go through the whole process. Is this norm? = = = powershell code ...
0
votes
1answer
17 views

Create Library with PowerShell

I want to create libraries in SharePoint 2010 using PowerShell. So far, so good. I'm using this chunk of code to create the library (actually list, but that doesn't matter) $listTemplate = ...
3
votes
1answer
26 views

I am trying to rename a site using Set-SPSite command

I have created several host-named site collections and now I have to rename a couple. I used the command New-SPSite to create 'http://test1.domain.com' and was able to get everything going fine, but ...
1
vote
1answer
42 views

download profile pictures powershell way

I am using following powershell (that I got from here http://spsatheesh.wordpress.com/2011/06/03/download-all-the-profile-pictures-through-powershell-using-web-service/)so I can download all the ...
0
votes
1answer
28 views

Powershell script to update Navigation.GlobalIncludeSubSites not applying change

I'm using the following PowerShell script to update the Navigation.GlobalIncludeSubSites value from true to false, which is working, except that the changes are not properly applied. By that I mean ...
2
votes
1answer
35 views

How to check if there is any active solution deployment running on the server?

Is there a way to know if there is any active solution deployment running on SharePoint server? I'm wondering how to do this using a PowerShell script?
1
vote
1answer
20 views

Delete List Views

I'm looking to mass delete certain views on a list (about 1000). the naming convention used for the views is [user name] [r#] [view name] view. the # is a value ranging from 1-5 and the view name has ...
1
vote
1answer
60 views

Powershell script to update pages. Dispose page afterwards?

I'm using a PowerShell script to update page titles and PublishingPageLayout's in a particular web that has 391 pages. However, I'm finding that the longer the script runs, the slower each pages is ...
0
votes
1answer
58 views

Is there a PowerShell CmdLet or SharePoint CmdLet that allows reading a Content List?

My eventual goal is to be able to check on new items added to a Content List but I was trying to figure out if there was a CmdLet that could let me access the Content List in a SharePoint Site. I ...
0
votes
0answers
30 views

update content types and all lists/library using this content type

We are using SP2010 and have many content types and are using Content Type Hub for publishing these content types to site collections. These content types are being used in tens of Site collections ...
1
vote
2answers
49 views

Powershell: Is disposing of an SPWeb object necissary when its referenced from an SPSIte object?

Edit This is for SharePoint 2007 I have this powershell script: ## Reference to SharePoint DLL [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, ...
0
votes
2answers
31 views

Change SocialTag Url?

I want to change the url of my solution from mycompany.no to mycompany.com. How can I preserve the Social Tags. SocialTag Url property is readonly it appears. :( Does there exist a powershell or ...
1
vote
0answers
32 views

Changing permission level of a document from contribute to read for members

I need a help .... with a powershell script. I have a document and i need to modify the existing permission level for members from 'contribute' to 'read'. Anyone has any idea how to do that? In ...
0
votes
1answer
38 views

deleting managed metadata using powershell script sharepoint 2010

Deleting managed metadata term stores using powershell script. Was trying with the below script but getting error "Cannot index into null array". Please help out thanks in advance.... Add-PSSnapin ...
1
vote
2answers
28 views

A way of setting custom configuration properties that can be changed via power shell

I have a few custom settings for my feature that I am creating. I want a way to populate these values on install with some default values. However if needed an admin should be able to change the ...
1
vote
1answer
15 views

Is there a way to execute commandline-arguments via code from a feature/webpart (Sharepoint 2010)?

I mean, for example, something like a deployment. Is it possible to force something like this from within a webpart using the "standard" sharepoint functionality? Using the central-administration is ...
0
votes
0answers
58 views

Executing SharePoint PowerShell Script from SharePoint Context Doesn't work

First let me explain the problem I'm trying to solve (My environment is SharePoint 2010 and I'm using Infopath 2007 template and InfoPath Forms Services) I have a infopath forms template(.XSN) in a ...
3
votes
1answer
66 views

How to authenticate when using powershell

I am trying to perform some tasks on user profiles and so, need to connect with different permissions using an account created for that. And, I am doing this with Powershell. Try { $site = ...
1
vote
1answer
29 views

Change owner of all objects

Is it possible to change the owner of all lists, libraries, and pages on SharePoint 2010? Our developers logged in via their personal accounts to the dev server and so SharePoint took their account as ...
1
vote
1answer
26 views

Edit Search Dropdown ScopeDisplayGroup with Powershell Unauthorized

I am trying to edit the Searchbox Scopes dropdown ScopeDisplayGroup using Powershell using the following code (partly backwards engineered from the scope edit layouts page codebehinds): ...
0
votes
1answer
27 views

Unable to get the metadata into list when trying to populate data from csv file using powershell into list

I was trying to import the csv file with 5500 items in it and it is also having metadata items when i try to use powershell script to populate the data from csv to list everything is showing in list ...
0
votes
1answer
89 views

powershell script to add a managed metadata column

$webURL = "http://xxx/sites/wingtipcalculator" $spSite = New-Object Microsoft.SharePoint.SPSite($webURL) $spWeb = $spSite.OpenWeb() $listTemplate = $spWeb.ListTemplates["Custom List"]; ...
0
votes
1answer
48 views

PowerShell script to set default value on a metadata (termstore) column in a SP 2010 document library?

Is there a PowerShell script that will set the default value for a metadata (termstore) taxonomy column in a SharePoint 2010 document library?
2
votes
3answers
120 views

powershell script to add a managed metadata column

I'm looking for a powershell script that allows me add metadata column in SharePoint list. Thanks
3
votes
1answer
37 views

How to create a content source of type “web” with the option “Only crawl within the server of each start address” via powershell

I have a requirement to create a content source of type "web" with the option "Only crawl within the server of each start address" via powershell. I am trying the below command : ...
0
votes
0answers
34 views

Modifying the permission level of a site with ps [closed]

I wrote a powershell script and I would like you to varify if it is a good one. So the goal of this script is that it will retrieve a specific site and will modify the name of a persmission level, so ...
1
vote
1answer
30 views

Build and package SharePoint2010 solution from PowerShell?

Are there any scripts to build and package a SharePoint2010 solution from directly from PowerShell, instead from Visual Studio 2010?
0
votes
0answers
39 views

Multiple Propset Guid Mapped to a Category

I'm working in a powershell scrip for F4SP 2010 server that reads lines from a .csv file and creates the mappings between managed properties a crawled properties. I don't have much problem, just a ...
0
votes
1answer
57 views

Modifying group owners of sites with ps

I need help here with powershell, as im not that good in, im only starting, but i need already to make a powershell script but will run thru all collaborative spaces and modify 4 groups by setting ...
2
votes
2answers
78 views

How to use GetItems in Powershell to retrieve list items

I'm having issues with this powershell script below. It does work with SP 2007 but won't work with Sp 2010. My goal as you can see is to filter the list returned using the field Date - 1. But getting ...
1
vote
1answer
39 views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
2
votes
1answer
183 views

Permissions error setting up SharePoint 2010 PowerShell account privileges

SharePoint Foundation 2010 SP1 on Windows Server 2008 R2 Std SP1 (Domain Controller) in a simple farm with a single SQL Server 2008 SP1/Windows Server 2008 Std SP2 backend I realise installing SP on ...
2
votes
2answers
58 views

Migrating changes from development site to staging site without doing a content database backup and restore

I wanted to find out the best practice to migrate changes from a development site to staging or production site. I think there should be a better way than backing up the content database on ...
1
vote
2answers
74 views

Get all the machines in a SharePoint farm

I'm writing a really big script which will get a lot of info from my farm. I'd like to make it work dynamically, so I would need to: Get all the database servers in the SharePoint farm Get all the ...
2
votes
2answers
83 views

Restore-SPSite issue with versions

I'm trying to restore a SPSite using Restore-SPSite command. The command returns : Restore-SPSite : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be ...
3
votes
2answers
109 views

Get the check out file based on users Name

My environment is SharePoint 2007. I have write a Power shell script to get the file names and checked out by username and their email id. I am successfully able to get these details. Now I want to ...
2
votes
1answer
61 views

Moving list from one environment to another while preserving the GUID

I have a list template (.stp) file. I would like to restore the list and its contents in any given SharePoint environment. The conditions for restoring are listed below: Restore the list to any ...
4
votes
1answer
79 views

SharePoint 2010 Documentor

Is there already existing a tool , I think "documentor" can be his name for Sharepoint 2010 that can output a form of documentation with a description of all db, web application , sites, sub sites , ...
1
vote
1answer
35 views

Can not turn of notifications (SP 2010)

I'm about to update 300 items in a list that I know lots of users are subscribing to (notification by email on every item update event). I've tried turn this off by using STSADM: stsadm -o ...
0
votes
0answers
23 views

Powershell way to download all the xsn and nwf [closed]

Is there a way to hooked to web app and download all the infopath xsn and nintex nwf? If yes, does anyone know a good link?
0
votes
1answer
66 views

Migrating MOSS 2007 to SharePoint 2010 giving the error “Invalid Object Name sites”

I am migrating SharePoint 2007 publishing site to SharePoint 2010. These are the steps I have followed 1. Backup the content database from the SP2007 machine. 2. Restore that database in sql server ...
2
votes
1answer
102 views

Possible to set the default page layout for a site using Powershell?

I have a bunch of sites in which I would like to change the default Page Layout. Is there a way to set this to a custom Page Layout using powershell? (The page layout is already on all the sites) ...
1
vote
2answers
103 views

How do i get the url for the mysite host from powershell?

I need the url of the mysite in SharePoint 2010 server. In my farm i only have one MySite host (and one corresponding user profile service) configured. I need the information on one of the farm ...
1
vote
2answers
53 views

turn off alerts on an announcement list

How can I disable email alerts for an announcement list (that is, prevent users from signing up for alerts on this list)? I looked at the list settings in the UI, but did not see a way to do this. I ...
1
vote
4answers
92 views

Possible to checkout a file using PowerShell?

I have a powershell script that inserts webparts onto a page. The problem is that if I don't have the page checked out it will throw the following error: Exception calling "AddWebPart" with "3" ...
0
votes
0answers
110 views

How to set custom Web Part values through powershell?

I am using a powershell script to initialize several values of a custom webpart and then insert that webpart onto a page. I have been partially successful using the method below: ...
0
votes
1answer
71 views

How to add an instance of a custom webpart to a web page using PowerShell?

I found this article which does a very good job explaining how to add built in web parts (like the content editor webpart). Unfortunately when I tried to add my own I couldn't get it to work. I have ...
0
votes
0answers
39 views

How to remove Secure Store Application in SharePoint 2010 through Powershell?

Although I have added the SharePoint snapin, "Add-PsSnapin Microsoft.SharePoint.PowerShell", I still get errors when delete SPSecurityStoreService as below descripted. BCS: Message: The term ...
2
votes
5answers
118 views

Access Denied Retrieving Sites (Webs) Using PowerShell

My goal is to retrieve all the alerts for a given domain user, in SP 2007, then delete these alerts. I have referenced the following script on this site. In DEV environment, when I run the script I ...
0
votes
1answer
19 views

Searching Site Farm / Collections for instance of URL

I am looking into a way to search for a specific URL within SharePoint. I have seen the solution that searches with PowerShell script for searching lists for specific links? and ...

1 2 3 4 5 6