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: Scripts
[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.
Backing up VMs in Hyper-V
I found this really cool open source software that I’m currently implementing for a customer remotely. It’s called HVBackup and is of the time of writing in Beta v1. http://hypervbackup.codeplex.com/ Description from their website: The main goal of this project is to provide a very easy and powerful free tool to backup and restore Hyper-V…
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…
Unrar finished torrents (uTorrent) and delete archives (rar)
I couldn’t find any unpacker that would extract and delete archives for a torrent after a certain period of time or after a certain seed ratio had been reached. I’ve noticed quite alot of people complain about this on, for example, uTorrent’s official forums. So I wrote this script that will wait for a set…
Move files in folders and subfolders older than one year
A colleague asked me if I could write a script that would move files within a folder or its subfolders that were older than one year into a new location but still keep the directory structure. I figured it would be quite a challenge so I decided to do it for him; kind as I…
THE ultimate loginscript
I was given the task to rewrite the login script for a company, they had 4 sites and about 20 login scripts for various purposes. So I wrote a general one which took care of all the general stuff. You may look at my earlier post about an inventory script, because this script will use…
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…