$NomVariable = "123.567.9" #Le premier caractère, ici 1, est à la position 0 #La recherche du premier point va ici retourner 3 $Position = $NomVariable.indexof(".") write-host "Première position : $Position" #La recherche du denier point va ici retourner 7 $Position = $NomVariable.lastindexof(".") write-host "Dernière position : $Position"