A customer was asking for a way to extract data for when their Microsoft Teams-groups were about to expire, and wanted to be able to create this report themselfs.
Category: PowerShell
[Powershell Script] Convert ImmutableID
I found a need to convert ImmutableID (An Azure AD/Office 365 attribute) back and forth to the corresponding Hexadecimal, GUID- and DN value in order to match the value to an on-premise Active Directory users.
Script to Schedule Mem and or vCPU up/downgrade
I recently wrote this script to schedule Memory and vCPU up/downgrades on virtual machines from a VMware PowerCLI enabled vCenter server running Windows.
Log Rotation Cleaner and Archiver Script (LRCAS)
At work I was tasked with writing a script that would clean up and archive logs from an application that didn’t have any decent log rotation built-in. The application would however rotate the logs when the application’s service was restarted and then rename the old log with an incremental number suffix. So we added a…
RoboCopy PowerShell Script
I wrote a script that utilizes RoboCopy to mirror directories. It can easily be changed to do file level backups by changing some configurable parameters within the script. Read RoboCopys documentation to understand the use of switches. Whats interesting about this script is that it writes events/logs to EventLog if executed with administrative privileges, otherwise…
Backup VMs in a Hyper-V Cluster (Core-version)
As far as I know, after some googling I couldn’t find any program that could take backups of Virtual Machines running on Hyper-V Core when the .VHD files were located on a Cluster Shared Storage. If you read my previous post you can probably understand you aren’t able to install any advanced programs in the…