How to find expired certificates

Hey folks, in today’s short article I will show you how in easy way check expired certificates. Script which I prepared is very easy and yes I know that it can be done in one-liner. 🙂 However I’ve decided to split it for few phases: Phase 1 – Check actual date Phase 2 – Gather all certificates Phase 3 – Filter only objects which are certificates and NotAfter attribute is …

Generate patch report from WSUS

Hey scripters, today I want to share with you my script for generate patch report from WSUS. On our blog we already show you how to check if specific patch is installed on your machine. But what in case that we want to generate report for servers\workstations which are managed by WSUS? There are many of other tools which can better manage patch management process, however some environments still need …

Create custom Azure AD B2B invitation

Today I want to share with you my script for creating custom Azure AD B2B invitation. What is Azure AD B2B? Azure AD B2B (business-to-business) allows organization which are using Azure Active Directory to cooperate with other organizations in secure way. Companies which are using Azure AD can proivde access to applications, resources etc. to their customers and have full control on security. Script which I prepared allows to send …

Configure PowerShell remoting for Azure VMs

Hey scripters, in todays article I want to show you how to configure PowerShell remoting for Azure VMs. Recently I wanted to run the script which will check installed software on all of my Azure VMs. Unfortunately I received following error from each of the machine. I thought that it is only the problem with firewall configuration on Azure VM, so I configure additional rulles to allow connection on port …

Get Office 365 users licenses

Hey scripters, today I want to show you how in easy way get Office 365 users licenses. Script which I’ve prepared connect to Office 365 tenant and in first step check all licenses. Once it is done all users which have attribute isLicensed flagged as True are gathered. In next steps script is filtering users base on license name and export those information to CSV files. Note: Remember to install …

PowerShell in Azure Cloud Shell now available!

On Ignite conference Microsoft announced public preview of PowerShell in Azure Cloud Shell! It’s really good news for Microsoft Azure Cloud and PowerShell enthusiasts 🙂 Till now only Bash was available in Cloud Shell, now end user can choose what is best for him. Probably some of you may ask “What is the difference between using PowerShell with Azure module on desktop and via Cloud Shell?” Here are some points …

Identify Azure AD provisioning errors

In this article I want to show you how to identify Azure AD provisioning errors during sync. One of the feature of Azure Active Directory is identifying issues caused by conflicts during run one of the synchronization tools. Usually this kind of issues are caused by two attrbiutes UserPrincipalName and ProxyAddress which should be unique for objects like Users or Groups in one Azure AD tenant. Identifying Azure AD provisioning …

Get restricted groups from GPO

Today I want to share you my function which will show you how to get restricted groups from GPO. In big Active Directory environments access to servers and workstations are usually managed by AD groups and group policies. Script which I prepared can help administrators to find which restricted groups have an acccess to servers/workstations in specific OU. How script works? Script is checking for all of the GPOs which …

Get installed software on your machine

Today’s post will show how to get installed software on your machine. In one of my previous articles I show you script for uninstall of application. But what if you want only check when software was installed or how to uninstall it? This article for sure will help you! Function which I prepared is checking registry for all profiles created on machine and get installed software by command Get-ItemProperty, which …

Archive files using PowerShell

In this article I will show you how to archive files using PowerShell. Some of the administrative tasks like archiving old event logs require to use tool which will compress size of the folder. If we want to script those task is highly recommended to archiving files using PowerShell. PowerShell gives us possibility to archive files using .Net class called io.compression.zipfile. Basically script require only this class to be imported, …