Here’s some quick snips to help work with Azure Storage. Everything from creating the storage account, to manipulating it with files. #Create Azure storage and manipulate it. #update with the name if your subscription $subscriptionName = "Pay-As-You-Go" #Give a name to your new storage account. must be lowercase. Can test this with powershell as well $storageAccountName = "teststorage001" #Choose location $location = "west us" #Give a name to your new

This is a nifty script I had to build. The requirements were for a manager to be notified of all accounts that were expiring so they could reply back and with an approval to extend or an instruction to remove those accounts. This powershell uses html in the email body to send a nicely formatted email. I’ve also included a generic check for staff without manager id’s set. I am

Well, more powershell. On today’s menu, system health. I recently had a couple of vm’s that stopped replying to RDP and they’d ping but that was about it. I wanted to get more info on what was going on with them before killing them and restarting. I discovered that while RDP (and basically everything else) was non-functional, powershell connected and was usable. So, I thought up this script, as a

So, I have a site that has no cool admin tools that can dynamically update group memberships with staff reporting to a manager. This occasionally comes up as they wish to send emails to all employees in their orgs. I’ve hashed together a powershell that will take care of this problem, and I think its pretty cool. As you can tell, it prompts for the manager and group you wish

Every once in a while I get a request to drop a bunch of groups to excel, and of course we need to grab more than just the members. I usually get the request as provide title, email address, department and company. This script gives you access to all the attributes you can get off Get-aduser -Properties * My source file or $Importfile is an excel CSV – remember to

In Azure, when you have an enterprise subscription, Microsoft is kind enough to give you a default subscription name. While that’s cool – its not really when you spin up multiple subscriptions and then try to use azure powershell to control them. The main problem: Select-AzureSubscription -SubscriptionName (name) -Current Hard to do, when you have 2+ subscriptions with the same name. If you find yourself in that boat, first thing

Occasionally I find myself needing to test email via an alternate source. Perhaps I want to test to see if a system is answering as part of troubleshooting for instance. Well, telnet works great for that of course. Here’s an example of that, telnetting to port 25., The lines in bold, what I type. Gregorys-MacBook-Pro:~ gvandenham$ telnet webmail.gogo.com 25 Trying 10.1.200.05... Connected to webmail.gogo.com. Escape character is '^]'. 220 il-ecs-01.gogo.local