Archive for the ‘Servers’ Category

Disable UAC Server 2012   Leave a comment

I had to disable UAC for an install. The install kept failing and was very painful because error message during the install was so vague. Normally I do not do disable UAC, but the install would not work any other way.

# Powershell
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -Value 0
# Restart Required

Posted 2013-06-11 by DonnPoSh in Servers

Server 2012 Core Making PoSh Default Console   Leave a comment

I wanted to make PoSh my default Console in a Core Server and what better way to do it than with PowerShell.

# PowerShell
$RegPath = "Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon"
Set-ItemProperty -Path $RegPath -Name Shell -Value 'PowerShell.exe -noExit -Command "$psversiontable'
# Reboot Required

Posted 2013-05-19 by DonnPoSh in PowerShell, Servers

2012 Install PS Web Access   Leave a comment

# Load Module
Import-Module ServerManager

# Install PSWA (PowerShell Web Access) Feature
Add-WindowsFeature -Name WindowsPowerShellWebAccess -IncludeManagementTools

# Import PowerShell Web Access Module
Import-Module PowerShellWebAccess

# Install and Config HTTPS for PSWA Website
Install-PswaWebApplication -UseTestCertificate

# Add Rules for Local Admin Only
Add-PswaAuthorizationRule -ComputerName $env:COMPUTERNAME -ConfigurationName Microsoft.PowerShell -UserName .\Administrator

# Add Rules for Everything and Anybody - if you wanna
Add-PswaAuthorizationRule -ComputerName * -ConfigurationName * -UserName *

Posted 2012-08-12 by DonnPoSh in PowerShell, Servers

My 2012 on a laptop   Leave a comment

I installed Server 2012 on a laptop, well because I wanted to.

Adding Features

# PowerShell
Import-Module ServerManager
Add-WindowsFeature NET-Framework-Core, Server-Media-Foundation, Wireless-Networking

Cisco VPN clientHad problems because every time I launched my VPN Client, it failed to work. Since this posting, I think Cisco has updated their client not to do this, but leaving here because every once in a while I find problems with this client.
Found this: http://anildesai.net/index.php/2012/05/cisco-anyconnect-vpn-client-and-windows-8-compatibility/ where he says “KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA” and “DisplayName” changed to remove string in front. I removed “@oem9.inf,%CVirtA_Desc%;” to just leave “Cisco Systems VPN Adapter for 64-bit Windows”. This worked for me.

Posted 2012-08-11 by DonnPoSh in Donnisms, Servers