Skip to content

WIP: add more information about 'using' scope modifier to about_Remote_Variables.md #5497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

Jawz84
Copy link
Contributor

@Jawz84 Jawz84 commented Feb 29, 2020

PR Summary

Fixes #5068
@mklement0 opened this issue because information about 'Using' scope modifier was very limited in the documentation. I have taken his raw material and tried to put it into a more coherent shape that may be suitable for publication.
The information differs from version to version. I have taken this into account in the variations for each version.
I have simplified Michael's original information.

PR Context

Select the type(s) of documents being changed.

Cmdlet reference & about_ topics

  • Version 7.x preview content
  • Version 7.0 content
  • Version 6 content
  • Version 5.1 content

Conceptual articles

  • Fundamental conceptual articles
  • Script sample articles
  • DSC articles
  • Gallery articles
  • JEA articles
  • WMF articles
  • SDK articles

PR Checklist

  • I have read the contributors guide and followed the style and process guidelines
  • PR has a meaningful title
  • PR is targeted at the staging branch
  • All relevant versions updated
  • Includes content related to issues and PRs - see Closing issues using keywords.
  • This PR is ready to merge and is not Work in Progress
    • If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the
      title and remove the prefix when the PR is ready.

@Jawz84
Copy link
Contributor Author

Jawz84 commented Feb 29, 2020

My energy is very low at the moment. This is what I have been able to put together for now. I would love some help finishing this. Thank you.
CC @mklement0

@opbld30
Copy link

opbld30 commented Feb 29, 2020

Docs Build status updates of commit 611b55f:

⚠️ Validation status: warnings

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-5.1) Details
reference/6/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-6) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-7) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-7.x) Details

reference/5.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

jgaston5 and others added 27 commits February 29, 2020 17:43
* corrects info about -NoEnumerate

* Update reference/6/Microsoft.PowerShell.Utility/Write-Output.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.0/Microsoft.PowerShell.Utility/Write-Output.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.1/Microsoft.PowerShell.Utility/Write-Output.md

Co-Authored-By: Sean Wheeler <[email protected]>

Co-authored-by: Sean Wheeler <[email protected]>
* sync platyps changes

* fix typos
* add docker article

* uopdate TOC

* Update reference/docs-conceptual/install/PowerShell-in-Docker.md

Co-Authored-By: Steve Lee <[email protected]>

* Update reference/docs-conceptual/install/PowerShell-in-Docker.md

Co-Authored-By: Steve Lee <[email protected]>

* Feedback edits

* Update TOC

Co-authored-by: Steve Lee <[email protected]>
* added [wip] Whats new PowerShell 7.0

* fixed format issue line 268

* fixed format issue line 268

* removed Whats NEw from Staging

* [wip] Whats New in PowerShell 7

* [wip] Added word and example

* update

* updated Ternary/Null

* Added version notification

* update to notifications

* update to format

* update

* update - Intro added, Win Compat added

* update

* update

* updated with Migration section

* update

* update links localization

* word correction

* need to validate upgrade path

* added note about winrm remoting on debian 10

* update

* updated supported os's

* Typo corrections thanks to @alexandair

* added new language in running powershell

* removed bad link en-us

* Corrections thank to @alexandair

* update to TOC for Whats New

* updated with images

* updated list with bullets

* Update post Sean review

* link update

* Added link

* added link

* Release date update

Co-authored-by: Sean Wheeler <[email protected]>
* Adds note about scope for persisting drive

* updates to use CIministance

* Update reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/5.1/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.0/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.1/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.1/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/7.0/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/6/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/6/Microsoft.PowerShell.Management/New-PSDrive.md

Co-Authored-By: Sean Wheeler <[email protected]>

Co-authored-by: Sean Wheeler <[email protected]>
* Rename image folders

* update image link

* Update Infographic
* added [wip] Whats new PowerShell 7.0

* fixed format issue line 268

* fixed format issue line 268

* removed Whats NEw from Staging

* [wip] Whats New in PowerShell 7

* [wip] Added word and example

* update

* updated Ternary/Null

* Added version notification

* update to notifications

* update to format

* update

* update - Intro added, Win Compat added

* update

* update

* updated with Migration section

* update

* update links localization

* word correction

* need to validate upgrade path

* added note about winrm remoting on debian 10

