"Set-AuthenticodeSignature" returns Unknown Error while registering the script with a certificate

Recently I have been working on a PowerShell Project where I needed to sign the scripts with the code signing certificates (the ExecutionPolicy was set to “AllSigned”). I did this before many times without a single problem/error. But this time when I tried to sign the scripts with the certificates I got the “Unknown” error…


How to list all the sub-sites and the site collections within a SharePoint web application using Windows Powershell

Recently, I worked on a partner’s request for enumerating all the sub-sites and the site collection within a SharePoint web application. If you want to do the same thing, may this be useful for you. Windows Powershell has made it so easy to work/administer with several Microsoft products like, SharePoint, SQL Server, Exchange Server etc.,…


How to add the Windows Powershell assembly / namespace in .NET

I thought it would be easy to create a PSSnapIn using .NET. But that wasn’t the case initially. When I first created a .NET project for creating a PSSnapIn and wanted to work with “Cmdlet” and “PSSnapIn”; I couldn’t add/find the assembly “System.Management.Automation” in my the project. Without this you can’t create your snap-in. The…


Windows PowerShell and .NET Together (creating the object)

By this time, you are probably aware of the fact that the Windows PowerShell integrates with the Microsoft .NET Framework very well and leverages it power fully. So, if you are new to PowerShell and don’t know much about PowerShell scripting, you can still go ahead and use its power by relying on the old…


The power of PowerShell: Working with ADO.NET Data Services and JSON

A very interesting article to read on working with JSON data with PowerShell on “gduthie” blogs: ADO.NET Data Services, JSON, and PowerShell http://blogs.msdn.com/gduthie/archive/2009/04/08/ado-net-data-services-json-and-powershell.aspx