Cours
Code digicomp : 55318A
Advanced Automated Administration with Windows PowerShell
Description de la formation
Téléchargez au format PDF- Concevoir et déployer des fonctions avancées, des modules de script et des scripts de contrôleur adaptés à un environnement de production à l’aide de la version moderne de PowerShell 7.6
- Intégrer des interfaces externes, appeler des API REST, analyser des données JSON et extraire des ensembles de données à partir de bases de données SQL Server 2025 en toute sécurité
- Mettre en œuvre la gestion des exceptions en entreprise, la journalisation des événements système, l’exécution du planificateur de tâches et les tâches d’arrière-plan multithread
- Mettre en place des contrôles de sécurité robustes, protéger les secrets administratifs, créer des points de terminaison JEA et structurer les projets à l’aide du contrôle de version Git
- Utiliser des outils de test modernes, des outils de débogage statique et des méthodes de validation basées sur l’IA pour inspecter les structures de code automatisées en toute sécurité
INFORMATION IMPORTANTE
Cette formation n’est pas une formation Microsoft officielle. Le contenu de cette formation est basé sur le MOC 10962, aujourd’hui abandonné par Microsoft, et développé par la communauté Microsoft.
Module 1: Creating advanced functions
Convert repeatable script logic and simple commands into robust, professional-gradeadvanced functions.
Lessons
- Lesson 1: Defi ning Parameters,Validation, and PipelineInputs
- Lesson 2: Integrating Safety Featuresand AI Review Workfl ows
Exercises
- Creating an Advanced PowerShellFunction for SQL Server Auditing
Module 2: Using .NET and REST APIs in PowerShell
Extend standard PowerShell administrative automation by interacting directly with the.NET framework, remote REST web services, and SQL Server 2025 databases.
Lessons
- Lesson 1: Using .NET Classes andMethods in PowerShell
- Lesson 2: Interacting with REST APIsand Parsing JSON Data
- Lesson 3: Querying SQL Server 2025Databases
Exercises
- Calling Web Services and FetchingAdventureWorks2025 Records
Module 3: Writing controller scripts
Design and build high-level orchestration controller scripts that integrate standalonecustom functions with databases, reports, and API sources.
Lessons
- Lesson 1: Architecture of PowerShellController Scripts
- Lesson 2: Integrating Diverse Inputsand Sequencing Functions
- Lesson 3: Generating StructuredReports and MarkdownDocumentation
Exercises
- Orchestrating Workfl ows andAutomated Report Generation
Module 4: Handling script errors
Build high-resiliency automation scripts that fail gracefully, log useful diagnostics, andapply automated recovery routines.
Lessons
- Lesson 1: Error Types, Terminology,and Action Behaviors
- Lesson 2: Defensive Scripting with Try-Catch-Finally Blocks
- Lesson 3: Implementing RobustLogging, Retries, andTimeouts
Exercises
- Building Exception-Tolerant Scripts withActive Logging
Module 5: Working with structured data and automationreports
Read, validate, transform, and export CSV, JSON, XML, and SQL database outputs togenerate complex enterprise reports.
Lessons
- Lesson 1: Ingesting, Parsing, andValidating CSV, JSON, andXML
- Lesson 2: Designing DynamicStructured Reports andOutput Validations
Exercises
- Parsing Data Feeds and CompilingAdventureWorks Reports
Module 6: Enhancing server management with confi gurationand constrained administration
Implement confi guration management patterns and secure, delegated systemadministration using modern frameworks and least-privilege concepts.
Lessons
- Lesson 1: Modern Desired StateConfi guration (DSC) as Code
- Lesson 2: Implementing Just EnoughAdministration (JEA)Endpoints
- Lesson 3: Analyzing Security Controlsand Least-PrivilegeFrameworks
Exercises
- Mocking Constrained Confi gurationsand Least-Privilege Audits
Module 7: Analyzing and debugging scripts
Debug run-time scripting bugs, perform static code analysis, and run automated testingframeworks with Visual Studio Code.
Lessons
- Lesson 1: Static Code Analysis usingPSScriptAnalyzer
- Lesson 2: Introduction to Unit Testingwith Pester Framework
Exercises
- Debugging Complex Flows andAuthoring Basic Pester Tests
Module 8: Running and orchestrating PowerShell automation
Schedule, execute, and scale PowerShell automation tasks securely across local servers,pipelines, and enterprise runners.
Lessons
- Lesson 1: Managing Background Jobs,Threading, and RemoteWorkloads
- Lesson 2: Enterprise Orchestration viaRunbooks and GitHubPipelines
- Lesson 3: Managing DataDependencies andUnattended ExecutionEnvironments
Exercises
- Scheduling Unattended Jobs andCaching Remote SQL Data
Module 9: Building production-ready PowerShell automation
Structure, package, secure, and document advanced automation scripts to ensure theyare production-ready and maintainable.
Lessons
- Lesson 1: Source Control Architectureand Project Structuring in Git
- Lesson 2: Securing Secrets, Credentials,Execution Policies, and CodeSigning
- Lesson 3: Operational Documentation,Release Checklists, and AISecurity
Exercises
- Packaging Modules, Managing GitWorkfl ows, and Hardening Secrets
Cette formation d’adresse aux professionnels de l’IT ayant de l’expérience avec Windows Server et l’administration des clients Windows. Les participantes et participants doivent avoir des connaissances fondamentales de Windows PowerShell. De plus, cette formation offre des conseils de scripting aux administrateurs et développeurs travaillant avec Microsoft Azure et qui s’occupent de la maintenance d’environnements de développement et de processus de déploiement.
Les participantes et participants doivent être des administrateurs système Windows expérimentés et/ou avoir de l’expérience en scripting ou en programmation ainsi que des connaissances de base de SQL Server et des concept liés aux requêtes de base de données. Les participantes et participants doivent au préalable suivre le cours suivant ou s’assurer de posséder des connaissances équivalentes :