Ken Taylor has a PowerShell blog over on LiveSpaces. Today he posted a blog entry, Enabling RDP with PowerShell, that had me jumping for joy as a perfect example of the Admin Development Model in action. The whole point of the admin development model is that you use tools to quickly investigate the system and manage it. Ken needed to enable RDP on a remote Server and remembered that it was possible to do via WMI. Read his blog for the steps he used to quickly and easily investigate the system to find exactly want he needed to do within 2 minutes!.
The only thing Ken didn’t do was to encode this information in a script for sharing with others. I’ll do that there:
Function Enable-RDP ($Server)
{ $Terminal = Get-WmiObject Win32_Terminal –Computer $Server
$Terminal.Enable($True)
}
The particular solution is not the point, the way he thought about the problem and the steps he took to solve it are.
Hats off to you Ken!
Jeffrey Snover [MSFT]
Windows PowerShell/MMC Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
0 comments