Archive for the ‘PowerShell’ Category

PowerShell Tools for Visual Studio Thanksgiving Special!

In celebration of the Thanksgiving holiday (and because I finished a bunch of cool stuff), I’ve released a healthy update to PowerShell Tools for Visual Studio to the Gallery! There have been a lot of enhancements to the extension. I’ll highlight some of the key features in this post. Unit Test Adapter This particular feature […]

Execution Policy in PowerShell Tools for Visual Studio

I’ve had several people report issues with PowerShell Tools for Visual Studio behaving differently than the NuGet console. After some investigation, I’ve found that NuGet actually resets the process scoped execution policy to RemoteSigned if it is not Unrestricted, RemoteSigned or Bypass. This is taken from the NuGet source for the VSConsole. private static void […]

PowerShell Tools for Visual Studio Beta v0.5

If you haven’t seen the news, PowerShell Tools for Visual Studio is now available on the Visual Studio Gallery! The first beta brings with it many enhancements from alphas past and supports VS2013 RC. Here’s a quick overview of ┬áthe current state of the extension. Requirements The current requirements for PoshTools are PowereShell v3 and […]

The Future of PowerGUI VSX

PowerGUI VSX was released in June of 2010. Since then, it has received over 80,000 downloads between the Visual Studio Gallery and CodePlex. Over the past year, I have let the project slip. The last few versions didn’t even really add any new features but merely updated the version of PowerGUI they were compatible with. […]

PoshInternals – Multi Desktop Support

One really neat SysInternals tool is Desktops. It allows for managing several virtual workspaces, know as desktops on Windows machines. Unlike Linux that offers a builtin way to transfer between desktops, Windows does not natively expose a way to do so. The cmdlets added to PoshInternals now allow you to manage these virtual desktops right […]

Getting Physical with PowerShell

PowerShell has historically been focused on managing servers’ software. With the implementation of the CIM cmdlets in v3, that changed quite a bit. See this module in particular to see how to manage hardware directly with PowerShell. Well there is another form of hardware manipulation that I wanted to expose some PowerShell support for. If […]

Testing ASP.NET MVC4 Web API Endpoints with PowerShell

PowerShell v3 added some very useful web cmdlets that make working with web services and pages much easier. In previous versions, it was common practice to use the WebClient class but this wasn’t straight forward in the least bit. Recently, I’ve been working with ASP.NET MVC4 Web API and found that the new additions to […]

Using Show-Command to make a simple UI for a non-PowerSheller

Show-Command is a really handy PowerShell cmdlet. Jeff Hicks gave a great presentation at the PowerShell Deep Dive about how to create simple GUIs without having to resort to WinForms or WPF. In his talk he showed off Show-Command and other cmdlets like Out-GridView. Recently, we have been providing some simple solutions to customers using […]

Decompiling C# Code with ILSpy and PowerShell

This week at the PowerShell Summit in Redmond, I gave a talk about using .NET reflection in PowerShell. We took a quick look at ILSpy and how to read the decompiled C# code that makes up compiled .NET assemblies. After a comment by Karl Prosser, I figured it would be cool to take it a […]

PoshInternals: PoshExec

PSExec is a SysInternals tool that enables remote execution of processes. One of the really neat aspects of the tool is that it can execute processes interactively in user sessions and on systems that may not expose another way of remotely executing processes. PSExec works much differently than PowerShell remoting or WMI. PSExec manages all […]