Browse by Tags

All Tags » PowerShell (RSS)

Edit file in Wss3 web application with SharePoint Designer blows up your web site

I wanted to create a simple html file in the root of my Wss3 web application, so I created an empty file test.htm. I double clicked te file and because I have SharePoint Designer installed, it is the default editor for .htm files. I put some test into...
Posted by svdoever | 7 comment(s)
Filed under: ,

SharePoint stsadm.exe and the infamous "Command line error"

The SharePoint command-line utility stsadm.exe was driving me crazy for the last two days. I'm automating all kind of this from PowerShell scripts, but I got the error "Command line error" while I was absolutely sure that what I was doing was correct...
Posted by svdoever | 7 comment(s)
Filed under: , ,

PowerShell Exception handling using "Trap" explained - links

PowerShell has powerful exception handling, but it is badly documented and takes while to understand what the heck they actually want to do to wire up the exception handling. I'm normally not such a link poster, this is more of a "post-to-self" item that...
Posted by svdoever | with no comments
Filed under:

Powershell: Is a SharePoint solution installed or deployed?

I was having some fun with PowerShell to talks against the SharePoint object model. I needed to know if a SharePoint solution was installed and if it was deployed. I got to the code below. Might be handy for someone to see how easy it is to get info out...
Posted by svdoever | with no comments
Filed under: ,

PowerShell: Creating a SharePoint solution package (WSP file) with CAS

I need to add some code access security information to a SharePoint solution package manifest file. Given the assembly file we can retrieve the required assembly info, and with some xml magic in PowerShell create some result xml. It is not actually the...
Posted by svdoever | 1 comment(s)
Filed under: ,

PowerShell: get SharePoint Central Administration web application path

One of those things that you find out, forget, and never find back. So its more a post to self;-) [void][reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint") [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]::Local.IisSettings...
Posted by svdoever | 2 comment(s)
Filed under: ,

Generate a list of GUID's

Sometimes you just need a lot of GUID's while programming. Ofcourse you could use the Visual Studio GUID tool, bu that is a lot of work. Open a PowerShell console, and paste in the following line to get a list of 100 guid's: $i=100; while ($i-- -gt 0...
Posted by svdoever | 3 comment(s)
Filed under: ,

Factories @ Macaw - the DotNed presentation of april 26, 2007

On april 26, 2007 I gave a presentation at the Macaw headquarters in Schiphol-Rijk, The Netherlands on what we are doing with Software Factories at Macaw. I promised the audience to publish some links to tools and information mentioned in the presentation...

Consistent naming of PowerShell Cmdlets

PowerShell has some simple guidelines in naming cmdlets so consistence is achieved in cmdlet names. Some quotes from this page describing Cmdlet Verb Names : Windows PowerShell uses a verb-noun pair format for the names of cmdlets and their derived .NET...
Posted by svdoever | with no comments
Filed under:

PowerShell - Windows PowerShell In Action - Bruce Payette

I have done a lot of coding in Windows PowerShell last months, and my biggest help next to some of the great weblogs on PowerShell like the weblog of The PowerShell Guy and the PowerShell team . , was an early access version of the Windows PowerShell...
Posted by svdoever | with no comments
Filed under:
More Posts Next page »