Migrating scheduled tasks from 2008 to 2012+

Today I was busy with a customer who needed to migrate some Scheduled Tasks from his Windows Server 2008 to his new Windows Server 2012 R2 machine.

Slight issue, there were 139!! Scheduled Tasks [generating reports and sending them to various sources]. There’s no way I was going to do this manually, so let’s start up my favourite tool for the job: PowerShell!

I immediately ran into the first issue: There are no PowerShell cmdlets for Windows 2008 concerning Scheduled Tasks, so you’re limited to the built in command SchTasks, however this can be a troublesome parsing etc. .

Script Dumpster: Clean-RedirectedRecycleBin

The problem

Redirected Folders on RDS Session hosts tend to cause a specific issue:

Each user’s set of Redirected Folders creates their own Recycle Bin entry, which can grow quite a bit. The following function can display a list of files contained within the Recycle Bins older than the provided age.

Even better, the script has a switch parameter Remove which does exactly what you think it does 🙂

Through a scheduled task you can run this script on a regular basis when required.

Script Dumpster: Find services running under non-standard accounts

The Problem

Looking for services which are running under NON-standard accounts? Just use this script to display these services.

Very handy in case you need to change passwords for service accounts or want to see what services might be improperly configured [e.g. running under Administrator credentials, or worse, Domain Administrator credentials]

The Script

Its been a while...

Hey guys and girls,

Unfortunately I haven’t really had much time to blog due to some busy times [work, work, work, family, friends, work], but I’ll try and update more regularly with the content I use at my daily tasks.

This might mean that I will also end up posting some non-PowerShell related posts in case I think they’re interesting enough for other people. Judging by personal experience the last few weeks, I will also try and post some “checklists” which I found out for recent cases at work, simply by combining multiple articles and/or Best Practice guides.

Experts Live 2015 - tickets tickets tickets!

Step right up, step right up….

A quick post on behalf of my colleague, 365Dude, who’s presenting a session at this year’s Experts Live 2015.

He still has 3 tickets available in case someone is interested in going to this year’s convention, November 19th. Be sure to drop him an e-mail if you’re interested in going!

And even if you’re not interested in an Office 365 session, have a look at the program to see what might else be of your interest!

Script Dumpster: Find default AD containers for Users and Computers

The Problem

Have you ever created a new user or computer object, but you’re unable to find them in the Default Computers/Users container? Perhaps someone moved the default location to another Organizational Unit [i.e. to make sure GPO’s applied correctly] .

In this case a quick and simple script will check which containers are configured for this task and it will check if they’re using default values or not.

The Script