* update

* added running PowerShell 7
Typo in the description for the -InputObject parameter. Should say "remove" not "stop"
There are a few places that tripped me up while reading.
These changes should improve readability and clarity.
* Fixes MicrosoftDocs#5520 - throw out the "throw"

* Add module compatibilty list

* fix formatting

* feedback edits
* Fixes MicrosoftDocs#5520 - throw out the "throw"

* Fixes MicrosoftDocs#5528 - typo
* Updates to about_module

* Updates for about_EnvironmentVariables

* Adds link for about_module

* updates modifying the psmodulepath

* Adds link to about Modules

* Remove double backslash in code spans

* Update about_Environment_Variables.md

* Update about_Modules.md

* Update about_Modules.md

* Update about_Environment_Variables.md

* Update about_Modules.md

* Update about_Environment_Variables.md

* Update about_Modules.md

* Update modifying-the-psmodulepath-installation-path.md

Co-authored-by: Sean Wheeler <[email protected]>
* Fixes MicrosoftDocs#5520 - throw out the "throw"

* Add install instructions and repo link
sdwheeler and others added 4 commits March 11, 2020 09:32
* Adds PowerShell 7 lifecyle and updates doc

* Fixes broken link issue

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Sean Wheeler <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Joey Aiello <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Joey Aiello <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Joey Aiello <[email protected]>

* Update reference/docs-conceptual/PowerShell-Support-Lifecycle.md

Co-Authored-By: Joey Aiello <[email protected]>

* Updates for PR comments

* Fixes bookmark

Co-authored-by: Sean Wheeler <[email protected]>
Co-authored-by: Joey Aiello <[email protected]>
@sdwheeler
Copy link
Collaborator

@PaulHigin Can you review this PR?

Kam Salisbury and others added 8 commits March 12, 2020 07:31
…rosoftDocs#5580)

* Added clarifying statement and example

* Added clarifying statement and example

* Added clarifying statement and example

* Update about_Remote_Variables.md

* Update about_Remote_Variables.md

* Update about_Remote_Variables.md

* Update about_Remote_Variables.md

Co-authored-by: Sean Wheeler <[email protected]>
* Adds info about difference between XML and CLI XML

* updates dates

* Updates fpr formatting common parameters
…Docs#5583)

* Fixes MicrosoftDocs#3194 - impact of culture on parameters

* update v5.1 error message

* fix error message
@PaulHigin
Copy link
Contributor

@Jawz84 Thanks for providing this! I'll review it first thing tomorrow.

@Jawz84
Copy link
Contributor Author

Jawz84 commented Mar 13, 2020

Thank you @PaulHigin

## Using local variables in PowerShell 2.0
### Other situations where the 'Using' scope modifier is needed

For anything that executes out-of-runspace, doesn't execute directly in the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most users don't understand 'runspace', so I think we should use 'session'. Something like:

'For any script or command that executes out of session, you need the Using scope modifier to embed variable values from the calling session scope,
so that out of session code can access them. The Using scope modifier is supported in the following contexts:'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PaulHigin, I agree; just for context: the language comes from https://stackoverflow.com/a/60012780/45375, which @Jawz84 was kind enough to turn into this PR. In the SO answer, I was aiming for technical accuracy, but I do understand that the official documentation is (also) aimed at a less technical audience.

can access it. (Conversely, all other contexts neither require nor support the
'Using' scope modifier.) Specifically, this includes the following contexts:

- Remotely executed commands, started with Invoke-Command's `-ComputerName` or
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, I feel we should not use 'runspace':

...(remote session)
...(out-of-process session)
...(separate thread session)

- InlineScript in Workflows (out-of-process)

> [!NOTE]
> Note that out-of-runspace code can never modify variables in the caller's
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good note. This is a difficult concept for some users. I would write it:

'Depending on the context, embedded variables will be either copies of or references to the caller's scope variables. Out-of-process sessions (remote, background jobs, workflows) embed copies of variables through the PowerShell serialization system (see Serialization of variable values section below). But for thread jobs [and ForEach-Object -Parallel in 7.0+ versions], references to variables are passed to each thread session. This means it is possible to modify call scope variables in a different thread, but to do this safely requires thread synchronization.'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"reference to variables" is precisely the terminology I suggest we avoid; it's a reference to an instance of a reference type, not to the variable - I know that the distinction is a subtle one, but if you phrase it that way, user may expect that passing variable $foo with a value-type instance such as 42 can be assigned to via $using:foo = 43, which isn't true.

