• Home
  • About
  • Contact
  • Resources
  • News
  • Home
  • About
  • Contact
  • Resources
  • News
Powershell Newbie

Get | Set | Start

Get-Verb

2/16/2018

2 Comments

 
So we have looked at using Get-Help and Get-Command to discover Cmdlets and how to use them, but there is another tool we can add to the mix. Get-Verb will display the long list of standard verbs. I say standard, because you can create scripts or functions and use whatever bad choice you like :). It is always best to stick with the standards. It keeps it conformed, organized, and makes sense to those you may decide to share with. Sharing is good. So try Get-Verb today and you might find some verbs you were unaware of being available. Then you can use Get-Command or Get-Help to look up some existing Cmdlets that use those verbs.
Picture
Picture
Get-Verb also outputs the group to which the verb belongs. This is nice for categorizing the type of functionality.
2 Comments

PS in Linux in PS

2/1/2018

1 Comment

 
The usefulness could be debated but this sure was fun to accomplish. The result is a PowerShell Core console inside a Kali Linux terminal running in a Windows PowerShell console. Pictures follow.

First I followed the instructions from the Kali blog here:
Installing Kali Linux on Windows 10 Using the Linux Subsystem

Next within that Kali subsystem I followed the instructions from Microsoft here:
Installing PowerShell Core On macOS and Linux       
I scrolled down to the section:
Installation via Package Repository - Debian 9
But...
Ran into a DNS issue. This is solved by using nano editor in linux to change the DNS file:
​nano /etc/resolv.conf
then Ctrl+O to save and Ctrl+X to exit
I then had no trouble following the instructions and once done...BAM!
PowerShell Core inside Kali Linux inside Windows PowerShell on Windows 10
Why did I do it? Because I could. If we don't test it, we won't break it. If we don't break it, we miss an opportunity to learn.
Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture
1 Comment

    Joshua B. Jones, VCP6-DCV

    Professional PowerShell Fan, Automation & Virtualization Expert

    Archives

    February 2018
    January 2018
    December 2017
    November 2017
    May 2017
    August 2016

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.