PowerShell for Windows Admins:

Powershell


March 20, 2017  3:10 PM

Updating built in modules

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Windows 10 and Server 2016 automatically install a module called Pester which is used for testing code. Its the foundation of Test Driven Development or Behaviour Driven Development using PowerShell. The version  installed by default is 3.4.0. Pester is originally an open source module that...

March 10, 2017  2:49 PM

Hyper-V book deal

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Books, Hyper-V, Powershell

March 11 2017 - My book Learn Hyper-V in a Month of Lunches is Manning's Deal of the day. Get 50% off using code dotd031117au at http://bit.ly/2niU715 Also see https://www.manning.com/dotd


March 6, 2017  11:53 AM

Windows 10 uptime

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell, Windows 10

One of the things that managers seem to be fascinated with is up time. For Windows server operating systems its a fairly simple calculation PS>  (Get-Date) - (Get-CimInstance -ClassName Win32_OperatingSystem | select -ExpandProperty LastBootUpTime) Days              :...


March 4, 2017  10:31 AM

Full Summit agenda available

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The full agenda – including the PowerShell team sessions – is now available on the event web site - - https://eventloom.com/event/home/summit2017 This is our biggest ever Summit....


March 4, 2017  5:59 AM

Modifying AD users in bulk

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Modifying AD users in bulk involves either setting one or more properties to the same value for a set of users or reading in the values you need from a data source of some kind. We prepared some test data in the last post so lets see how we use it.

$users = Import-Csv -Path...


March 3, 2017  1:52 PM

Test data for bulk AD changes

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

I’ve had a number of questions about changing AD user data in bulk. If you need to do that you need some test data. The specific questions were around setting the Division property and the EmployeeNumber at the same time – but some accounts didn’t have an employee number. First you need...


March 1, 2017  6:05 AM

Get-Content and Numbers

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

A common technique is to put a list of information into a text file and read that using Get-Content. The information is often server names. This works great when the data is strings but breaks down if you’re dealing with numbers. Lets start with a text file containing some...


February 24, 2017  4:25 AM

Wanted

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Wanted one nice kind PowerShell community member to buy the last lonely ticket for the 2017 PowerShell and DevOps Summit. That’s right we have one place left. And its definitely the last. if you want it – better hurry.


February 16, 2017  2:24 PM

Get-ADUser doesn’t display all properties

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Microsoft’s Active Directory cmdlets have some issues. One of the ones that catches everyone when they start using them is that Get-ADUser doesn’t display all properties. A default call to Get-ADUser displays a subset of the available properties of the user object:

DistinguishedName :...


February 11, 2017  8:57 AM

Filtering of Objects and Properties

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Saw a post on the forum today that suggests people are still confused about how to perform filtering of objects and properties in PowerShell. As with so much in PowerShell explanations are always better with examples. Let’s start with the physical disks in a computer:

PS>...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: