# Zmiana konfiguracji usługi

"Przed:"
Get-wmiobject Win32_Service -filter "name='MySQL'" | select startname, startmode

$service = Get-wmiobject Win32_Service -filter "name='MySQL'"
$service.change($null,$null,$null,$null,"manual",$null,"quad\pawelkor", "seKret+123")

"Po:"
Get-wmiobject Win32_Service -filter "name='MySQL'" | select startname, startmode