Stop a Windows Service Using PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 08:07:43

25K+ Views

To stop specific service using PowerShell, you need to use Stop-Service command.SyntaxStop-Service -Name ServiceName Stop-Service -DisplayName ServiceDisplayNameExampleStop-Service -Name Spooler To check if service is stopped, type Get-Service -Name Spooler.OutputStatus   Name           DisplayName ------   ----           ----------- Stopped  Spooler           Print SpoolerYou can also use -Verbose parameter to check the command processes.PS C:\Windows\system32> Stop-Service -Name spooler -Verbose VERBOSE: Performing the operation "Stop-Service" on target "Print Spooler (spooler)".You can also perform the stop the service using, Get-Service -Name Spooler | Stop-Service -Verbose You can also use the wildcard ... Read More

Get Service Information with WMI Method Using PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 08:06:34

3K+ Views

You can also use the WMI method to get the services information instead of standard command Get-Service.CommandTo get the service information on the server, you need to use WMI class Win32_Service.Get-WmiObject -Class Win32_ServiceOutputExitCode  : 0 Name      : Browser ProcessId : 0 StartMode : Manual State     : Stopped Status    : OK ExitCode  : 0 Name      : BTAGService ProcessId : 1468 StartMode : Manual State     : Running Status    : OK ExitCode  : 0 Name      : BthAvctpSvc ProcessId : 1460 StartMode : Manual State     : Running Status    : OK ExitCode  : 0 Name      : bthserv ... Read More

Get Services on Remote Computers with PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 08:05:08

14K+ Views

To get service on the remote computer(s), simply you need to add parameter – ComputerName and provide remote servers computer name or IP address.In the below example, we are getting services information on remote computer Win7 which has Automatic start-type.Get-Service -ComputerName Win7 | Where{$_.StartType -eq "Automatic"}Similarly, you can connect multiple computers separated by comma (, ) in – ComputerName parameter.Get-Service -ComputerName Win7, TestPC | Where{$_.StartType -eq "Automatic"} If you need to identify on which particular computer(s), services exist, you can use the machinename property. In the above example, we are adding a machine name property in Pipeline.Get-Service -ComputerName Win7, TestPC ... Read More

Use Tor to Surf the Web Anonymously

Samual Sam
Updated on 22-Jan-2020 08:04:56

185 Views

Everyone has secrets, and not all of them are sinister ones. Some secrets are personal, that we share with friends and they swear to protect it all their lives. Then there are really private secrets that we would rather not share and take measures to protect.But every time we think of more security, we look toward the internet to get help in preserving our privacy. There are many companies that provide online data-storage services and promise that our information will remain secure with them.What is Deep Web?Internet is very vast, it’s not restricted just to Google, Facebook, YouTube or other ... Read More

Get Services Based on Multiple Conditional Parameters in PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 08:03:35

646 Views

To filter out services with both start-type “Automatic” and Status “stopped” we need to use the -AND comparison operator. Here, services will be displayed only when both conditions are matching.CommandGet-Service | where{($_.StartType -eq "Automatic") -and ($_.Status -eq "Stopped")} | Select Name, StartType, StatusOutputName       StartType  Status ----       ---------  ------ gpsvc      Automatic Stopped gupdate    Automatic Stopped MapsBroker Automatic StoppedCommandTo get services with start-type manual or disabled we will use -OR operator.Get-Service | where{($_.StartType -eq "Manual") -or ($_.StartType -eq "Disabled")} | Sort-Object Starttype | Select Name, StartType, StatusOutputLxpSvc                 ... Read More

Install Winamp on Ubuntu Linux Mint

Sharon Christine
Updated on 22-Jan-2020 08:02:38

8K+ Views

Are you looking for an alternative Linux music player? Winamp might be a good option to consider.Winamp supports a wide variety of contemporary and specialized music file formats, including MIDI, MOD, MPEG-1 audio layers 1 and 2, AAC, M4A, FLAC, WAV, OGG Vorbis, and Windows Media Audio. It supports gapless playback for MP3 and AAC, and Replay Gain for volume leveling across tracks. This article describes” How to install Winamp on Ubuntu/Linux Mint”Installing WinampTo install Winamp, get access of Winamp PPA from repository, use the following command –$ sudo add-apt-repository ppa:forkotov02/ppaThe sample output should be like this –Releases of Qt-based ... Read More

Get All Services Based on Their Status in PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 08:02:35

1K+ Views

Below commands will filter out services based on their Status (Running, Stopped).CommandTo get all the running services on the local computer.Get-Service | where{$_.Status -eq "Running"}OutputRunning  TimeBrokerSvc      Time Broker Running  TokenBroker        Web Account Manager Running  TrkWks             Distributed Link Tracking Client Running  UnistoreSvc_158379 User Data Storage_158379 Running  UserDataSvc_158379 User Data Access_158379 Running  UserManager        User Manager Running  UsoSvc             Update Orchestrator Service Running  VaultSvc           Credential Manager Running  VMUSBArbService    VMware USB Arbitration Service Running  WavesSysSvc        Waves ... Read More

Use TRAI's MySpeed App to Check Internet Speed

Samual Sam
Updated on 22-Jan-2020 08:02:10

270 Views

“Hello? I can’t hear you. Who is this? Oh, God… this network”.This is something we use and we here almost every day. There is not much we can do about this issue, except for complaining, but now to measure the speed of internet on our device, India’s Telecom Regulatory Authority has launched a new app called , “MySpeed” .This app is very similar to all other applications designed to test the speed of internet connections. However, this is a great move by the Indian government. It can be easily downloaded by the mobile Sewa app store. It helps users to ... Read More

Get Services Based on Start Type in PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 07:57:33

3K+ Views

Below commands are useful to filter services based on their start types (Automatic, Manual or Disabled).CommandTo get the Automatic start-type service. These services are started automatically when the system starts.Get-Service | where{$_.StartType -eq "Automatic"} | Select Name, StarttypeOutputSystemEventsBroker          Automatic TeraCopyService             Automatic Themes                      Automatic TrkWks                      Automatic UserManager                 Automatic UsoSvc                      Automatic VMUSBArbService     ... Read More

Wage War Against Viruses

Samual Sam
Updated on 22-Jan-2020 07:56:49

192 Views

There’s no way around it – World Wide Web is a problem with all imaginable forms or viruses and malware and they aren’t going anywhere. The best we can do is to improve our means of protecting our devices, and thankfully, we’ve got technology on our side as well. Fighting against viruses is an ongoing thing since internet came to be in this world – the good, the bad and the ugly came together and you can’t have one without the other.The first thing to do is ask yourself how much are you really investing into your internet security, and ... Read More

Advertisements