Remotely Enable Remote Desktop via Powershell

I've been working on project recently for a customer and needed to remotely enable remote desktop on several servers but they were located in a dark datacentre and there was no console access available.  I know you can always enable this by editing the registry but this requires a server reboot which was not an option for me.  So I decided to have a look at Powershell and found that the following commands enabled remote desktop without the need for a reboot. (Get-WmiObject Win32_TerminalServiceSetting -Computername ServerNameHere -Namespace root\cimv2\TerminalServices).SetAllowTsConnections(1,1) | Out-Null (Get-WmiObject -Class “Win32_TSGeneralSetting” -Computername ServerNameHere -Namespace root\cimv2\TerminalServices -Filter “TerminalName=’RDP-tcp'”).SetUserAuthenticationRequired(0) | Out-Null
Read More

PowerShell Plus editor is now free!

I have been using PowerShell Plus for some time now for writing and debugging all of my PowerShell and PowerCLI scripts.  As from version 4.6 the PowerShell Plus editor is now free. You can download the app from Idera using the following link. https://www.idera.com/Free-Tools/PowerShell-Plus/ Idera also provide PowerShell Scripts which contains scripts for SQL, SharePoint and many more https://www.idera.com/Free-Tools/PowerShell-scripts/
Read More