What's New Here?

#PSTip Use Shell.Application to determine which folder is open in File Explorer

#PSTip Use Shell.Application to determine which folder is open in File Explorer

By using the Windows() method and the LocationURL and LocationName properties we can programmatically determine which folder is open in File Explorer. The Where-Object statement is required to filter out… Read more »

#PSTip Get last login date for local account

#PSTip Get last login date for local account

Using the ADSI type accelerator in combination with WinNT provider we can retrieve the last logon time for a local account from the local SAM account database: I created a… Read more »

#PSTip Access remote registry using PowerShell

#PSTip Access remote registry using PowerShell

Using the Microsoft.Win32.Registry class it is possible to access both–the local registry and, more importantly, the registry of a remote system. Using the PowerShell cmdlet this is unfortunately not possible…. Read more »

Pester: Triangulation and reusing test cases

Pester: Triangulation and reusing test cases

Pester has a great feature called TestCases. This feature enables you to easily call the same test code multiple times, but with different data. This comes handy in two cases–triangulation… Read more »

Coding defensively against enums

Coding defensively against enums

Today I will show how to defensively script against enums and how to test invalid enum values. What is an enum? An enum is a list of identifiers that map… Read more »

#PSTip Validate if an Active Directory Organizational Unit exists or not

#PSTip Validate if an Active Directory Organizational Unit exists or not

For some recent scripting work, I needed to find if an AD OU existed or not from a computer that is not domain-joined. I knew that the System.DirectoryServices.DirectoryEntry class can… Read more »

PowerShell DSC for Linux released!

PowerShell DSC for Linux released!

The day that people who love both PowerShell DSC and xplat solutions where looking for had finally arrived. Last week the first version of PowerShell DSC for Linux was released…. Read more »

Introducing DNS Policies in Windows Server 2016 Technical Preview 2

Introducing DNS Policies in Windows Server 2016 Technical Preview 2

In this article, we will have a look at DNS Policies – a new feature in the DNS Server role introduced in Windows Server 2016 Technical Preview 2 (TP2): You… Read more »

#PowerShell Tweets

© 2015 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.