Thomas Prud'homme Blog

PowerShell – Extend extended Get-Date with Add Weeks methods

Hi Guys, As I told you couple of weeks ago I am using a custom function to enhanced the Get-Date with information. For my comfort I wished to add a dedicated method to add a week to the selected date. Before having this idear when I wanted to add a...

PowerShell WMI – Querying System Informations

Hi Guys, Here is a small function I wrote to gather the System basic informations. See you,

PowerShell – Extend Get-Date with First and Last Day of the Week

Hi Guys, For script purpose I needed to have the information of the First and Last Day of the Week quickly and easily. I already added the old, but great, solution provided by the Scripting Guy to get the week number out of the Get-ExtendedDate function using: So I took...

PowerShell WMI – Matching Function – OSLanguage codes

Hi guys, When you are querying WMI objects to find Operating System information you while face the OS Language codes. Those interger match with supported installation languages for Operating System. The list of interger and matching value is available on a MSDN Web page. I then write a PowerShell function...

PowerShell WMI – Querying Operating System informations

Hi Guys, Here is a small function I wrote to gather the Operating System basic informations. For the purpose of this function I wrote a matching function to translate the OSLanguage digits to a more convinent string. You can find the matching function here See you,

PowerShell – Mapping function for Office 365 ServicePlans to ServicePlansId

Hi guys, If you are starting to work with the new Office 365 PowerShell module to manage users you might have found a disturbing change in the license affectation process. The DisabledPlans option, it is no more using the ServicePlan name but the ServicePlanId Guid. From an administrator point of...

PowerShell WMI – Matching Function – BIOS Characteristics

Hi Guys, When you are querying WMI objects to find BIOS informations you will face the BIOS Characteristics codes. Those interger match with supported features or enabled features. The list of interger and matching value is available on a MSDN Web page. I then write a PowerShell function to make...

PowerShell WMI – Querying BIOS informations

Hi Guys, I will start a small blog post serie with PowerShell functions I wrote that query WMI of remote computer. Here is the first function: This function will provide you basic information over the BIOS configuration of the computer you want to query. For the purpose of this script...

Exchange Online migration – Unable to update Active Directory information for the source mailbox at the end of the move.

Hi guys, During an Exchange On-Premises migration to Exchange Online you may encounter an error sayig: Error: MigrationMRSPermanentException: Warning: Unable to update Active Directory information for the source mailbox at the end of the move. Error details: An error occurred while updating a user object after the move operation. –>...

Hyper-V Generation 2 VM with Linux Operating System

Hi Guys, Since Hyper-V for Windows Server 2012 R2 we have two generations of Virtual Machines (VM). The main differences between the two generations are: Generation 1 will provide the same virtual hardware to the virtual machine as in previous Hyper-V. Generation 2 will provide new functionalities to virtual machine,...