Category Archives: PowerShell

Using PowerShell as default option in Windows 10 menu

By default in Windows 10 (well, on previous versions as well) when we either use right-click on the lower-left corner or Windows + X , we will have a menu…

Automating the process to join a server to a domain using PowerShell

In this Tutorial we are going to optimize a simple task that in larger environments may take some time from the service desk/operations team which is the process to join…

Hyper-V 2012 Hotfixes: Where I can find it and how to automate the deployment ?

After my session at TechEd about Best Practices for Virtualizing and Managing Microsoft SharePoint 2013 with Microsoft System Center 2012 R2 and Windows Server 2012 R2 one of the questions…

Using PowerShell to remove files older than X days

In this Tutorial we are going to use PowerShell to remove files based on their last time written. Solution The first step is to find a folder where we have…

Using PowerShell to update a local folder from a central location

In this Tutorial we will use PowerShell to update a local folder from a central repository using versioning control. You may be wondering what is the benefits, well it all…

Managing Hyper-V Server remotely through PowerShell

Working with PowerShell can be very common for daily tasks and Hyper-V Server management. However, as there is more than one server to be managed, sometimes it can be difficult…

How to disconnect media on all VMs in SCVMM 2008 R2 using PowerShell

Hello folks, Today I had a requirement to disable configure all VMs of a SCVMM 2008 R2 to  No Media and I could’ve gone to each one of the VMs,…

Quick hint: How to disable IPv6 using PowerShell

How to disable IPv6 using PowerShell? An easy way is running the following cmdlet:New-ItemProperty hklm:SYSTEMCurrentControlSetServicesTCPIP6Parameters –Name “DisabledComponents” –Value “0xFFFFFFFF” –PropertyType “DWORD”  

Removing the first line (#TYPE) when using Export-csv cmdlet

Hello my friends, If you export data from Exchange you may have already noticed that after exporting data you will have a first line which by default starts with #TYPE…

Quick hint: Listing all users from a specific OU using PowerShell

I was asked Today how to create a list of all users from a specific OU with their Display Names and their logon names using PowerShell? There are several ways…