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 …

Set folder permissions on multiple servers

Set folder permissions on folder remotely using PowerShell function. Sometimes you need to give yourself full control permissions on specific path on all servers in your environment, to do this you can use below function. To display permission on specific folder using PowerShell we can use Get-ACL command. In previous article I explained about how to get permissions remotely – link. In the parameter section you can add more options …

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 …

How to find events about software uninstallation?

Recently we noticed that some software has been uninstalled on our machines. To scan all servers I created simple PowerShell function which checks event in application log. To scan events we can use Get-EventLogcommand and specify event Id – in this case it should be 1034: Script will generate output with the following information: – Server – Date – User – Application – Version – Manufacturer – Source Usage: Output: …

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 Microsoft Monitoring Agent settings remotely

Today I want to show you how to get Microsoft Monitoring Agent settings remotely using PowerShell function. This might be useful when you need to scan all servers in large scale environment to determine that configuration has been set properly. The Microsoft Monitoring Agent The Microsoft Monitoring Agent is a service used to watch and report on application and system health on a Windows computer. The Microsoft Monitoring Agent collects …

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 …

Use PowerShell to generate token bloat report

Today you will find out how to create token bloat report and send it to specified email address. If you are working in large scale environment you may find this useful. There is often a situation when some user is complaining that he is unable to access some corporate applications. After short investigation you can find that one of the reason for that might be large number of group membership. …