Share your repls and programming experiences

← Back to all posts
powershell-2
TravisReed (0)

function ajouterperipherique ($id,$emplacement,$type){

$computers = Import-Csv -Path "C:\Temp\Peripherique.csv"

Write-Host $computers

$newObject = [PSCustomObject]@{
id = "$id"
emplacement = "$emplacement"
type = "$type"
}

Write-Host $newObject

}

ajouterperipherique "1","ordinateur","Statique"