Automatically Delete Old Log Files with a Powershell Script

I use a scheduled task to run a script very similar to this one every midnight to clean up log files on one of my servers. It deletes any files in c:\logs that are more than 30 days old and any files in c:\special\logs that are more than 7 days old. Just change the paths and retention times to suite your requirements. # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Filename : Clean_AlpLogs.ps1 # Purpose : Deletes all files under C:\Logs and # : C:\Special\Logs […]

Read More Here! 0

Troubleshooting a Recurring Account Lockout

If you haven’t had to deal with a mysterious, recurring account lockout, then you haven’t been on the job very long. Almost all Active Directory installations include a Group Policy Object specifying basic account security options such as password length and account lockout thresholds. These settings are essential for adequate data security, but they can become a real pain when a user keeps getting locked out and you can’t figure out why. There are three basic tools I use to […]

Read More Here! 2

Running Exchange 2010 PowerShell Scripts Using Task Scheduler

I have a number of complex PowerShell scripts for performing employee onboarding/offboarding, mailbox export request cleanup, and other tasks. Scripts that use the standard cmdlet set, the Active Directory module, or Quest Activeroles AD Management snapin worked fine, but Exchange 2010 and Lync 2010 cmdlets didn’t despite loading the Exchange Management and Lync snapins. Those cmdlets didn’t seem to do anything at all and the scheduled task sometimes wouldn’t end even if I included an ‘exit’ at the end. There […]

Read More Here! 0

Keep Flash Player Up to Date for Better Security

Adobe Flash Player is a bear trap on your computer, just waiting for you to stumble onto the wrong website to spring and install malware onto your computer. Recently a group of thieves bought advertising on Yahoo’s network under false pretenses and used code embedded in their ads to take advantage of unpatched Flash Player software on the computers of people who were doing nothing more than reading the news or checking their email. Unfortunately, Flash is used heavily on […]

Read More Here! 0

Twitter