Showing posts with label windows server 2012. Show all posts
Showing posts with label windows server 2012. Show all posts

Sunday, March 2, 2014

How to prevent the Server Manager from loading each time with Windows Server 2012/R2

To prevent the Server Manager dialog box from loading each time upon login, click on Manage, Server Manager Properties.

windows_2012r2_server_manager_loading_1

Enable the checkmark to not automatically load the application at login.

windows_2012r2_server_manager_loading_2

Saturday, March 1, 2014

How to customize the Server Manager Tools list within Windows Server 2012/R2

The Server Manager within Windows Server 2010/R2 includes a Tools menu option.

windows_server_2012_customize_server_manager_1

The list of shortcuts can be found at C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\

windows_server_2012_customize_server_manager_2

To add a new entry to the Tools list within Server Manager, add an entry to this location.

windows_server_2012_customize_server_manager_3

windows_server_2012_customize_server_manager_4

Sunday, October 6, 2013

Allow more than one RDP session per account with a Windows Server

To allow a Windows Server to have more than one RDP session per account, access HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and change the value of fSingleSessionPerUser from 1 to 0.  This change does not allow more than the default number of administrative remote sessions.

Saturday, October 5, 2013

PowerShell command to prevent accidental deletion

To enable the feature to prevent accidental deletion for all user objects within Active Directory, use the following PowerShell command.

Get-ADObject -filter {(ObjectClass -eq "user")} |  Set-ADObject -ProtectedFromAccidentalDeletion:$true

The command above should enable the parameter for all user and computer accounts within Active Directory.

Sunday, August 4, 2013

PowerShell network cmdlets with Windows Server 2012

Below are some examples of some PowerShell network-related cmdlets within Windows Server 2012.

2012_powershell_network_adapter_1

2012_powershell_network_adapter_2

2012_powershell_network_adapter_3

2012_powershell_network_adapter_4

2012_powershell_network_adapter_5

2012_powershell_network_adapter_6

Thursday, July 4, 2013

How to disable SMB version 1 within Windows Server 2012

Windows Server 2012 introduced a new version of the Server Message Block (SMB) protocol.  SMB version 3 includes new features such as encryption.  If your environment does not have any Windows XP or earlier clients, an option is available to disable SMB version 1 to improve security.  The PowerShell cmdlet Get-SmbServerConfiguration will offer information on the current status of SMB version 1 and 2.

2012_powershell_smb1_1

To disable SMB version 1, use the PowerShell command of Set-SmbServerConfiguration –EnableSMB1Protocol $false

2012_powershell_smb1_2

Tuesday, January 1, 2013

Windows Server 2012 and removing binaries from the local disk using Features on Demand

By default, the files required for adding roles and features within Windows Server 2012 are stored under C:\Windows\WinSxS.  An option is available via PowerShell to remove certain binary files from this folder.  If a particular file is required again in the future, the operating system will attempt to obtain it via Windows Update.  One advantage is less maintenance; even if a role or feature is not being used, future updates will need to be installed to patch the binary files in question.  It can also help if free disk space on the system partition is an issue.

To remove the binary files from the local disk, use the switch –Remove with the Uninstall-WindowsFeature cmdlet.  The install state column using the Get-WindowsFeature cmdlet should display a value of “removed” if the request was successful.

windows_server_2012_features_ondemand_1

Files should be missing from the WinSxS folder if compared between a before and after snapshot.

windows_server_2012_features_ondemand_2

Monday, October 1, 2012

How to change the product key for Windows 8 and Server 2012

To change the product key for Windows 8 and Server 2012, launch an elevated command prompt and use the following command:

slmgr.vbs /ipk license key

slmgr_vbs

Wednesday, July 11, 2012

How to enable or disable the GUI interface with Windows Server 2012

One disadvantage of Server Core with versions prior to Windows Server 2012 was an option was not available to switch back and forth; once a server was configured to use Server Core, it had to be re-installed to restore the GUI.  Windows Server 2012 introduces the option to enable or disable the GUI with a reboot.  A few different methods are available, but below are the PowerShell commands to accomplish the task.

Either line below will remove the GUI from a non-Core installation of Windows Server 2012.  A reboot will be required.

Remove-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

Uninstall-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

powershell_2012_gui_1

powershell_2012_gui_2

Either line below will restore the GUI with a Core configuration.  A reboot again will be required.

Add-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

powershell_2012_gui_3

powershell_2012_gui_4

Sunday, June 10, 2012

Resolve-DNSname PowerShell cmdlet

PowerShell version 3 that is included by default with Windows 8 and Windows Server 2012 offers a new DNS lookup cmdlet.  The Resolve-DNSname can resolve DNS information, and offers options such as DNS record type and which server to use for the query.

resolve_dnsname_1

resolve_dnsname_2