Get All Properties and Methods for the Service in PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 07:50:10

3K+ Views

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

Identify Your Stakeholders Before the Ship Sinks

Samual Sam
Updated on 22-Jan-2020 07:50:09

142 Views

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

Convert Time from 24-Hour to 12-Hour Format in C++

Ayush Gupta
Updated on 22-Jan-2020 07:49:52

917 Views

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

Get Services on a Local Computer with PowerShell

Chirag Nagrekar
Updated on 22-Jan-2020 07:48:28

584 Views

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

Install Webmin on Ubuntu

Sharon Christine
Updated on 22-Jan-2020 07:47:15

348 Views

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

Convert Undirected Graph to Directed Graph in C++

Ayush Gupta
Updated on 22-Jan-2020 07:45:37

205 Views

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

Enable Face Recognition in Google Photo Gallery

Samual Sam
Updated on 22-Jan-2020 07:44:07

722 Views

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

Convert String to Palindrome by Changing One Character in C++

Ayush Gupta
Updated on 22-Jan-2020 07:42:15

394 Views

In this tutorial, we will be discussing a program to convert the string into palindrome string by changing only one character.For this we will be provided with a string. Our task is to convert the given string into a palindrome by changing only one character.Example Live Demo#include using namespace std; //checking if conversion to palindrome //is possible bool if_palindrome(string str){    int n = str.length();    //counting number of characters    //to be changed    int count = 0;    for (int i = 0; i < n/2; ++i)       if (str[i] != str[n - i - 1])          ++count;    return (count

Install VMware Player 7.1.2 on Ubuntu Linux Mint

Sharon Christine
Updated on 22-Jan-2020 07:40:07

365 Views

VMware Workstation Player is a streamlined desktop virtualization application that runs one or more operating systems on the same computer without rebooting. Using VMware, we can easily interact and exchange data between applications running on the virtual machine and the desktop. It supports hundreds of guest operating systems weather it may be new or old. This article describes “how to install VMware Player on Ubuntu”.Installing VMwareTo install VMware, Linux essential headers is required. For this, use the following command to install Linux essentials headers –# sudo apt-get install build-essential linux-headers-`uname -r`The sample output should be like this –Reading package lists... ... Read More

It's Time for an Upgrade

Samual Sam
Updated on 22-Jan-2020 07:40:03

180 Views

ISO standards and certifications are in the market since few decades now. They have made a significant impact on the industries and has created their own stand. They are now a synonym for an effective Quality-measuring tool. With due course of time, the ISO standards have been improved and are in accord with the current trends. High-LevelStructure of ISO has seen a complete revamp to accommodate the need for an Integrated Management System (IMS).Need for IMSAn organization usually opts for more than one certification, due to need to remain in the competition and for better business opportunities. It was observed ... Read More

Advertisements