6th September 2015 · Luca Sturlese

Sometime back in 2011 when I first started using PowerShell, I developed some standard functions to handle the creating and management of log files for my PowerShell scripts. These functions were stored in a file called Logging_Functions.ps1 and I would simply dot source them into my script to be able to use them.

I posted them on 9to5IT PowerShell: How to easily create log files for your scripts and since then, to my surprise, they have been well received by many people, and hence the post has become quite a popular one. Recently one of the users emailed me and made a suggestion to convert them into a PowerShell Module.

That got me thinking…. so I have made a number of improvements to the PowerShell logging functions and have now made them available as a PowerShell Logging module. Available right here, below….

Read More “PowerShell Logging v2 – Easily create log files”

23rd August 2015 · Luca Sturlese

At some point during your PowerShelling career you will need to test if “something” is found (or not found) within a certain object. I find that I am usually faced with this situation when I am testing if a string “contains” a value or not.

At this point, I am always confused as to which comparison operator to use. From a logical language perspective I always feel like -contains is the way to go, but then I remember that might not be the correct choice.

To put this issue to bed once and for all (at least for myself), here is a summary of when to use -like and when to use -contains.

Read More “PowerShell -Like vs -Contains Comparison Operators”

13th August 2015 · Luca Sturlese

So Windows 10 is a pretty awesome operating system and generally (so far at least) well received by the majority of users. There is one thing that might not be so awesome… by default Windows 10 is stealing your internet bandwidth.

Why? Because Windows Update are now peer-to-peer shared. In other words, the updates you download are automatically “seeded” so that others can download them directly from you, instead of the Microsoft web servers. It works in the same as torrents do; you download and at the same time seed the file for others to download.

You maybe thinking, who cares? But the problem is that it is using your internet bandwidth without you knowing, and therefore slowing your internet speeds. Also, if your uploads are counted towards your download limit (like in Australia) then they are eating away at your download limit as well!!

So how do you stop Windows 10 from stealing your internet? Easy… follow the steps in the article below.

Read More “Stop Windows 10 from stealing your internet”

12th August 2015 · Luca Sturlese

I recently ran into a problem were virtual machines running Windows 8 and Server 2012 don’t ever come back from a reboot, but rather get stuck on the Windows boot splash screen. The only work around to get the machine to boot is to manually power it off and then power it on again.

Good news is, there is a solution to this crazy weirdness; and it is documented below…

Read More “Fix – Windows 8 and Server 2012 virtual machines don’t ever reboot”

5th August 2015 · Luca Sturlese

Recently I needed to find if any virtual machines had been deployed or cloned on a particular day (in order to troubleshoot a storage issue).

The Tasks & Events view in the VI client only shows the last few days of events, so if you need to get events from an older date the only way is through PowerCLI.

Here is how to do get a list of events from vCenter Server using PowerCLI…

Read More “Get vCenter Events using PowerCLI”

28th July 2015 · Luca Sturlese

A while back I wrote an article about all of the different Active Directory FSMO roles available, why they are important and on which Domain Controller they should be place in a Windows forest and/or Windows domain.

However, even if you have placed all FSMO roles on the correct DCs, sometimes it is necessary to move them to another server for one reason or another. This article documents how to move Active Directory FSMO roles from one Domain Controller to another.

Read More “Transferring Active Directory FSMO Roles”

26th March 2015 · Luca Sturlese

In October 2014, Citrix released version 7.6 of both XenApp and Provisioning Services. A few weeks after the release, I created a 8 part step-by-step series on how to install and configure Citrix XenApp 7.6. If you missed it you can see it here >> Citrix XenApp 7.6 Install Guide.

At the time I promised that I would make a similar guide for the installation and configuration of Citrix Provisioning Services 7.6. Well here it is….

Read More “Citrix PVS 7.6 Install – Introduction”