Microsoft Active Directory – Change UPN for all users

Powershell

change UPNToday i had to change the UPN (User Principal Name) for a whole company. Well, go through each user account in Active Directory, change the UPN the way it has to be, and you’re done. That would be the way if you want to do it manually. And this is a slow way. For sure, if there are only five users or so you’re good to go. But what when there are dozens of user accounts? Perhaps in different organizational units? At the present time, where everything in IT has to be quick and fast and with the least amount of effort, you can do it more clever.

Well, that was some challange to find it out. But as often, Powershell is your friend. With few lines of code, fully customizable, you can change the UPN for all users within an organizational unit. So you will save time, because you just have to change the OU in the script.

The change UPN script

[code language=”powershell”]
Import-Module ActiveDirectory
Get-ADUser -Filter * -SearchBase "OU=lan.driftar.com Users,OU=LAB-Users,DC=lan,DC=driftar,DC=com" | ForEach {
$UpdatedUPN = $_.GivenName + "." + $_.SurName + "@driftar.com"
Set-ADUser $_.samAccountName -UserPrincipalName $UpdatedUPN
}
[/code]

What does the script?

The script searches within the organizational unit specified for the user accounts, combines givenname and surename with the domain prefix, and changes then the UPN for all the user accounts withing this organizational unit. In this example the new User Principal Name for a user will be “givenname.surename@driftar.com” (for example john.doe@driftar.com).

Conclusion

To be honest it was some time needed to search for the right script parameters and test it out, to make sure everything works. But you don’t do that every time. You can save this script and customize it every time for the customer you work for. It’s a quick way to change the UPN, and it’s an easy way to save time.

Veeam Availability Suite – Quick Setup Guide

Today i was working in my homelab. I installed an availability solution. It was a quick thing, no complex setup and configuration, but a straightforward installation. Even if its “just” my homelab, i want to know that my VMs are safe and secure and that i can see trends about space utilization and other parameters. How do you achieve that? With installing Veeam Availability Suite v9.

Veeam Avalability Suite v9 - Setup Screen

Just to clarify, the time to create the screenshots took longer than the actual setup of this availability solution. The setup assistant will guide and help you through the setup, it’s really easy, and after few minutes you are ready to go and take the next steps.

What is Veeam Availability Suite?

With this software suite you receive to main components. First of all you will get the very well known Veeam Backup & Replication. This is the doing-backups-part of this suite. Furthermore you get the second component which is Veeam ONE. With Veeam ONE you will get the monitoring, reporting and capacity planning part of this software suite.

Why not only creating backups?

There is for sure not just one simple answer, but let my try to explain. With Veeam Availability Suite you will ditch your legacy backup solution and get real availability for your servers, your data and your business. Veeam Backup & Replication is used to setup the backup of your virtual infrastructure. Through Veeam ONE you get the whole monitoring, reporting and capacity planning. In a single pane of glass you get instant reports, you can monitor your infrastructure and get some insights in the capacity. With this you will find out some trends (for example when a specific data store runs out of space), even before it actually happens.

How do i install this software?

As i already mentioned it’s a really easy process. The setup assistant will ask you some things, but more or less it’s next, next, finish. For sure you can specify the setup steps and configure other ports as the recommended ones for example. The setup assistant gives you this ability if you want. If you are fine with the standard settings, you can leave them and go on.

The following guide line will show you how easy the setup process is. I did an easy deployment, all stuff centralized on one server because my lab is not that big (at the moment). I will discover the points mentioned above, for example the extended screens of the setup assistant, to cover all your needs.

Read more

Veeam Endpoint Backup: error: Cannot find partition

Veeam Endpoint Backup - Error message

Today i had to do some quick research for a specific problem in Veeam Endpoint Backup FREE. The program told me that it cannot find a specific partition on my computer. The first thought was that this could be a bad sign, a sign of a predictive drive error or some thing like that. My spider senses were tingeling…

My computer is setup to do a daily backup to a Synology NAS system with Veeam Endpoint Backup FREE. It does it’s job very fast and really good. It was an easy and straight forward setup process. The guys at Veeam did an excellent job with this piece of software (as they also did for the commercial Veeam Backup & Replication, just to make that clear).

So i was sitting in front of my screen looking at this error message. First of all i did a quick look in Windows disk management and it told me that my disks were all present and accessible. So i did not check SMART nor executed other hard disk tests. A quick hip shot at Google brought me to the solution. And as often i found the solution in the famous Veeam forums.

