Here is the new link: https://lazywinadmin.github.io/
You can subscribe to my RSS feed here: http://feeds.feedburner.com/lazywinadmin
See you there ! 😉

# First, get a list of mac address. 1..150 | ForEach-Object { '{0:X12}' -f $_ } # Second step: Before we import we need to add a colon ":" every two characters 1..150|%{((('{0:X12}' -f $_) -split '(..)')|?{$_}) -join ":"}
1..150
If you play often with PowerShell you might have encountered something called "Composite Formatting". What is that ? Here is a quick example"Welcome to {0}" -f "LazyWinAdmin.com"
########################## # Numeric Format Strings # ########################## # The Decimal ("D") Format Specifier "{0:D}" -f 50999994 #50999994 "{0:D10}" -f 50999994 #0050999994 "{0:D6}" -f -1234 #-001234


![]() |
| PowerShell Core on Linux |
![]() |
| PowerShell Core on MAC OS X |
# Create Column object $NewColumn = New-Object -TypeName System.Windows.Forms.DataGridViewTextBoxColumn $NewColumn.Name = "Column1" $NewColumn.HeaderText = "Column1" # Add the Column to the Datagridview $DataGridView.Columns.Add($NewColumn)
When you need to join a machine to the Active Directory It is a pretty straight forward task using either the User Interface or the PowerShell cmdlet available for that usage.
In my previous post I got started with Pester and wrote my first test against the Comment Based Help of my module AdsiPS.![]() |
During the Microsoft MVP Summit 2014 week (Bellevue, WA, USA)
Evening event organized by Dave Wyatt on Pester.
|
function Get-This { [CmdletBinding()] [Alias("Get-That")] PARAM ( $Param1 ) Write-Output "Param1 = $param1" } Get-That -Param1 "Hello World"
During an onboarding process, I had to create some accounts on a remote site where the Exchange Role is installed. There, the account can be mail-enabled. We do this because the information will get replicated to Office365 faster and we will be able to proceed with other automated tasks.
In the following post I demonstrate how you can retrieve all the rejected Review Activities from the last 60 days. I also include the DisplayName, the Decision and the Comment of the Reviewer.
I wanted to expend a bit on the previous post which retrieved all the Manual Activities completed in the last month.
I got an interested question from a reader that asked how he could get all the Manual Activities completed in the last 30 days using one Filter.
Microsoft just re-released the new version of Windows Management Framework (WMF) 5.0 RTM for Windows Server 2012 R2, Windows Server 2012, Windows 2008 R2 SP1, Windows 8.1, and Windows 7 SP1.![]() |
| PowerShell 5.0 |
