Windows 10: PowerShell "Get-Command -Verb Get" format different from documentation

Discus and support PowerShell "Get-Command -Verb Get" format different from documentation in Windows 10 Network and Sharing to solve the problem; According to the documentation for PowerShell 6, the PowerShell command "Get-Command -Verb Get" should output a format similar to: CommandType... Discussion in 'Windows 10 Network and Sharing' started by MesPia, Oct 1, 2019.

  1. MesPia Win User

    PowerShell "Get-Command -Verb Get" format different from documentation


    According to the documentation for PowerShell 6, the PowerShell command "Get-Command -Verb Get" should output a format similar to:

    CommandType Name Definition

    ----------- ---- ----------
    Cmdlet Get-Acl Get-Acl [[-Path] <String[]>]...
    Cmdlet Get-Alias Get-Alias [[-Name] <String[]...
    Cmdlet Get-AuthenticodeSignature Get-AuthenticodeSignature [-...
    Cmdlet Get-ChildItem Get-ChildItem [[-Path] <Stri...
    ...


    However, when I enter the same command in either the default version of Windows PowerShell or PowerShell 6.2.3, it's headinglooks like


    CommandType Name Version Source
    ----------- ---- ------- ------

    Function Get-AppBackgroundTask 1.0.0.0 AppBackgroundTask
    Function Get-AppxLastError 2.0.1.0 Appx
    Function Get-AppxLog 2.0.1.0 Appx


    It doesn't show the Definition (syntax) as shown in the documentation. Is the documentation wrong, or does it apply yet another version of PowerShell?

    :)
     
    MesPia, Oct 1, 2019
    #1
  2. ray.g Win User

    PowerShell Bitlocker command uses unaproved verbs and verbosity setting

    If I have this statement at the start of a script:

    #requires -Version 3.0 -Modules BitLocker, Hyper-V, Storage

    I see this message when I run the script:

    WARNING: The names of some imported commands from the module 'BitLocker' include unapproved verbs that might make them

    less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose

    parameter. For a list of approved verbs, type Get-Verb.

    I also find that if I want to use:

    Write-Verbose

    Statements to debug the script if:

    $VerbosePreference = 'Continue'

    The BitLocker CmdLets hang and do not appear complete.

    If I set:

    $VerbosePreference = 'SilentlyContinue'

    Everything works as expected.

    I am running the script as a normal user with an elevated PowerShell process doing the work using a named pipe for communication.

    Any thoughts?

    Win10/64 V1803 17134.166
     
    ray.g, Oct 1, 2019
    #2
  3. ray.g Win User
    PowerShell Bitlocker command uses unaproved verbs and verbosity setting

    Sorry, I understand what you have said but BitLocker PowerShell CmdLets are built into Windows - I am doing nothing to import, load or anything else. The naming convention issue is NOT of my making.

    This message should IMHO not occur if Microsoft are following their own naming conventions.

    PS C:\WINDOWS\system32> Import-Module -name bitlocker

    VERBOSE: Loading module from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\bitlocker\bitlocker.psd1'.

    VERBOSE: Loading 'FormatsToProcess' from path

    'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\bitlocker\BitLocker.Format.ps1xml'.

    VERBOSE: Loading module from path

    'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\bitlocker\Microsoft.BitLocker.Structures.dll'.

    VERBOSE: Loading module from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\bitlocker\BitLocker.psm1'.

    VERBOSE: Exporting function 'Get-ExceptionForHrInternal'.

    VERBOSE: Exporting function 'IsNanoPowerShell'.

    VERBOSE: Exporting function 'Decrypt-SecureStringInternal'.

    VERBOSE: Exporting function 'Get-Win32EncryptableVolumeInternal'.

    VERBOSE: Exporting function 'Read-UserSecretInternal'.

    VERBOSE: Exporting function 'Get-BitLockerVolumeInternal'.

    VERBOSE: Exporting function 'Get-BitLockerVolume'.

    VERBOSE: Exporting function 'Suspend-BitLocker'.

    VERBOSE: Exporting function 'Resume-BitLocker'.

    VERBOSE: Exporting function 'Lock-BitLocker'.

    VERBOSE: Exporting function 'Unlock-PasswordInternal'.

    VERBOSE: Exporting function 'Unlock-RecoveryPasswordInternal'.

    VERBOSE: Exporting function 'Unlock-RecoveryKeyInternal'.

    VERBOSE: Exporting function 'Unlock-BitLocker'.

    VERBOSE: Exporting function 'Add-RecoveryPasswordProtectorInternal'.

    VERBOSE: Exporting function 'Add-PasswordProtectorInternal'.

    VERBOSE: Exporting function 'Remove-KeyProtectorByTypeInternal'.

    VERBOSE: Exporting function 'Add-TpmProtectorInternal'.

    VERBOSE: Exporting function 'Add-TpmAndPinProtectorInternal'.

    VERBOSE: Exporting function 'Add-TpmAndStartupKeyProtectorInternal'.

    VERBOSE: Exporting function 'Add-TpmAndPinAndStartupKeyProtectorInternal'.

    VERBOSE: Exporting function 'Add-ExternalKeyProtectorInternal'.

    VERBOSE: Exporting function 'Add-SidProtectorInternal'.

    VERBOSE: Exporting function 'Add-BitLockerKeyProtector'.

    VERBOSE: Exporting function 'Remove-BitLockerKeyProtector'.

    VERBOSE: Exporting function 'Backup-BitLockerKeyProtector'.

    VERBOSE: Exporting function 'BackupToAAD-BitLockerKeyProtector'.

    VERBOSE: Exporting function 'Enable-BitLockerAutoUnlock'.

    VERBOSE: Exporting function 'Disable-BitLockerAutoUnlock'.

    VERBOSE: Exporting function 'Disable-BitLocker'.

    VERBOSE: Exporting function 'Clear-BitLockerAutoUnlock'.

    VERBOSE: Exporting function 'Unlock-AdAccountOrGroupInternal'.

    VERBOSE: Exporting function 'Test-SystemEntropyForBitLockerInternal'.

    VERBOSE: Exporting function 'Test-TpmProtectorNeededInternal'.

    VERBOSE: Exporting function 'Test-TpmForBitLockerInternal'.

    VERBOSE: Exporting function 'Enable-BitLockerInternal'.

    VERBOSE: Exporting function 'Show-BitLockerRequiredActionsInternal'.

    VERBOSE: Exporting function 'Get-RecoveryKeyProtectorsCountInternal'.

    VERBOSE: Exporting function 'Set-BitLockerVolumeInternal'.

    VERBOSE: Exporting function 'Enable-BitLocker'.

    VERBOSE: Importing function 'Add-BitLockerKeyProtector'.

    VERBOSE: Importing function 'Backup-BitLockerKeyProtector'.

    WARNING: The names of some imported commands from the module 'bitlocker' include unapproved verbs that might make them

    less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose

    parameter. For a list of approved verbs, type Get-Verb.

    VERBOSE: The 'BackupToAAD-BitLockerKeyProtector' command in the bitlocker' module was imported, but because its name

    does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.

    VERBOSE: Importing function 'BackupToAAD-BitLockerKeyProtector'.

    VERBOSE: Importing function 'Clear-BitLockerAutoUnlock'.

    VERBOSE: Importing function 'Disable-BitLocker'.

    VERBOSE: Importing function 'Disable-BitLockerAutoUnlock'.

    VERBOSE: Importing function 'Enable-BitLocker'.

    VERBOSE: Importing function 'Enable-BitLockerAutoUnlock'.

    VERBOSE: Importing function 'Get-BitLockerVolume'.

    VERBOSE: Importing function 'Lock-BitLocker'.

    VERBOSE: Importing function 'Remove-BitLockerKeyProtector'.

    VERBOSE: Importing function 'Resume-BitLocker'.

    VERBOSE: Importing function 'Suspend-BitLocker'.

    VERBOSE: Importing function 'Unlock-BitLocker'.

    PS C:\WINDOWS\system32>

    This one looks like it causes the issue:

    WARNING: The names of some imported commands from the module 'bitlocker' include unapproved verbs that might make them

    less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose

    parameter. For a list of approved verbs, type Get-Verb.

    VERBOSE: The 'BackupToAAD-BitLockerKeyProtector' command in the bitlocker' module was imported, but because its name

    does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.

    VERBOSE: Importing function 'BackupToAAD-BitLockerKeyProtector'.

    If Verbose is on all CmdLets I have used do not output ANY verbose statements but BitLocker does.

    Try setting $VerbosePreference to 'Continue' and then with one of your own BitLocker disks or VHD which is not unlocked try:

    Code:
    Unlock-BitLocker -MountPoint '<path>' -Password ((Get-Credential -UserName 'Do Not Change' -Message 'Enter the Password').GetNetworkCredential().password |ConvertTo-SecureString -AsPlainText -Force)
    Where <path> is a directory not just a drive letter and see the stream of output that I think is causing the issue.
     
    ray.g, Oct 1, 2019
    #3
  4. Kursah Win User

    PowerShell "Get-Command -Verb Get" format different from documentation

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Oct 1, 2019
    #4
Thema:

PowerShell "Get-Command -Verb Get" format different from documentation

Loading...
  1. PowerShell "Get-Command -Verb Get" format different from documentation - Similar Threads - PowerShell Command Verb

  2. Getting Different Pictures From Slideshow on Different Monitors

    in Windows 10 Software and Apps
    Getting Different Pictures From Slideshow on Different Monitors: Before when I chose slideshow for the background, a different pictures came up on each monitor. Now all three show the exact same picture. Is there a way to get it back to displaying a different picture from the slideshow on each monitor?...
  3. Getting Different Pictures From Slideshow on Different Monitors

    in Windows 10 Customization
    Getting Different Pictures From Slideshow on Different Monitors: Before when I chose slideshow for the background, a different pictures came up on each monitor. Now all three show the exact same picture. Is there a way to get it back to displaying a different picture from the slideshow on each monitor?...
  4. Getting Different Pictures From Slideshow on Different Monitors

    in Windows 10 Gaming
    Getting Different Pictures From Slideshow on Different Monitors: Before when I chose slideshow for the background, a different pictures came up on each monitor. Now all three show the exact same picture. Is there a way to get it back to displaying a different picture from the slideshow on each monitor?...
  5. Powershell Get-AppxPackage command not recognized

    in Windows 10 BSOD Crashes and Debugging
    Powershell Get-AppxPackage command not recognized: I'm using Windows 10 Pro. In powershell run as administrator when I try to run this command: Get-AppxPackage -allusers foreach {Add-AppxPackage -register "$$_.InstallLocation\ I get this error: Get-AppxPackage : The term 'Get-AppxPackage' is not recognized as the name...
  6. Difference between Command Prompt and Windows PowerShell

    in Windows 10 News
    Difference between Command Prompt and Windows PowerShell: [ATTACH] Windows 10, Windows 8 and Windows 7 all come shipped with Windows PowerShell out of the box. Along with that, it came the older Command Prompt which was a successor to MS-DOS Command line. But often the presence of two command [...] This post Difference between...
  7. Difference between Windows PowerShell and Command Prompt

    in Windows 10 Support
    Difference between Windows PowerShell and Command Prompt: Don't these programs do essentially the same thing? Is there an advantage to use one over the other? Just curious. 119910
  8. Unable to use get-appxpackage command in powershell

    in Windows 10 Installation and Upgrade
    Unable to use get-appxpackage command in powershell: While using the command I get this: [IMG] https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/unable-to-use-get-appxpackage-command-in/215276a3-d0dc-4673-99f0-c8102ddee597
  9. PowerShell Bitlocker command uses unaproved verbs and verbosity setting

    in Windows 10 Customization
    PowerShell Bitlocker command uses unaproved verbs and verbosity setting: If I have this statement at the start of a script: #requires -Version 3.0 -Modules BitLocker, Hyper-V, Storage I see this message when I run the script: WARNING: The names of some imported commands from the module 'BitLocker' include unapproved verbs that might make...
  10. Differences in format of DOS command results

    in Windows 10 Support
    Differences in format of DOS command results: OK, so I am doing some stuff in DOS, not geeky stuff but playing around. I have two computers that I can use, both with W10. So, I do a 'DIR' command, saving to a file, and then look at it. Then same again on the other computer. It annoys me that the format of the results...