You can get the specific service-related information using –name parameter and you just need to provide the service name.CommandGet-Service –Name "Spooler"OutputStatus Name DisplayName ------ ---- ----------- Running Spooler Print SpoolerCommandSimilarly, you can search for more than one service with the –name parameter.Get-Service –Name "Spooler", "RemoteAccess" OutputStatus Name DisplayName ------ ---- ----------- Stopped remoteaccess Routing and Remote Access Running Spooler Print SpoolerYou can also use the wildcard character (*) in service name so the console can fetch the entire name.When wildcard character (*) is used at the end of the name then debug console will check the starting string of the ... Read More
Do you wish to initiate a new business, need help with business decisions, analyze immense amount of data, create a chatbot or song, need help with recipes, or have a business that is leaving money on the table? Get all your answers from ‘Watson.’Created by IBM, Watson is a supercomputer that works as a ‘question answering’ machine while combining artificial intelligence (AI) along with predictive analytical software. Named after IBM’s founder Thomas J. Watson, it is a cognitive technology that can understand, reason and think like a human.With Watson, through questions designed in natural language, one can analyze, visualize, and ... Read More
To display the other properties of the services than the default ones (which are supported by Get-Member), you need to pipeline the Select-Object (alias Select) command. For example, in the below command we will display theService name, start type and status of the service.CommandGet-Service | Select-Object Name, StartType, StatusOutputName StartType Status ---- ... Read More
To display all the properties and methods available for the get-service cmdlet you need to pipeline Get-Member (alias gm). MemberType ‘Property’ is to display the specific property like machinename, servicename, etc. and with the MemberType ‘Method’ you can perform specific operations on the object, for example, Start, Stop, Pause the service, etc.CommandThe below command is to display all the members (properties, methods) the Get-Service.Get-Service | Get-MemberOutputName MemberType ---- ---------- Name ... Read More
Let’s discuss a scenario of a company where no formal project management processes is in place. A company which believes more on manpower rather than processes. For example, it is a construction company and recently won a tender to construct a flyover in a busy road in the city.That’s a great news for the company, the company grabs the work order from the mouths of its competitors and jumped to start making the flyover. They informed the architects, engineers and the workers to start the work. Everyone planned their work as usual. The architects draw their diagrams, and the engineers ... Read More
In this tutorial, we will be discussing a program to convert time from 24 hour clock to 12 hour clock format.For this we will be provided with certain time in 24 hour format. Our task is to convert it into 12 hour format with the extension of “AM” or “PM”.Example Live Demo#include using namespace std; //converting into 12 hour format void convert_12hour(string str){ int h1 = (int)str[0] - '0'; int h2 = (int)str[1] - '0'; int hh = h1 * 10 + h2; //finding the extension string Meridien; if (hh < 12) { Meridien = "AM"; } else Meridien = "PM"; hh %= 12; if (hh == 0) { cout
To get the services on the local computers you need to use Get-Services cmdlet. This command will give you all the services which have running, stopped, stop pending or start pending status, and which has startup type is Automatic, Manual or Disabled.The output of the default table will display Status, Name, and DisplayName three columns.CommandGet-ServiceOutputStatus Name DisplayName ------ ---- ----------- Stopped AarSvc_158379 Agent Activation Runtime_158379 Running AdobeARMservice Adobe Acrobat Update Service Stopped AdobeFlashPlaye... Adobe Flash Player Update ... Read More
Webmin is a web-based interface for system administration in Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd and lets you manage a system from the console or remotely. This article explains you about how to install Webmin on Ubuntu.To install Webmin open /etc/apt/sources.list file as shown below-# sudo nano /etc/apt/sources.listThe sample output of the file should be like this –# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for ... Read More
In this tutorial, we will be discussing a program to convert the undirected graph into a directed graph such that there is no path of length greater than 1.For this we will be provided with an undirected graph. Our task is to convert that graph into a direct one given no path has a length greater than 1.Example Live Demo#include using namespace std; #define N 100005 //storing the graph vector gr[N]; //storing colour of each vertex int colour[N]; vector edges; bool bip; //adding edges to the graph void add_edge(int x, int y){ gr[x].push_back(y); gr[y].push_back(x); edges.push_back(make_pair(x, y)); } ... Read More
In the modern world, almost all prefer to have their own space. That’s not all, we also find people using different advanced methods to secure their gadgets, especially mobile phones using pin numbers, drawing patterns, etc. More recently, we find, people preferring to have facial recognition or fingerprint mobile lock in order to have more security.Facial recognition is a great feature on Google photos, similar to Facebook or Apple photos it has built in features like facial recognition and it can automatically organize photos based on the people’s faces.A significant point to remember, in case if you are accessing your ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP