Actualiser Compte_Office.ps1
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# Activation des logs
|
||||||
|
Start-Transcript -Path ".\logs\creation-$(Get-Date -Format 'yyyyMMdd-HHmmss').log"
|
||||||
|
|
||||||
# Prérequis :
|
# Prérequis :
|
||||||
Install-Module Microsoft.Graph -Scope CurrentUser
|
Install-Module Microsoft.Graph -Scope CurrentUser
|
||||||
Connect-MgGraph -Scopes "User.ReadWrite.All", "Directory.ReadWrite.All"
|
Connect-MgGraph -Scopes "User.ReadWrite.All", "Directory.ReadWrite.All"
|
||||||
@@ -172,6 +175,11 @@ color: white;
|
|||||||
padding: 30px;
|
padding: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.header img.logo {
|
||||||
|
max-width: 150px;
|
||||||
|
height: auto;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
.header h1 {
|
.header h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@@ -265,6 +273,7 @@ color: #333;
|
|||||||
<body>
|
<body>
|
||||||
<div class="email-container">
|
<div class="email-container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
<img src="https://www.h3campus.fr/images/h3-education.jpeg" alt="Logo H3 Campus" class="logo">
|
||||||
<h1>🔐 $titre</h1>
|
<h1>🔐 $titre</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -564,3 +573,6 @@ Start-Sleep -Seconds 10
|
|||||||
Write-Host "`n========================================" -ForegroundColor Green
|
Write-Host "`n========================================" -ForegroundColor Green
|
||||||
Write-Host "Traitement terminé pour tous les étudiants" -ForegroundColor Green
|
Write-Host "Traitement terminé pour tous les étudiants" -ForegroundColor Green
|
||||||
Write-Host "========================================" -ForegroundColor Green
|
Write-Host "========================================" -ForegroundColor Green
|
||||||
|
|
||||||
|
# Arrêt du log
|
||||||
|
Stop-Transcript
|
||||||
Reference in New Issue
Block a user