Skip to content

Set-PSNote can't change Note Catelog #12

@ahpooch

Description

@ahpooch

After creating new PSNote cmdlet Set-PSNote can't can't change note's Catalog.

Simple example:

PS C:\Users\User> New-PSNote -Catalog Catalog1 -Name "test1" -Snippet "Get-Date"
PS C:\Users\User> Set-PSNote -Name "test1" -Catalog Catalog2
WARNING: The note 'test1' does not exist in catalog 'Catalog2'. An attempt will be made to create it.
WARNING: Duplicate Alias found: . Skipping note: test1

Results of the actions above:

PS C:\Users\User> Get-PSNote -Catalog Catalog1

----------------------------------------

Note    :
Catalog : Catalog1
Details :
Alias   :
Snippet :

Get-Date



PS C:\Users\User> Get-PSNote -Catalog Catalog2

----------------------------------------

Note    :
Catalog : Catalog2
Details :
Alias   :
Snippet :

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions