Posts Tagged ‘powershell’

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 [...]

PowerShell Script to Populate a vWorkspace Farm

Here’s a script I wrote to help setup a vWorkspace farm. I’m constantly rolling out new farms and having a script like this will probably save me a week of my live this year. I don’t have to click through the same wizards to create the same apps and assign them to the same users. [...]

Automatically backup Hyper-V VMs using PowerShell

Trying something new! Today I have a guest blogger. Joel Webster works at Dell with me and works quite a bit on the PowerShell support for vWorkspace. He has been an intern for quite a while and really knows his stuff.  Adam

PoshInternals – Get-Dll

The ListDlls SysInternals tool is used to list the DLLs that are loaded into processes on the system. It can either return DLLs for all processes, a single process or return processes that contain a particular DLL. It also has the ability to flag DLLs that are rebased and unsigned. Most of this functionality is [...]

PoshInternals – Install-BlueScreenSaver

Bluescreen is a screen saver that is part of the SysInternals suite that mimics a Windows blue screen of death. It can also mimic chkdsk and the boot process. Screen savers themsevles are actually just executable files renamed with an extension “scr”. Once placed in the System32 or SysWow64 directory, they can be accessed via [...]

PoshInternals – Move-FileOnReboot, Remove-FileOnReboot and Get-PendingFileRenameOperation

Other posts found in this series PoshInternals – Get-Handle Another cool tool in the SysInternals suite is MoveFile and PendMoves. Rather than moving the file immediately the tool is used to move, rename or delete a file on restart. The System Manager looks at a special registry key to determine which files to are candidates [...]