Modification erreur affichage

This commit is contained in:
nicolas 2023-12-16 16:56:04 +01:00
parent c36060d589
commit 4449bb1221

View File

@ -15,7 +15,9 @@ if (!(Get-Module -name ActiveDirectory)) {throw("Impossible de trouver le module
function addthis([string]$groupname=$(throw("Nom de groupe obligatoire")),[string]$name=$null,$added=$null,$removed=$null)
{
if ($added -eq $null -and $removed -eq $null)
{throw("Aucun indice d'ajout / retrait pour $groupname")}
{
throw("Aucun indice d`'ajout / retrait pour $groupname")
}
$objet = New-Object psobject
$objet | Add-Member -MemberType NoteProperty -name "Date" -value $now
$objet | Add-Member -MemberType NoteProperty -Name "Group_name" -Value $groupname