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.
Tag: script
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…
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…
Inventory script for use with login scripts
I was recently asked to inventory approx 200 client computers of what programs they had installed, the specifications (cpu/ram/hdd) etc. So I was being lazy as most IT-techs are and wrote a script that I later on implemented into their usual login script. It creates a simple .txt-file on a pre-mapped network drive and appends…
Simplified robocopy backup script
So I work with many servers and many customers. Usually I had to write a new backup script for every new customer and server. Therefore I figured I might as well just write a template that I can copy/paste everytime I have to implement a robocopy backup script. So here goes. Share on Facebook
Connect/map Printers Login Script
I’ve already mentioned I work with many customers and servers. Everytime I install a new server that hosts printers I have to handwrite a loginscript that connects/maps the printers on the clients. So I made a template for that as well. There is only a few variables needed to change for it to rock. Check…