Archives
-
Get Central administration Url from Powershell
Just for memory, here is the command to find the url of the central administration of a Sharepoint 2010 : Get-spwebapplication -includecentraladministration | where {$_.DisplayName -eq “SharePoint Central Administration v4″} | select Url A very simple query, isn’t it ?
Mar 31st, 2011 | Filed under PowerShell, SP2010 -
[Powershell] Activate Sharepoint 2010 Developer Dashboard
This post is for memory but it can be useful for other people. This is how to activate the developer dashboard in Sharepoint 2010, using Powershell. $DevDashboardSettings = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings; $DevDashboardSettings.DisplayLevel=’On’; $DevDashboardSettings.RequiredPermissions = ‘EmptyMask’; $DevDashboardSettings.TraceEnabled = $true; $DevDashboardsettings.Update(); DisplayLevel properties can take the following values : On Off OnDemand
Tags: Developer Dashboard -
Admin SVC must be running in order to create deployment timer job
Imagine, you just develop a new feature to add to your Sharepoint farm. Once packaged, you want to deploy it. You decide to use Powershell because it is THE new shell to manage Sharepoint. First, you have to add the solution using Add-SPSolution commandlet : Add-SPSolution -LiteralPath “c:\deploy\projectlist.wsp” If the solution is successfully added, you [...]
-
[PowerShell] Create a new document in a sharepoint list on the fly
For my project, I need to create a new document in a Document Library if it doesn’t exist. I don’t want to create a file in a temporary folder and then upload it. I want to create the file on the fly. Here is how to do : param([switch]$Help, [string]$url, [string]$listname, [string]$FileName) # load required [...]
Oct 11th, 2010 | Filed under PowerShell -
Powershell 2.0 en RC
Ca y est, Powershell v2 est disponible en RC. Nous allons bientôt pouvoir profiter pleinement de cette nouvelle version qui apporte tout de même pas mal de nouvelles choses par rapport à la version 1. Vous en apprendrez plus sur le blog de l’équipe Powershell : Windows PowerShell Blog Enjoy.
Aug 17th, 2009 | Filed under Actu Techno Microsoft, PowerShell -
Créer une interface avec PowerShell
Il est tout à fait possible de créer une interface WinForms à l’aide de PowerShell. EN effet, PowerShell permet de manipuler tous les objets du Framework .Net et donc on peut créer l’interface en script comme si on le faisait intégralement en code. Cependant, c’est un travail assez fastidieux. Je viens de découvrir un outil [...]
May 14th, 2009 | Filed under PowerShellTags: Tools -
Tester une application Asp.Net avec PowerShell
Et encore un article intéressant qui ne concerne pas MOSS cette fois (encore que …). L’auteur de cet article nous explique comment tester une application ASP.Net à l’aide de PowerShell. Je vous laisse le découvrir par vous-même : Test de requête/réponse avec Windows PowerShell
Jun 9th, 2008 | Filed under PowerShell, Tools