Simplify IT Management with AD Scripting Chalermrath K. (MCSE: Security) Jirat B. (MCSE, RHCE) Technology Specialists Microsoft Thailand.

Slides:



Advertisements
Similar presentations
Chapter 20 Oracle Secure Backup.
Advertisements

IP ADDRESS MANAGEMENT [IPAM]
Faith Allington Program Manager Microsoft Corporation Session Code: WSV304.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Security and Policy Enforcement Mark Gibson Dave Northey
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 1: Introduction to Windows Server 2003.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
4/17/2017 7:07 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
20411D Administering Windows Server® 2012 刘道军老师主讲 如有疑问请与我联系:
IIS 7: The Next Generation Web Application Server Platform Michael Volodarsky Program Manager Web Platform and Tools Team Microsoft Corporation.
Christopher Chapman | MCT Content PM, Microsoft Learning, PDG Planning, Microsoft.
Microsoft Office Project 2003 Resource Kits James Scott & Roy Riley Technical Content Development Microsoft Corporation.
Understanding Active Directory
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Understanding Active Directory
Winter Consolidated Server Deployment Guide for Hosted Messaging and Collaboration version 3.5 Philippe Maurent Principal Consultant Microsoft.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Purpose Intended Audience and Presenter Contents Proposed Presentation Length Intended audience is all distributor partners and VARs Content may be customized.
11 REVIEWING MICROSOFT ACTIVE DIRECTORY CONCEPTS Chapter 1.
Module 1 Introduction to Managing Microsoft® Windows Server® 2008 Environment.
10969A Active Directory® Services with Windows Server® Course 10699A
Module 8 Configuring and Securing SharePoint Services and Service Applications.
5.1 © 2004 Pearson Education, Inc. Lesson 5: Administering User Accounts Exam Microsoft® Windows® 2000 Directory Services Infrastructure Goals 
A Day in the Life of a SharePoint Administrator Amit Puri Senior Development Lead Microsoft India.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
System Center 2012 Certification and Training May 2012.
Configuring Encryption and Advanced Auditing
20411B 8: Installing, Configuring, and Troubleshooting the Network Policy Server Role Presentation: 60 minutes Lab: 60 minutes After completing this module,
Project Server 2003: DC340: Security (Part 1 of 2): How to securely deploy Project Server in an enterprise environment Pradeep GanapathyRaj (PM), Karthik.
Active Directory Administration Lesson 5. Skills Matrix Technology SkillObjective DomainObjective # Creating Users, Computers, and Groups Automate creation.
Future of the Server Room Tour. Ottawa Montreal Calgary Vancouver Toronto Future of Your Server Room Three Pillars of Windows Server 2008 Virtualization.
Hosting an Enterprise Financial Forecasting Application with Terminal Server Published: June 2003.
Planning a Microsoft Windows 2000 Administrative Structure Designing default administrative group membership Designing custom administrative groups local.
Paul Butterworth Management Technology Architect
Chris Almida Sr. Program Manager Microsoft Corporation SESSION CODE: WSV206.
Section 11: Implementing Software Restriction Policies and AppLocker What Is a Software Restriction Policy? Creating a Software Restriction Policy Using.
Rob Davidson, Partner Technology Specialist Microsoft Management Servers: Using management to stay secure.
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
Module 3 Planning for Active Directory®
Active Directory design recommended practices Mark Cribben Consultant.
Unit 7 ITT TECHNICAL INSTITUTE NT1330 Client-Server Networking II Date: 2/3/2016 Instructor: Williams Obinkyereh.
MCSE: Windows Server 2003 Active Directory Planning, Implementation, and Maintenance Study Guide, Second Edition (70-294) Chapter 1: Overview of the Active.
Active Directory Domain Services (AD DS). Identity and Access (IDA) – An IDA infrastructure should: Store information about users, groups, computers and.
Configuring Advanced Windows Server 2012 R2 Services Exams4sure.
Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.
Building Enterprise Applications Using Visual Studio®
Building AD-SQL-APP Server on AZURE
Integrating Enterprise Applications Into SharePoint® Portal Server
Microsoft Virtual Academy
Migrating your IaaS infrastructure from ASM to ARM without downtime
ACTIVE DIRECTORY ADMINISTRATION
Active Directory Administration
Unit 3 NT1330 Client-Server Networking II Date: 1/6/2016
SharePoint Online Management and Control
VCE Dumps
Mikael Nystrom Senior Executive Consultant TrueSec
11/12/2018 6:58 PM © 2004 Microsoft Corporation. All rights reserved.
Windows Server 2008 Administration
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft Virtual Academy
5/12/2019 2:57 PM © Microsoft Corporation. All rights reserved.
Unit 6 NT1330 Client-Server Networking II Date: 7/19/2016
System Center Configuration Manager Assessment Results
SQL Server Assessment Results
Active Directory Assessment Results
Windows Client Assessment Results
Mark Quirk Head of Technology Developer & Platform Group
Presentation transcript:

