Tag Info

Hot answers tagged

1

The usual solution is by making sure it doesn't stay dead. E.g. you'd often find it set to respawn in /etc/inittab. If init dies, your system will reboot anyway, and otherwise init can restart sshd.


1

2 Options: Option 1: Open services.msc Click Action > Export list and save it as text document Now you can use search (Ctrl+F) in notepad to find what you need. Option 2: You could use something like Hilitext to search for text anywhere on your screen.


1

You can specify the service name using the -Name attribute. By default if it doesn't see a matching service it will give an error. Using -ErrorAction SilentlyContinue you can get an empty variable back. $service = Get-Service -Name W32Time -ErrorAction SilentlyContinue Once you have that you can just see if the length is greater than 0. if ...



Only top voted, non community-wiki answers of a minimum length are eligible