Trigger and Verify Full Active Directory Replication with PowerShell

In distributed Active Directory environments, it can be useful to manually trigger replication after changes to Group Policies, user objects, or DNS records. This PowerShell script automates that process across all domain controllers and then checks the replication status afterwards. repadmin /syncall is the underlying command used to synchronize domain controllers, and Get-ADReplicationPartnerMetadata is used to read replication partner … Weiterlesen

Reissue Certificates and Generating CSRs for an Internal Microsoft CA via Powershell

In many environments, operational certificates for web servers and services are still requested manually via MMC or the web enrollment pages. This PowerShell script automates that process by generating a certificate signing request (CSR), submitting it directly to a Microsoft Enterprise CA, and optionally exporting the issued certificate as a PFX file. The script supports … Weiterlesen

Automated AD Group Policy Backup and HTML Reporting

This PowerShell script helps administrators automatically back up Active Directory Group Policy Objects (GPOs) and generate HTML reports of the current settings. It is designed as part of an IT‑security audit and change‑tracking workflow, especially for environments where Group Policy changes must be logged and recoverable. The script runs once per day as a scheduled task and performs four … Weiterlesen

How I Confirmed the S/MIME Certificate Chain in Exchange Online

When troubleshooting S/MIME in Exchange Online with Microsoft support, one of the key questions was: Is our internal CA certificate chain really stored correctly in the tenant? Exchange Online does not only rely on public online CAs; it maintains its own virtual certificate collection for S/MIME trust, which Outlook Mobile then uses to validate user certificates. To … Weiterlesen

VMware ESXi Host Configuration Backup Script with PowerCLI

Keeping a copy of ESXi host configurations is a practical safeguard before maintenance, upgrades, or hardware changes. A PowerShell script based on VMware PowerCLI can automate this task by connecting to each host, exporting the firmware configuration, and storing the backup in a structured folder layout. The script described here is self-contained. All settings are … Weiterlesen

Search Mailbox: Find/remove malicious emails from mailboxes

During a spam wave, it may be necessary to delete certain emails directly from users‘ mailboxes. This requires coordination with the Data Protection Officer (DPO) because it involves direct intervention in the mailboxes. This commands must be used with extreme caution, as incorrect parameters can empty entire mailboxes! The cmdlet Search-Mailbox is used here, which … Weiterlesen

VirtualBox: Set DmiSystemVendor Installation for ROK Windows Server

I wanted to migrate a physical server, including its application, to a virtual server and reinstall everything from scratch (not a P2V migration). For this, I had to use the manufacturer’s original installation media because it involved ROK licenses. During the installation in a VM under VirtualBox, we received a message stating that the installation … Weiterlesen

Windows cannot find Microsoft Software License Terms error at Installation in VMWare

When installing a Windows operating system under VMware or VMware Workstation, the following error occurs: Windows cannot find the Microsoft Software License Terms. Make sure the installation source are valid and restart the installation Solution: The solution is as simple. Windows seems to be having a problem with the floppy drive.Remove the floppy drive from … Weiterlesen

Check content of ZIP file with VBS

Sometimes it is useful to verify the contents of a ZIP file before processing it further. One common check is to determine how many files are stored inside the archive. This can help identify whether the ZIP file is empty or possibly corrupted. A simple VBScript can do this by using the Windows Shell namespace … Weiterlesen

Blinking keyboard LED via VBS to get attention

When a script is waiting for input, a standard message box is sometimes too easy to miss. A simple workaround is to combine an on-screen pop-up with a blinking keyboard LED, so the user gets both a visible desktop notification and a hardware-based signal. In this example, VBScript uses WScript.Shell to toggle the Scroll Lock key and display a … Weiterlesen