Powershell

Configure networking with Powershell

    Since Windows Server 2012 some interesting commands have been added that allow us to configure elements related to networking with Powershell. There are a couple of modules with which we can manage network adapters from the hardware level, set or reset things like IP addresses or DNS servers, receive information in a detailed view and…
Read more

Running Powershell on Linux

    Powershell on Linux? No way…     You read correctly: Powershell on Linux is now a reality. The Powershell team just released a version of their magnificent shell on a limited number (for now) of Linux distributions and also on Mac OS X. And that’s not all: Powershell is also open sourced…
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

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

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

Enable Powershell Remoting with Group Policy

 Powershell Remoting is getting more and more important, at least in the Windows Server space, as seen from Windows Server 2012 and onward. Now the Server Manager is based on PS Remoting so you can manage a big number of servers from only one Server Manager instance. It is also…
Read more

Set Powershell Execution Policy with Group Policy

    In an environment with lots of servers, automation is an important topic. In order to automate, you have to run scripts that do certain tasks. For Windows the preffered scripting language to use is of course Powershell. A challenge you will come across if trying to run scripts on Windows…
Read more

Set Powershell Execution Policy

     About Powershell Execution Policy     The Powershell Execution Policy is a security mechanism implemented in the Powershell engine that lets administrators have a tighter control on how scripts are run in the infrastructure or if they can be run at all.     Controlling this settings actually means that the administrator gets to…
Read more