Recently I was working with a firewall that wrote some tremendously large log files and was eating disk at an alarming rate, so to remedy this, and sharpen my Powershell pencil, … [Keep Reading]
Recently I was working with a firewall that wrote some tremendously large log files and was eating disk at an alarming rate, so to remedy this, and sharpen my Powershell pencil, … [Keep Reading]
There’s an awesome tool on codeplex for managing Hyper-V using Powershell called PSHyperV, it’s especially handy if you’re working with Hyper-V on a Windows Server Core installation.
Just download the … [Keep Reading]
When patching servers, any disconnected user sessions typically prevent the post-patch auto reboot. To remedy this you could use the following Powershell script :
foreach ($_ in get-content servers.txt) {(… [Keep Reading]
The time-tested approach of appending data to the end of a file using >> doesn’t necessarily work with CSV files in Powershell, and Out-File with the -append switch typically results in a … [Keep Reading]
Here’s a powershell script you can use to delete files in a directory (and all sub-directories) X days old or older.
$Now= Get-Date
$Days = “3“
$TargetFolder =… [Keep Reading]
Often times it may become necessary to stamp an additional SMTP address (proxy address) on a user account, either as part of a migration, or organizational domain name change etc…
Here’s a … [Keep Reading]
I love powershell, I love it’s power, flexibility and extensibility, however I I do most of my work in the shell because I cannot stand to use the ISE.
The only feature … [Keep Reading]
My name is Darryl Kegg and I am a Senior Deployment Consultant at Microsoft, I am part of the Premier Deployment team within the America’s Cloud Services group deploying Office 365. My … [Keep Reading]