Modification erreur affichage
This commit is contained in:
parent
c36060d589
commit
4449bb1221
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user