windows sc code example Example 1: sc windows sc query > listeServices.txt Example 2: sc windows sc query state= all