Archive for the ‘Windows Server’ Category

Can’t import Windows 10 Pro WIM into MDT 2013 Update 2

January 9, 2017 Leave a comment

Here are the steps:

  • Download Microsoft Media Creation Tool.
  • Start the tool and select the option to create ISO files to install on another computer.
  • Once all is downloaded and the Tool allows you to press finish – DON’T
  • Check C:\ESD folder for files (as it should contain installx86.esd and installx64.esd)
  • Copy ESD folder to C:\TEMP
  • Convert the esd files to wim using the following command: dism /export-image /sourceimagefile:C:\$Windows.~WS\Sources\installx64.esd /SourceIndex:4
    /destinationimagefile:C:\install.wim /destinationname:"Windows 10 Pro x64" /compress:max /checkintegrity
  • Import the new WIM files to MDT 2013 Update 2



Zabbix Action to Start a Windows Service

March 21, 2016 Leave a comment

Using zabbix to restrart a service, when it unexpectedly stopped running

  1. Create a template for the custom service.
  2. Use the trigger to monitor the service and report the problem
  3. In the Zabbix Agent config allow remote commands
  4. Create an action to start the service

Create an action to start the service:

  • Click on Configuration > Actions > click Create action (top right corner) > Enter Action name and leave rest as default
  • Click on Conditions tab > Leave condition label (A) > remove any other conditions 
  • Conditions tab > add a new Trigger condition (Like so: Trigger = select the trigger created for the service (by clicking select)) > click Add to add the new condition
  • Click on Operations tab > Change Operation type to “Remote command” > Enter new Target as current host > Type equals ‘Custom script’ > Execute equals ‘Zabbix agent’ >  enter Command “sc \\{HOST.NAME} start ServiceName” > click Add to add the new reactive action and save the configuration
    To test this, turn of the service and wait for a few seconds to see if it has been started.


Windows Time config for Active Directory

March 20, 2016 Leave a comment

Small list of quick windows time service commands

  • w32tm /query /peers
  • net stop w32time
  • net start w32time
  • w32tm /config /manualpeerlist:",0x1,0x1,0x1,0x1" /syncfromflags:manual /update /reliable:yes

Here’s a full article how Windows Time Service works – Link

Windows Server 64-bit recommended page file size

March 19, 2016 Leave a comment

I picked this up a while back when I was doing research for my RDS cluster.

Recommended page file sizes:

  • Windows Server 2008 R2:
    Minimum page file size: 1x RAM
    Maximum page file size: 3 x RAM or 4 GB, whichever is larger
  • Windows Server 2012 and R2:
    Minimum page file size: Depends on crash dump setting*
    Maximum page file size: 3 x RAM or 4 GB, whichever is larger

    More Info: Technet

I found this from a forum on the internet:

For WS 2008/R2, C drive 66 GB irrespective of OS version and platform. C drive should have 6GB page file.

Aforementioned are basic requirements.

As best practice, you need to set page file 1.5 Times the RAM available on any Windows Servers.

For instance,

Say, you have 16 GB RAM on a server, 1.5 times the RAM 16 GB = 24 GB;  you need to set 24 GB Page file on the Server.

Now, how would you ditribute the page file ?

Here is the way, You need create a separate Drive and split the Page file (other than the preset page file on C drive)

For WS 2008/2, C drive already has 6 GB, now on a newly created drive set 18 GB page file (i.e. 24 -6=18 GB), make sure you have at least 23 – 25 GB Drive to accomodate 18GB page file.

I use the above settings on my RDS servers.


NTP Event ID 142 with a possible fix for Win2008R2 DC

March 12, 2016 Leave a comment

Please make sure that port 123 (UDP) is open between the DC (with a problem) and PDCEmulator.

Then run the following commands on the DC (with the issue):

  • net stop w32time
  • w32tm /unregister
  • w32tm /register
  • net start w32time
  • w32tm /config /syncfromflags:domhier /update

Now run again these commands:

  • net stop w32time
  • net start w32time

Wait and then check the event viewer again.

Here is the AD and AD Domain Services Port Requirements list – LINK

My thanks to Meinolf Weber from Technet forums.


Netsh Commands for Interface & Route Commands

March 11, 2016 Leave a comment

Netsh Commands:

netsh interface ip show config
netsh interface ip set address name=”Local Area Connection” static 1
netsh interface ip set dns name=”Local Area Connection” static
netsh interface ip add dns name=”Local Area Connection”

Routes & Persistent Routes commands:

Network Address Netmask Gateway Address Metric  2

Example commands:

  • route print
  • route delete
  • route add mask metric 2
  • route -p add mask metric 2


Notes on migrating server roles with Windows Server Migration Tool

March 3, 2016 Leave a comment

Here are some notes I made when I was studying form my MCSA 2012 upgrade exam.

To migrate roles from Windows Server 2008 R2 (Win2008R2)  to Windows Server 2012  (Win2012) take the following steps:

  • Run PowerShell as Administrator and Install WSMT on the Win2012 server with the following command:

    Install-WindowsFeature Migration
  • Create deployment folders on Win2012 . Run the following command in Command Prompt as admin

    SmigDeploy.exe /package /architecture amd64 /os WS08R2 /path <deployment folder path>
  • Copy the deployment folders from Win2012 server to the Win2008R2 server.
  • Register WSMT on Win2008R2 server. Run the following command in Command Prompt (as admin) in the copied directory on Win2008R2 server:

  • Load WSMT into your PowerShell session. 

    Add-PSSnapin Microsoft.Windows.ServerManager.Migration

  • Find out What features you can export from the Win2008R2 Server by using the following command. Run it in PowerShell as Administrator.

  • Next step would be to use cmdlets such as Export-SmigServerSettings, Import-SmigServerSettings, Send-SmigServerData, and Receive-SmigServerData to migrate data and settings to Win2012 server

MORE INFO available at TechNet