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 …
Tag Archives: Script
Powershell to email Windows users when their AD password is soon to expire
Posted by dave on January 15, 2013
No comments
Windows login script to log user machine activity
Posted by dave on January 15, 2013
No comments
Windows Powershell Script to disable inactive AD user accounts
Posted by dave on January 15, 2013
5 comments
Handy Powershell Commands
Posted by dave on October 19, 2012
No comments
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 …
Inserting User Photos into AD and User Tiles with Powershell
Posted by dave on October 10, 2012
2 comments
Building and Managing HP Thin Clients with HP Device Manager
Posted by dave on October 5, 2012
No comments
Automating MySql Scripts
Posted by dave on August 2, 2012
2 comments
So I needed to run a mysql script on a daily basis to do some maintenance on a database. Pretty straight forward davessql.sql:
|
1 2 |
USE databasename DELETE FROM 'tablename' where timestamp <= DATE_SUB(NOW(), INTERVAL 1 MONTH); |
davesbatch.bat
|
1 |
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" -uUSERNAME -pPASSWORD < "davessql.sql" |
Then a scheduled task to call the batch file, job done.
Converting .wtv to .dvr-ms and Removing Adverts in Windows 7 Media Centre
Posted by dave on June 8, 2012
No comments
PowerShell Script to Monitor Server Date and Time using PRTG Network Monitor
Posted by dave on August 10, 2011
2 comments