With the sheer amount of different concepts in relation to Microsoft Servers, the Exchange has it’s own Page. Some commands or sections may get split again e.g. Server 2003-2007, 2008-2010, 2012-2016.
Developer OneNote: ❝A Developer OneNote book for Microsoft Windows, Server and Cloud technology❞
● Run Disk Cleanup tool on Windows Server without Installing:
If you are getting a low disk space alert on a Windows Server, the safest way to free some space is to run the Disk Cleanup wizard. However on Windows Server 2008 R2+, by default Disk Cleanup is not installed. Installing it through “Add Windows Features” would trigger a reboot. To avoid this you can simply install it by copying two files cleanmgr.exe and cleanmgr.exe.mui with following commands:
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7dacleanmgr.exe %systemroot%System32 copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63cleanmgr.exe.mui %systemroot%System32en-US
● Install PowerShell and Powershell ISE on Windows Server:
○ Windows Server 2003:
For Windows server 2003, PowerShell V1 was released as KB ( hotfix). Download and install KB926139 – Windows PowerShell 1.0 English-Language Installation Package for Windows Server 2003
If you need PowerShell V2, make sure you have SP2 installed and then install Windows Management Framework from http://support.microsoft.com/kb/968929
○ Windows Server 2008:
For Windows Server 2008 run the following command in an elevated Command Prompt.
servermanagercmd -install PowerShell
○ Windows Server 2008 R2:
Windows Server 2008 R2 has PowerShell V2 built in and enabled by default, however, PowerShell ISE is not. It is installed on Windows 7 client OS, but an Optional Component on Windows Server 2008 R2. To Install PowerShell ISE on R2, run the following command in a Windows PowerShell Modules prompt
Import-Module ServerManager Add-WindowsFeature PowerShell-ISE
◇ In Server Manager, start the Add Roles and Features wizard.
◇ On the Features page, select Windows PowerShell ISE.
○ Windows Server 2012:
Windows Server 2012 has both PowerShell V3 built in and installed. PowerShell ISE needs to be added as it’s an optional Windows PowerShell feature, same as Windows Server 2008 R2.
Also checkout How to run PowerShell scripts to start your first PowerShell script.
● Enable DotNet 3.5 from command line:
To enable DotNet 3.5 from command line, run following from elevated command prompt
dism.exe /online /enable-feature /featurename:NetFx3
● Hyper-V VHD TO VHDX Conversion Step By Step Guide:
Here are the steps to use the built in wizard in the Windows Server 2012 Hyper-V Manager to convert from VHD to VHDX.
◇ Go to the Hyper-V Manager. Under the Actions pane, click on Edit Disk…
◇ Specify the path of the disk you want to convert and click Next.
◇ Choose the action you wish to perform on the disk. In this case, choose the second option to Convert the virtual disk from one type to another and click Next.
◇ Choose the VHDX format and click Next.
◇ In this step of the conversion process, you can choose to also convert disk type, Fixed or Dynamically expanding.
◇ Choose the location for the converted disk and click Next.
◇ Finally, you can confirm the disk format, disk type and location of the newly converted and click Finish to begin the conversion.
You can use PowerShell cmdlet Convert-VHD to convert from VHD to VHDX in Hyper-V Management Tool is installed. This is useful for scripting batch conversion.
VHDX only works on Windows Server 2012 and above. If you want to move the VHD to a Hyper-V host runs Windows Server 2012 R2, you need to convert VHDX to VHD first. Keep in mind if you create a VHDX that is LARGER than 2040 GB you can’t convert it to VHD because the VHD format doesn’t support larger than 2040 GB.
● Turning on and off GUI in Windows Server 2012:
○ Full Server with GUI to Server Core:
Uninstall-WindowsFeature Server-Gui-Mgmt-Infra -Restart
○ Server Core to Full Server with GUI:
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart
● Using Hyper-V in Windows 8:
○ Enabling Client Hyper-V with CMD:
Dism /online /enable-feature /featurename:Microsoft-Hyper-V –All
(Get-Item "HKLM:SOFTWAREMicrosoftVirtual MachineGuestParameters").GetValue("PhysicalHostNameFullyQualified")
Microsoft Hyper-V Server 2012 R2 and Hyper-V Server 2012: April 4, 2016
● Is it Better to Run Hyper-V on Windows Server or as a Standalone Hypervisor: April 2, 2014
|■ ■ ■ TechNig.com||MCSA Lab Manual Articles For Windows Server 2012 R2||Mar 2016|
|■ ■ ■ TechNig.com||How to Convert VHD to VHDX Using Hyper-V and PowerShell?||Mar 2015|
|■ ■ ■|
|■ ■ ■|
|■ ■ ■|