When i find the time i will do further research about the root cause of this problem. But i think i already have something a possible cause discovered (upgrading to the latest Windows 10 Insider Slow Ring update)… But anyway.

The problem

Error: Cannot find partition \\?\GLOBALROOT\Device\Harddisk3\Partition2

Veeam Endpoint Backup - Error message
Veeam Endpoint Backup – Error message

That sounds bad in the first moment. But if you check your disks, and they are all present and accessible, than it shouldn’t be a big problem.

The solution

It was really easy. But you have to have the idea were to look for the solution. Or you should know the root cause of this problem.

Finally, the solution was to re-run the “Configure backup” wizard. At the point where you select the volumes for backup, mark the checkbox for “Show system and hidden volumes”. That did the trick. My “EFI system partition” was deselected, so i had to reselect it. After checking the volumes (and marking the missing ones) you can finish the wizard.

Veeam Endpoint Backup - Choose volumes
Veeam Endpoint Backup – Choose volumes

After this quick fix my backup went smoothly and my computer is now safe again…

Veeam Endpoint Backup - Backup completed successfully
Veeam Endpoint Backup – Backup completed successfully

If this post helped you solving the problem, just leave me a comment. Thanks 😉

VMware Homelab – Hardware für den Homeserver

Die letzten Wochen über habe ich immer wieder häppchenweise Hardware für mein Homelab resp. den Homeserver bestellt. Ich konnte und wollte nicht alles auf einmal bestellen da ich zum einen, wie in einem vorherigen Post bereits angemerkt, kein unbegrenztes Budget habe, und im Moment auch nicht viel Zeit um die Hardware zusammenzubauen. Zudem will ich alles miteinander verbauen, und nicht jetzt mal etwas und in drei Wochen wieder etwas. Das macht mehr Spass 🙂

Nun ist die Hardware endlich komplett und der Zusammenbau kann beginnen. Als Homeserver habe ich meine ehemalige Game-Workstation wieder in Betrieb genommen. Diese bildet eine recht gute und solide Basis, wie ich finde, vor allem aber bietet sie ausreichend Platz für Hardware und Erweiterungen. Ein Intel Prozessor und ein ASUS Rampage Mainboard bilden das Fundament. Dazu gesellen sich insgesamt 64 GB Ram, ein LSI SAS-Controller, einige SSDs sowie ICY-Docks mit Hotplug-Einschüben.

Das ist die Hardwareliste für den Homeserver

CPU: Intel Core i7-3930K 3,2 GHz (Sandy Bridge E)
Mainboard: ASUS Rampage IV Extreme, Intel X79, Sockel 2011
Ram: Kingston Value RAM (2x, 8GB, DDR3-1600, DIMM 240)
SAS-Controller: LSI SAS 9211-8i HBAi (single)
SAS-Kabel: 3ware CBL-SFF8087OCF-10M, SFF-8087 zu 4 x SATA, 1m
VSAN Cache SSD: Crucial BX200 (240GB, 2.5″)
VSAN Capazity SSD: Samsung 850 EVO Basic (500GB, 2.5″)
Hotplug-Bay für die Disks: ICY DOCK MB996SP-6SB 6-Bay 2.5″ Backplane
Case:

Phanteks Enthoo Primo, schwarz (Big Tower, Schwarz)

Und so sieht das ganze aus

Geplanter Ausbau des Homelab

Auf dem Homeserver wird auf einer eigenen SSD ein ESXi installiert. Auf diesem ESXi wiederum werden drei weitere ESXi als virtuelle Maschinen laufen (nested ESXi). Jeder dieser VM sollen eigene physische Disks zur Verfügung stehen. Das Ziel dieses Homelabs ist eine nested ESXi Umgebung für den Betrieb mit VMware Virtual SAN. Auf den virtuellen ESXi werden schlussendlich einige weitere VMs laufen, um Dinge wie HA, DRS, FT etc. zu testen. Auch werde ich meine liebste Backup Software für die Datensicherung einsetzen. Alles in allem ein kleiner feiner Server. Leider lässt das Board nicht mehr als 64 GB Ram zu. Aber für den Anfang ist das für mich absolut ausreichend.

Vielleicht werde ich auch mal in Intel NUCs investieren und das Homelab weiter ausbauen. Drei Stück, mit all-Flash Konfiguration und 32 GB Ram sind die Basis für ein Homelab mit VSAN. Die bekommt man schon für wenig Geld. Müssen ja keine Hochleistungsrechner sein…

Veeam: NetApp Storage Snapshot

