Powershell Tutorial
Introduction to Powershell Managing History of Powershell Commands Cmdlet, Alias, Function and Module in Powershell PSDrive Profile in Windows Powershell Variable Management in Powershell Passing values to parameters from file Creating files and directories Basic File System commands Finding the patterns in files Unique command Replacing patterns in files Comparing objects Sorting objects Other object commands Getting members of an Object Managing processes Managing Jobs IO redirection Piping System Commands Network commands Service Commands WMI(Windows Management Instrumentation) CIM (Common Information Model) Formatting output exporting output XML processing Powershell Module Management Remote computer managementService commands in windows powershell
Viewing services You can view all services using below syntax.
> Get-Service
You can use below command to view specific service.
> Get-Service -Name <service-name>
Stopping services
Get-Service -Name <service-name> | Stop-Service
Starting service
Start-Service <service-name>
Restarting services
Restart-Service <service-name>
Here is the list of other service commands.- Suspend-Service – This Cmdlet lets you to suspend the services.
- Resume-Service – This Cmdlet allows you to resumes services.
- New-Service – This Cmdlet allows you to create a new service.
Web development and Automation testing
solutions delivered!!