$using:foo is the value of a variable, and if that value happens to be a reference (to a mutable object), other threads can modify it.

I know that the value-type / reference-type dichotomy is an advanced topic, but I don't think we should gloss over the distinction here, because it will ultimately cause more confusion.

Remotely executed commands and background jobs run out-of-process. For values
in variables to cross these process boundaries they undergo XML-based
serialization and deserialization. This typically involves loss of type fidelity
\- both on input and output. --> todo: example needed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to mention that most types (except for special types such as Version, PSCredential, SecureString, etc.) are deserialized to a PSObject, which is 'property bag' general type that contains the original type properties but not its methods.

serialization and deserialization. This typically involves loss of type fidelity
\- both on input and output. --> todo: example needed

Thread jobs, by contrast, because they run in a different runspace (thread) in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use 'session' instead of 'runspace', and 'variable reference' to be consistent.

chasewilson and others added 4 commits March 13, 2020 11:14
\- both on input and output. --> todo: example needed

Thread jobs, by contrast, because they run in a different runspace (thread) in
the same process receive $using: variable values as their original, live objects
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comma: "process>>,<< receive ..."

chasewilson and others added 3 commits March 13, 2020 17:00
* Updates all versions

* updated info - unavailablity in powershell.exe

* updated info - unavailablity in powershell.exe
@sdwheeler
Copy link
Collaborator

@PaulHigin @Jawz84 @mklement0 I made some changes based on the feedback. Let me know how this looks.

@sdwheeler
Copy link
Collaborator

Closing this PR. The original branch was too stale.

@opbld30
Copy link

opbld30 commented Mar 14, 2020

Docs Build status updates of commit c31496f:

⚠️ Validation status: warnings

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Break.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Classes.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Environment_Variables.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_History.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Modules.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-5.1) Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Scopes.md ⚠️Warning View (powershell-5.1) Details
reference/6/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Break.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Classes.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Environment_Variables.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_History.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Modules.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-6) Details
reference/6/Microsoft.PowerShell.Core/About/about_Scopes.md ⚠️Warning View (powershell-6) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Break.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Classes.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Environment_Variables.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Experimental_Features.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_History.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Modules.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Pipeline_Chain_Operators.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-7) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Scopes.md ⚠️Warning View (powershell-7) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Break.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Classes.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Environment_Variables.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Experimental_Features.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_History.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Modules.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Pipeline_Chain_Operators.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md ⚠️Warning View (powershell-7.x) Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Scopes.md ⚠️Warning View (powershell-7.x) Details
.github/ISSUE_TEMPLATE/config.yml ✅Succeeded
.github/PULL_REQUEST_TEMPLATE.md ✅Succeeded
CONTRIBUTING.md ✅Succeeded
assets/PowerShell_7_Infographic.pdf ✅Succeeded
contributing/1-GET-STARTED.md ✅Succeeded

This comment lists only the first 50 files in the pull request.

reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Break.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Classes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Environment_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_History.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Modules.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_PowerShell_exe.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/5.1/Microsoft.PowerShell.Core/About/about_Scopes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.
  • Line 220: [Warning] Invalid file link:(~/5.1/ThreadJob/Start-ThreadJob.md).

reference/6/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Break.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Classes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Environment_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_History.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Modules.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/6/Microsoft.PowerShell.Core/About/about_Scopes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Break.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Classes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Environment_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Experimental_Features.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_History.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Modules.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Pipeline_Chain_Operators.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.0/Microsoft.PowerShell.Core/About/about_Scopes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Break.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Classes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Environment_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Experimental_Features.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_History.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Modules.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Pipeline_Chain_Operators.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Remote_Variables.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

reference/7.1/Microsoft.PowerShell.Core/About/about_Scopes.md

  • [Warning] Metadata with following name(s) are not allowed to be set in Yaml header, or as file level metadata in docfx.json, or as global metadata in docfx.json: locale. They are generated by Docs platform, so the values set in these 3 places will be ignored. Please remove them from all 3 places to resolve the warning.

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it clear that $using is also needed for background jobs (not just in remoting)