Always on, Zero Downtime, Availability, Backups, Snapshot… Heute muss alles zu jederzeit egal von wo aus immer verfügbar sein. Der Aussendienstmitarbeiter will seine Mails auf dem Laptop oder dem Smartphone jederzeit abrufen können. Zeigniederlassungen einer Firma müssen zu jederzeit auf den Terminalservern oder virtuellen Desktops arbeiten können. Der Webshop muss immer laufen damit die Kunden Waren bestellen können. Das sind hohe Anforderungen an die IT in der heutigen Zeit. Aber für alle von uns irgendwie selbstverständlich. Wir nutzen viele dieser Dienste ja selbst auch, und ärgern uns wenn etwas mal nicht funktioniert.

Das gleiche gilt für die Datensicherung. Früher ging es nicht anders, da hat die Datensicherung einfach mal eine Nacht lange, oder länger, gedauert bis alles aufs Band gesichert werden konnte. In der heutigen Zeit nahezu undenkbar. Daten ändern sich heute in kürzester Zeit wieder, vielfach bereits schon während der Sicherung, spätestens kurz darauf. Wie soll man da kurze RPO oder RTO einhalten?

In der heutigen Zeit, wo bereits ein sehr hoher Virtualisierungsgrad bei den meisten Firmen vorhanden ist, sollte das möglich sein. Zumindest wenn man mit einer Verfügbarkeitssoftware wie Veeam Backup & Replication resp. Veeam Availability Suite arbeitet. Ja ihr habt richtig gelesen. Verfügbarkeitssoftware steht da. Mit Veeam lässt sich viel mehr machen als bloss Daten zu sichern. Klar, das geht einfach, gut und schnell mit Veeam. Aber mit dieser Software lässt sich mehr machen. Kurze RPO oder RTO lassen sich realisieren, Veeam nennt das kombiniert RTPO. Einzelne Dateien, Ordner oder gar ganze virtuelle Maschinen lassen sich innerhalb von Minuten wiederherstellen. Innerhalb von kurzer Zeit einen kompletten Site Failover durchführen. Alles möglich mit Veeam.

Storage SnapShots

Heute möchte ich euch eine Funktion etwas näher bringen. Die Storage Spezialisten und NetApp Freunde kennen dies sicher schon länger. Storage Snapshots. Das ist etwas ähnliches wie ein Snapshot einer virtuellen Maschine zu erstellen. Jedoch nochmals eine Ebene tiefer direkt auf der Storage. Das ist einfach, schnell, und minimiert den Einfluss auf die laufenden virtuellen Maschinen um ein vielfaches. Der laufende Betrieb wird dadurch nicht gestört. Und wenn eine VM nicht mehr sauber läuft, oder Daten gelöscht wurden, kann dieser Storage Snapshot genutzt werden, um die Sache rasch und einfach zu beheben.

NetApp-logo-smallVeeam ist ein NetApp Alliance Partner und unterstützt eine breite Palette von Storage Systemen. Diese enge Zusammenarbeit zwischen Veeam und NetApp macht es möglich, das Maximum aus der bestehenden Virtualisierungsinfrastruktur herauszuholen. Ebenso kann ein Maximum an Verfügbarkeit, sowie schnelle Backups und schnelle Restores zu gewährleistet werden.

Wie nutze ich NetApp Storage SnapShot in Veeam

Wenn ihr schon mit Veeam arbeitet und einen Backup Job eingerichtet habt, geht ihr im Prinzip durch die gleichen Schritte durch. Nur das Repository, also das Ziel der Datensicherung, ändert sich. So einfach lässt sich das einrichten. Etwas mehr Details zeige ich euch anhand der nachfolgenden Screenshots.

In der Veeam Console erstellt ihr einen neuen Backup Job:

Storage SnapShot

Ihr gebt dem Backup Job einen passenden Namen…

Storage SnapShot

…und fügt die gewünschten VMs hinzu. Wählt hierbei aber die verfügbaren Speicher aus in der Anzeige, nicht die ESXi Hosts!

Storage SnapShot

Als Backup Repository wählt ihr nun aus der Dropdownliste “NetApp SnapShot” aus.

Storage SnapShot

Die bekannten Funktionen zum “application-aware processing” können wie bei einem normalen Backup Job über “Advanced” gesetzt werden (VSS etc.). Vergesst die notwendigen Guest OS Credentials nicht.

Storage SnapShot

Erstellt einen Zeitplan für eure Storage Snapshots und schon seid ihr fertig.

Storage SnapShot

Weiterführende Informationen