Tag Archives: Script

Powershell to email Windows users when their AD password is soon to expire

As with most companys, the most frequent support questions are to do with users passwords. We have a lot of remote users that don’t actually login to the system and as passwords are set to expire quite often so they quite frequently find that their password …

Read more »

Windows login script to log user machine activity

This simple batch file can be set to run at user login, through Group Policy. It checks to see if the log file for the user exists and if not it creates it. It then writes a lone with the …

Read more »

Windows Powershell Script to disable inactive AD user accounts

As part of my compliant I need to keep tabs on inactive user account. The comapny is only small right now and so easy to monitor, but as I like automating things, this fantastic script from vNucleus provides an excellent solution. I’ve …

Read more »

Handy Powershell Commands

This page will be updated as and when I come across any handy PowerShell. List alias email addresses: get-mailbox | select -expand emailaddresses alias Recreate OWA directory in IIS: New-OWAVirtualDirectory Return all AD users created in last 30 days $checktime = (get-date).adddays(-30) get-aduser -searchbase …

Read more »

Inserting User Photos into AD and User Tiles with Powershell

I while back I wrote about importing images into AD with vbscript. I’ve recently been looking into doing a similar thing but found its now possible with powershell. On server 2008 its pretty simple, I created a user photo directory and placed …

Read more »

Building and Managing HP Thin Clients with HP Device Manager

The HP thin clients (T5730 XPe3 and t5740e WES7) are pretty robust and combined with HP Device Manager they are pretty easy to look after. As it was, all the TC’s were similar but not quite the same, icons were …

Read more »

Automating MySql Scripts

So I needed to run a mysql script on a daily basis to do some maintenance on a database. Pretty straight forward davessql.sql:

davesbatch.bat

Then a scheduled task to call the batch file, job done.

Converting .wtv to .dvr-ms and Removing Adverts in Windows 7 Media Centre

I recently upgraded from Vista ME to Windows 7 MCE and everything works well, except for Lifextender (which uses Comskip) which only works with the older .drv-ms file format and doesn’t support the newer .wtv format that Windows 7 records in. …

Read more »

PowerShell Script to Monitor Server Date and Time using PRTG Network Monitor

I had an issue this morning when a hosted server was randomly 1 day out. All the date and time settings were correct, but as a lot of the web sites running on this box depend heaivily on system time, …

Read more »