ad-migratie met windows powershell...2017/09/20  · powershell automation script roll back 2do...

24
AD-migratie met Windows PowerShell

Upload: others

Post on 28-Feb-2021

23 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

AD-migratie met Windows PowerShell

Page 2: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Voorstellen

• Harald van Leeuwen

• Werkzaam bij EIC sinds 2012

www.linkedin.com/in/haraldvanleeuwen

[email protected]

Page 3: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Stelling

PowerShell is onmisbaar voor een voorspelbare en robuuste

geautomatiseerde migratie van elk Microsoft-gebaseerd IT-systeem

Page 4: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Omgeving

• ING Bank

• Actief in binnen- en buitenland

• 9 miljoen klanten

• Jaaromzet 17,5 miljard euro

• IT is core business

Page 5: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Projectopdracht (1)

Migratie van alle gebruikersaccounts

in meerdere AD’s naar een

wereldwijde corporate AD.

Page 6: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Impact op veel andere diensten:

▪ SharePoint

▪ Exchange

▪ MDM

▪ Diverse andere applicaties

▪ …

Projectopdracht (2)

Page 7: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Requirements (1)

• Migraties ‘hands off’ en dus volledig geautomatiseerd.

• Variabele batches qua omvang en samenstelling

• Show must go on gebruiker moet na migratie weer kunnen werken (succesvol of niet)

• Stakeholders bijschakelen indien nodig

Page 8: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Requirements (2)

• Migratiestappen (workflow) variabel

• Werkt samen met aanwezige migratietool

• Automatische rollback bij problemen

• Robuust

• Uitvoering op termijn door servicedesk

• Communicatie automatisch

Page 9: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Migratie in de basis

1. Vanuit de migratieapplicatie wordt een geaccordeerde batch (verzameling accounts) aangeboden.

2. Alle stakeholders ontvangen een notificatiebericht (pre inform)• Entry in database• Gestandaardiseerde tekst file

3. Op tijdstip van migreren start de workflow• Stap 1: Deactiveer oude account• Stap 2: Core migratie (onder andere Exchange en SharePoint)• Stap 3: Activeer nieuwe account• Stap 4: Migreer mobile device management• Stap 5..stap n: overige applicatie-acties (parallel)

4. Bij fout in proces wordt rollback batch gegenereerd om stappen ongedaan te maken (ter beoordeling migratieteam)

Page 10: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Functionele demo

Page 11: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Pre-inform

Information file

Information file

Information file

Information file

Database

Automation DB

PowerShellautomation

script

Page 12: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 13: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 14: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 15: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 16: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 17: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start migratie

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Page 18: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Tool

Start roll back

Migration file

Migration file

Migration file

Migration file

Database

Automation DB

PowerShellautomation

script

Roll back

Page 19: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

2DO

– Automatiseren communicatie

– Uitbreiding dashboard

Page 20: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Waarom PowerShell?

• Compact

• Simpel

• Robuust

• Weinig “gedoe” (geen builds maken etc.)

Desalniettemin.. volledige .NET Framework development mogelijkheden

Page 21: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Lessons learned

- Pas op met continu lopende scripts

- Hou het simpel

- Testen, testen, …

- Incrementeel bouwen

- Foutafhandeling

Page 22: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Nog wat andere toepassingen binnen het project

• Inlezen accounts uit een CDS en de AD’s

• Relaties inlezen gebruikers en groepen

• Importfuncties tool

– Bouwen hiërarchie vanuit Excel

– Gebruikers in batches

• Allerhande hand- en spandiensten

Page 23: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Stelling

PowerShell is onmisbaar voor een voorspelbare en robuuste

geautomatiseerde migratie van elk Microsoft-gebaseerd IT-systeem

Page 24: AD-migratie met Windows PowerShell...2017/09/20  · PowerShell automation script Roll back 2DO –Automatiseren communicatie –Uitbreiding dashboard Waarom PowerShell? • Compact

Vragen?