Calculate MD5 and base64 hash of a text string

I was trying to convert some text to MD5 or base64 encoding. Here are a couple of powershell functions that can help with that task Function to convert to Base64 [sourcecode] # Function to Convert to Account name to Base64 function ConvertTo-Base64($string) { $bytes = [System.Text.Encoding]::UTF8.GetBytes($string); $encoded = [System.Convert]::ToBase64String($bytes); return …

Read more

How to enable PowerShell Web Access

Windows 2012 include a very nice feature called PowerShell Web Access. This feature allows you to access a powershell session via a web browser. Steps to enable and configure PowerShell Web Access Open PowerShell Session Install the PowerShell Web Access Feature Install-WindowsFeature -Name WindowsPowerShellWebAccess -IncludeManagementTools -Restart After server reboot, configure …

Read more

Get a list of the Windows Server 2012 Firewall Rules

Here is a quick way to get a report for the Windows Firewall rules in Windows Server 2012. Enabled Firewall Rules Get-NetFirewallRule | Where-Object {$_.Action -eq “Allow”} | Format-Table -Property DisplayName Disabled Firewall Rules Get-NetFirewallRule | Where-Object {$_.Enabled -eq “False”} | Format-Table -Property Displayname

How to create a new AD Forest with Windows 2012 Server Core

Here is a quick guide on how to build a new forest (domain controller) with Windows 2012 Server Core. 1. Login to your Windows 2012 Server Core. 2. Configure Server Name and Assign Static IP Address with Sconfig.cmd 3. Add Active Directory Server Role Open a PowerShell Window Import-Module ServerManager …

Read more