About Me

My photo
Bergen, Norway
19th times Microsoft MVP (Security and Windows). IT-Dude @SpareBankenNorge

Saturday, September 26, 2020

PowerShell script to get some AzureAD logins stats

 The information you get in the Azure portal about logins are decent, but some time you need some statistic or insight fast and don't want to use the graphic interface or down load csv/json files.

I have created som script and favourite lines and uploaded it to my Github repo

Monday, July 20, 2020

Unused Azure AD Connect accounts "On-Premises Directory Synchronization Service Account"

Playing with #Azure Privileged Identity Management‎ made me aware of two active accounts from old or failed AAD connector installations from way back.
And we don't want to leave something with that potential for misusage laying available in our AAD. 

Thursday, July 9, 2020

Requesting access with Azure AD Privileged Identity Management from PowerShell

Using Azure AD Privileged Identity Management (PIM for short) as a method to control access to Azure resource are nice security feature. It makes it more trackable and gives the granted roles for a defined time period. 

You can add approval as a necessary add-on security feature, use MFA or other adjustments. Read more about PIM here.

BUT! it can also feel like a pain in the... if you use it a lot. So I created a small and simple PowerShell script to request the access for me.

Tuesday, April 21, 2020

Finding empty resource groups in Azure

Not easy to have control over your Azure resource groups, but maybe find all those whiteout any content could help?
I have created a PowerShell script helping me in my environment. Should be easy to adjust it to different needs.

Got valuable help from VidarW

Friday, April 17, 2020

Cheat for PowerShell connecting to remote machine

Yes I know, it's quite easy to connect against a remote machine to run PowerShell. But I am not doing it on a regular basis so I always forget:

Enter-PSSession -ComputerName COMPUTER -Credential USER

Creating Azure Resource Groups with PowerShell

I am working in a intense DevOps environment so I am creating new Resource Groups in Azure quite often. Doing this the manual way are of course are quite boring and might open up for different types of mistakes. 


So way not make sure that the mistakes are consistent and do it with a script?

Fix Windows Sandbox network issues by setting a custom DNS server

Windows Sandbox is one of the easiest ways to test files, scripts, applications, and troubleshooting steps in a clean, temporary Windows env...