Domain Controller Traffic Troubles? Here’s a Script to Save Your Sanity
|

Domain Controller Traffic Troubles? Here’s a Script to Save Your Sanity

Let’s be honest — we’ve all been there. One day, things are working fine. AD replication is happy, secure channels are intact, logons are snappy. The next? You’re staring at replication failures, secure channel trust issues, and those vague “RPC server is unavailable” errors that make you want to flip a table. So, I built…

Enabling Defender for Cloud at the Resource Level with PowerShell
| | | |

Enabling Defender for Cloud at the Resource Level with PowerShell

Enabling Defender for Cloud at the Resource Level with PowerShell Efficiently managing Azure resources can be challenging, especially in large environments. To help with this, I’ve developed a PowerShell script designed to automate the process of managing Defender for Cloud pricing configurations across various Azure resources, including Virtual Machines (VMs), Virtual Machine Scale Sets (VMSS),…

Effortlessly Retrieve Your Microsoft Tenant ID with PowerShell and Microsoft Graph
| | | | | |

Effortlessly Retrieve Your Microsoft Tenant ID with PowerShell and Microsoft Graph

Effortlessly Retrieve Your Microsoft Tenant ID with PowerShell and Microsoft Graph In the dynamic world of IT and cloud services, the Microsoft Tenant ID plays a pivotal role, especially for administrators and developers working with Microsoft 365 and Azure services. It acts as a unique identifier for your organization’s tenant in Microsoft’s cloud platform, essential…

Securing Azure Active Directory from PowerShell abuse
| | |

Securing Azure Active Directory from PowerShell abuse

Securing Azure Active Directory from PowerShell abuse Malware attacks are evolving and once common tactics are becoming a thing of the past. Attack strategies, like using a third-party hacking program or injecting viruses from external sources, are almost obsolete as they leave a distinct footprint. Most antimalware tools can now detect the presence of a…

Bulk Enable Exchange Online Archiving
| | |

Bulk Enable Exchange Online Archiving

Bulk Enable Exchange Online Archiving This below script simply just enables the Online Archiving Mailbox for users in Exchange Online. The script needs to be run from the On-prem Exchange environment. $list = Import-Csv “C:\Scripts\EnableArchive\enablearchive.csv” foreach($entry in $list) { $User = $entry.User Get-RemoteMailbox -id $User |Enable-RemoteMailbox -Archive } Csv Sample. Simply has the users Alias…

PowerShell – Execution of Scripts is Disabled on this System
| | |

PowerShell – Execution of Scripts is Disabled on this System

Execution of Scripts is Disabled on this System When you try and run a #PowerShell Script and you are faced with the Error “Execution of Scripts is Disabled” The quick work around for this is to change the current Execution Policy using the following. Lets Change the Execution Policy by running a #OneLiner Set-ExecutionPolicy Unrestricted…