Stop & Disable Service

$Services = Get-Service -DisplayName "*Citrix *"

Foreach ($Service in $Services)
{
    Stop-Service -Name ($Service).Name
    Set-Service -Name ($Service).Name -StartupType Disabled
}

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *