Archive

Posts Tagged ‘WMI’

Cleaning up remote directories with PowerShell

May 24th, 2010 1 comment

Part of our application at work sends email notifications to various uses when certain criteria are met. This is great, except testing is difficult as you really don’t want to send out mails to valid customers, so we disable relaying outbound, and the local mail server just chomps on it a bit, then decides to not deliver it and drops it to the local file system. This is great, except in a the matter of days, we have 100k message files. This becomes entirely unmanageable with Windows, so PowerShell is here to help…

Read more…

Scripting Dial-In removal

June 25th, 2008 No comments

For an upcoming project, we started moving an external vendor off of a Microsoft PPTP VPN tunnel (per user client), to a fixed VPN tunnel using IPSEC, and handled at the gateway. During this migration, it was decided to remove access to the PPTP tunnel to ensure the vendor was using the proper tunnel. This required changing the setting for 20 users…

Read more…