Tag Archives: Powershell

Powershell script to start all Automatic Services

Does what it says on the tin really, found here.

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 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 »

Exporting Mailboxes to PST’s using Powershell in Exchange 2010

As part of a user leaving, I decided on protocol to backup their mailbox to a PST before deleting their mailbox from Exchange, just incase. This can be achieved very easily with a bit of powershell.

The full instructions …

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 »

Forcing Active Directory Photos with Lync 2010

With Lync 2010 setup (all be it very basic right now) it was time to take control. I started exploring what was possible via various policys for the clients. One of the features allows users to choose their own profile …

Read more »

Hyper-V Server 2008 R2 Scripts and Tips

Here’s a small selection of commands I found useful when setting up a Hyper-V Server 2008 R2 box. Firstly, I’m using a HP DL380 G5 as my main Hyper-V box. To enable the Hypervisor, enter the bios by pressing F9 …

Read more »