Category: Powershell

Modify DNS Records via Powershell

Modify DNS Records via Powershell

Over the past few months I’ve been doing a lot of work with VMware Horizon 6. I’m not going to go into details, as VMware has done a great job doing that, plus I’m under a NDA. Suffice to say, details that have been provided suffice if you’re just looking for info.

In my company sponsored lab environment, I have HWS 1.8 deployed in feature/option parity compared to production. Deploying a second instance of HWS (perhaps a pre-release version), is challenging, due to DNS/Reverse DNS Checks that are done.

Anyways – the reason you’re probably here is to find out how to systematically modify DNS records, so here ya go!

Continue reading “Modify DNS Records via Powershell”

Powershell – Provision NetApp Volume as NFS Datastore to vCenter

Powershell – Provision NetApp Volume as NFS Datastore to vCenter

powercli-iconFor anyone that’s ever been through the process of provisioning a new datastore to multiple ESX hosts, you know it can take some time. Below are the steps I use

  1. Create Volume on NetApp
  2. Set Security Style to Unix
  3. Enable Storage Efficiency
  4. Set NFS Export permissions to allow Read/Write + Root Permissions to all applicable hosts
  5. Mount datastores on ESXi hosts

For a handful of hosts this is fine, but adding it to anything more than 4-5 hosts is reaaally painful in my experience. Below is a script you can use to take care of these steps in one swipe.

Continue reading “Powershell – Provision NetApp Volume as NFS Datastore to vCenter”

NetApp: Get Statistics from Multiple Filers With One Command

NetApp: Get Statistics from Multiple Filers With One Command

Does anyone actually find NetApp OnCommand System Commander to be fast enough for normal operation? I’ll admit, I still create a good amount of Volumes and LUNs using it, but it leaves a lot to be desired in the performance category.  If you follow my blog at all, you know that I’m in the middle of a migration from a non-ha exchange environment to a DAG. Being the sensible admin that I am, I have multiple copies of my Exchange databases on different storage arrays, controlled by different NetApp filers. Using System Manager to monitor the space usage of the Volumes hosting my mailbox databases is way to slow for my comfort.

Continue reading “NetApp: Get Statistics from Multiple Filers With One Command”

Exchange 2010 – Bulk Mailbox Migration In Batches

Exchange 2010 – Bulk Mailbox Migration In Batches

Update:
I created a new version of this script here
I recently completed a project that involved migrating Exchange 2010 Mailbox role from a standalone server to a Database Availability Group, or DAG. This was a large project that took a lot of time and planning, and had the potential to be very tedious. Fortunately, with a little knowhow, you can automate many of the tedious tasks.

I wanted to be in full control of mailbox migration, so my requirements were fairly strict:

Continue reading “Exchange 2010 – Bulk Mailbox Migration In Batches”

Use PowerShell to get Service Auto-Start Status Along with Human Readable Service Name

Use PowerShell to get Service Auto-Start Status Along with Human Readable Service Name

This falls into the “Come on Microsoft” category.

I have been writing a script that will gather a bunch of information from servers, and returns an object with the information.  Part of what I’m gathering is the servers that are set to auto start, and have their corresponding service stopped.

While you can get a list of services that meet part of this criteria like this:

Continue reading “Use PowerShell to get Service Auto-Start Status Along with Human Readable Service Name”

Use PowerShell to Update Specific AD User’s Description Field with Last Login Time

Use PowerShell to Update Specific AD User’s Description Field with Last Login Time

I encountered a challenge today that was fun to fix.  There’s an Organizational Unit in my AD setup that has historically been used to store disabled AD objects instead of deleting them.

When an employee leaves the organization, our standard procedure  is as followed:

  1. Disable User Object
  2. Move to separate OU (IE AD://internal.msd/disabled/users)
  3. Update Description field with something like: Disabled by [username] on [date]
  4. Retain user object for x amount of days, then tombstone it.

Best laid plans of mice and men… yada yada…

Continue reading “Use PowerShell to Update Specific AD User’s Description Field with Last Login Time”

Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor

Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor

So yesterday I talked about using a Powershell script with in Solarwinds to monitor volume sizes. Using the NetApp Data ONTAP Toolkit, we have the ability to do monitor a lot of different things, and track the information using Solarwinds. In this post I will show how to monitor SnapMirror relationships using Solarwinds.

Continue reading “Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor”

Monitor NetApp SAN via Solarwinds Server and Application Monitor

Monitor NetApp SAN via Solarwinds Server and Application Monitor

I was unable to find any examples for how to do this online, so I came up with my own solution using the NetApp Data ONTAP toolkit as well as a slight modification of your powershell profile.

Continue reading “Monitor NetApp SAN via Solarwinds Server and Application Monitor”

Copyright VirtJunkie.com © 2024