Get-LocalLastLogonTime – Get the lastlogin time on a local system
I created a new function that allows you to retrieve to LastLogin time on a local system. The script leverages the WinNT provider in combination with the ADSI type accelerator. The script is available...
View ArticleDisconnect-LoggedOnUser – Disconnect a RDP session remotely
I created a new function that wraps around the rwinsta commandline-tool to remotely disconnect RDP sessions. I created this function to simplify cleaning up open RDP sessions, for example when an...
View ArticleActive Directory Friday: Creating Active Directory groups using PowerShell
Creating a group in Active Directory using PowerShell is relatively simple when using the Active Directory module. To create a Global Distribution Group the following code can be executed: 1...
View ArticleActive Directory Friday: Distribution group membership for AD User
To get a list of distribution groups an Active Directory user account is a member of of we can query Active Directory. For example by combining the Get-ADUser and Get-ADGroup cmdlets. To generate this...
View ArticleNew versions of Connect-Mstsc and Get-OrphanHomeFolder in TechNet Script Gallery
One of the things that keeps me busy is maintaining the library of scripts I have made available in the TechNet Script Library. I get a good number of questions and requests about my scripts there and...
View ArticleNew script Remove-ScheduledTask in TechNet Script Gallery
One of the things that keeps me busy is maintaining the library of scripts I have made available in the TechNet Script Library. Earlier this week I noticed a request for my Get-ScheduledTask script, a...
View ArticleActive Directory Friday: Find groups with no members
Occasionally groups may become obsolete or are never populated with members. It can be interesting to find out how many groups are in your organization that have no members, as action can be taken on...
View ArticleCloud Automation and PowerShell at UK User Groups
After a busy week at the PowerShell Conference Europe last week, blog post about this event is coming up soon! This week will be all about cloud based automation in both the form of Azure Functions as...
View ArticleNew York PowerShell User Group – Microsoft Flow
At the end of May I will be speaking at the New York PowerShell User Group about using Microsoft Flow to automate your personal work at the Microsoft Offices in New York. If you are in the New York...
View ArticleArizona PowerShell User Group – From PowerShell Function to Serverless code...
Yesterday I was asked to speak at the Arizona PowerShell User Group, I picked the subject of moving your code into Azure Functions. Although PowerShell might not seem like the obvious choice, there are...
View Article
More Pages to Explore .....