Run Powershell script from Scheduled Task

    Powershell is a very powerful automation engine that lets us do a lot of tasks that otherwise would take a long time. Sometimes it is also needed to do a task without admin interaction; maybe it is a recurrent task or a one time job done at a not so…
Read more

Replace DISKPART with the Powershell Storage Module

    Introduction     In the last years, since Windows Server 2012 and Windoes 8, Microsoft implemented a cool Powershell module used to manage storage. This module is called Storage and it’s CmdLets implement most of DISKPART’s features. Common tasks like initializing disks, creating partitions, formatting volumes, resizing partitions, assigning drive letters and…
Read more

Tip: Access Safe Mode in Windows Server 2012 and newer

    Where is the Safe Mode boot menu?     Before Windows 8 and Windows Server 2012 you had the possibility to press F8 repeatedly at startup and a cool menu would pop up. This menu would let you boot Windows in Safe Mode to troubleshoot problems with the system like bad drivers…
Read more

Boot a second OS from VHD

    Introduction     Booting an OS from VHD was introduced in Windows 7/Windows Server 2008 R2 but it became more popular after the launch of the next OS generation. It lets you place a VHD on one of your current partitions and install an operating system on it, behaving like a second…
Read more

Install SQL Server 2014 on Server Core

    In the past years it has been more and more obvious that Microsoft is pushing Server Core as the default server installation option. As such they have improved a lot of things in it over time like management and compatibility. A crucial role for an enterprise server is the database…
Read more

First steps with Nano Server TP5

    In the Technical Preview 5 release of Windows erver 2016 Microsoft offers besides the normal ISO image, a VHD image with a basic installation of Nano Server. This means that if you just want to test this new OS out you can download the VHD, assign it to a VM…
Read more

Windows Server 2016 Technical Preview 5 released

    Yesterday Microsoft released the Technical Preview 5 of Windows Server 2016. They say that this will be the last TP they will release for 2016 and that no extra featues will be present in the final release but they may be improved still.     The flavours of the OS remain the…
Read more

Get and log off users with CMD tools

    During your IT career you most probably had or will have the need to see what users are logged on a server and the need to log off a certain user or more. This task can be done in more ways than one. This post covers 2 command line tools…
Read more

Tip: Powershell loop freezes

    This is a small tip about an issue that does not happen to a lot of people and not too often but it happens and when it does you don’t even know hot to start troubleshooting it. The issue sounds like this: you are running a script or some commands and…
Read more

Get FSMO role holders and Global Catalogs with Powershell

    Introduction     When dealing with Active Directory it is very important to really know your environment. This means knowing your Domain Controllers, your Global Catalogs, which DCs have the FSMO roles, sites, policies and so on. This info is needed especially when you have a problem and want to start debugging…
Read more