Simplify IT Management with AD Scripting Chalermrath K. (MCSE: Security) Jirat B. (MCSE, RHCE) Technology Specialists Microsoft Thailand

Agenda Why Scripting? Scripting Basics Windows Script Host Scripting Tools Testing with Scripts Scripting Security Automate AD Tasks

Why Scripting

Scenario 1 - Migration 360,000 Objects 2,500 Clients Servers 2,000 Active Users Only a weekend to down servers (You will be in trouble if CEO can’t login on Monday) What will you do?

Scenario 2 - Merging Your company just acquire Contoso 20,000 new users need to be added 5,000 users need to be disabled All passwords need to be random What will you do?

Scenario 3 – New to the Job You just join a big firm as System Admin Former admin quit without documents AD is damn slow with no reason You need to draw present infrastructure diagram You need to solve AD performance problem What will you do?

Scripting Basics

Windows Script Host WScriptGUI-basedDefault%systemroot%\system32\wscript.exeCScriptText-based%systemroot%\system32\cscript.exe Setting CScript //H:CScript

WSF File Format Header <package>…</package>

WSF File Format Job …</job>

WSF File Format Code <![CDATA[…]]>

WSF File Format Block Comment <comment>…</comment> Line Comment ‘ ………………..

VBScript Concepts Class Data Member Member Function Object Class Instance Many Instantiated Objects for One Class

VBScript Concepts Doing a task Instantiate relevant object Set data member Call function member

VBScript Concepts Sample (create a text file) <![CDATA[ Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile("C:\FSO\ScriptLog.txt") ]]>

Scripting Tools Scriptomatic 2.0 Tool for generating VBScript, Jscript, Python, Perl, and XML ADSI Scriptomatic Generate ADSI script for managing complicate AD infrastructure Portable Script Center Helpful CHM file for scripting

Use Scripts for Testing Simulate Production Environment Uses Virtual PC or Virtual Server Applies Configuration Scripts Performs Test (Configuration) Prepare Testing & Rollback Scripts, then Test The Rollback Real Deployment Schedules Down-time Applies Configuration Scripts Runs Test Scripts & Verifies The Results If Unfavorable, Invokes Rollback Scripts

Securing Your Scripts Utilize PKI Signing Scripts with Digital Certificate Relevant Registry Keys (Older Windows) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings\UseWINSAFER HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings\TrustPolicy HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings\SilentTerminate HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Script Host\Settings\TrustPolicy

Automate AD Tasks

Computer Accounts Join a Computer to a Domain Join a Computer to a Domain List FSMO Role Holders List FSMO Role Holders Verify a Global Catalog Server Verify a Global Catalog Server

User Accounts List All Disabled/Enabled Accounts List All Disabled/Enabled Accounts Disable/Enable User Accounts Disable/Enable User Accounts Move a User to New Domain Move a User to New Domain

Sites & Subnets List All AD Sites List All AD Sites List All Domain Controllers List All Domain Controllers List Subnets in All Sites List Subnets in All Sites

Monitoring Monitor AD Replication Monitor AD Replication Monitor AD Database Performance Monitor AD Database Performance Monitor DC Performance Monitor DC Performance Monitor NTDS Performance Monitor NTDS Performance

Scripts Summary Assure quality of services Iterate testing process Reduce servicing down-time Reduce human errors Reduce cost

References Windows Administrator’s Automation Toolkit, Microsoft Press, 2005, USA Microsoft’s Scripting Web: us/dnanchor/html/scriptinga.asp us/dnanchor/html/scriptinga.asp us/dnanchor/html/scriptinga.asp Microsoft’s AD Sample Scripts: VBScript Fundamental: us/script56/html/vtorivbscriptfundamentals.asp us/script56/html/vtorivbscriptfundamentals.asp us/script56/html/vtorivbscriptfundamentals.asp

© 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.