Update links that contain 'en-us' culture (#7013)
Update links that contain 'en-us' culture to remove 'en-us' culture (if possible) and in some cases update to newer re-directed link to docs.microsoft.com
This commit is contained in:
parent
e9e8dc2313
commit
fa544c33db
|
@ -1009,7 +1009,7 @@ For more information on this, we invite you to read [this blog post explaining P
|
|||
- Once the pipeline is running as a job, all of the standard `*-Job` cmdlets can be used to manage the job.
|
||||
- Variables (ignoring process-specific variables) used in the pipeline are automatically copied to the job so `Copy-Item $foo $bar &` just works.
|
||||
- The job is also run in the current directory instead of the user's home directory.
|
||||
- For more information about PowerShell jobs, see [about_Jobs](https://msdn.microsoft.com/en-us/powershell/reference/6/about/about_jobs).
|
||||
- For more information about PowerShell jobs, see [about_Jobs](https://msdn.microsoft.com/powershell/reference/6/about/about_jobs).
|
||||
|
||||
### Engine updates and fixes
|
||||
|
||||
|
|
|
@ -232,9 +232,9 @@ License: By requesting and using the Container OS Image for Windows containers,
|
|||
|
||||
### Telemetry
|
||||
|
||||
By default, PowerShell collects the OS description and the version of PowerShell (equivalent to `$PSVersionTable.OS` and `$PSVersionTable.GitCommitId`) using [Application Insights](https://azure.microsoft.com/en-us/services/application-insights/).
|
||||
By default, PowerShell collects the OS description and the version of PowerShell (equivalent to `$PSVersionTable.OS` and `$PSVersionTable.GitCommitId`) using [Application Insights](https://azure.microsoft.com/services/application-insights/).
|
||||
To opt-out of sending telemetry, create an environment variable called `POWERSHELL_TELEMETRY_OPTOUT` set to a value of `1` before starting PowerShell from the installed location.
|
||||
The telemetry we collect fall under the [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement/).
|
||||
The telemetry we collect fall under the [Microsoft Privacy Statement](https://privacy.microsoft.com/privacystatement/).
|
||||
|
||||
## Governance
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Licensed under the MIT License.
|
||||
|
||||
### The techniques used in this demo are documented at
|
||||
### https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/
|
||||
### https://azure.microsoft.com/documentation/articles/powershell-azure-resource-manager/
|
||||
|
||||
### Import AzureRM.Profile.NetCore.Preview and AzureRM.Resources.NetCore.Preview modules.
|
||||
### AzureRM.NetCore.Preview is a wrapper module that pulls in these modules
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## DSC MOF Compilation Demo
|
||||
|
||||
[PowerShell Desired State Configuration](https://msdn.microsoft.com/en-us/PowerShell/dsc/overview) is a declarative configuration platform for Windows and Linux. DSC configurations can be authored in PowerShell and compiled into the resultant MOF document.
|
||||
[PowerShell Desired State Configuration](https://docs.microsoft.com/powershell/dsc/overview) is a declarative configuration platform for Windows and Linux. DSC configurations can be authored in PowerShell and compiled into the resultant MOF document.
|
||||
|
||||
This demo shows use of PowerShell to author a DSC configuration to set the configuration of an Apache web server. PowerShell scripting is used to assess distro and version-specific properties, such as the service controller and repo manager tools, for use in the configuration.
|
||||
|
||||
|
@ -9,4 +9,4 @@ This demo shows use of PowerShell to author a DSC configuration to set the confi
|
|||
- OMI: >= 1.1.0 [https://www.github.com/microsoft/omi/releases](https://www.github.com/microsoft/omi/releases)
|
||||
- Desired State Configuration for Linux >= 1.1.1-278 [https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases](https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases)
|
||||
|
||||
Note: applying the DSC configuration requires privileges. The user must have sudo authorization capabilities. You will be prompted for a sudo password when running the demo.
|
||||
> Note: applying the DSC configuration requires privileges. The user must have sudo authorization capabilities. You will be prompted for a sudo password when running the demo.
|
||||
|
|
|
@ -126,7 +126,7 @@ WSManStackVersion 3.0
|
|||
Please be sure to use a build from the Windows Insider program, either [Windows Server Insider](https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver) or the [Windows 10 Insider](https://insider.windows.com/GettingStarted),
|
||||
as your Container host before trying to pull this image. Otherwise, pulling this image will **fail**.
|
||||
|
||||
Read more about the changes coming to Nano Server in future releases of Windows Server Insider [here](https://docs.microsoft.com/en-us/windows-server/get-started/nano-in-semi-annual-channel).
|
||||
Read more about the changes coming to Nano Server in future releases of Windows Server Insider [here](https://docs.microsoft.com/windows-server/get-started/nano-in-semi-annual-channel).
|
||||
|
||||
### This is pre-release software
|
||||
|
||||
|
|
|
@ -216,9 +216,9 @@ and macOS as well as Windows using the .NET Core 2.0 SDK command-line tools.
|
|||
For more information on .NET Standard, check out the [documentation][net-std-docs]
|
||||
and the [.NET Standard YouTube channel][net-std-chan].
|
||||
|
||||
[dotnet-cli]: https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x
|
||||
[dotnet-cli]: https://docs.microsoft.com/dotnet/core/tools/?tabs=netcore2x
|
||||
[net-core-sdk]: https://www.microsoft.com/net/download/core
|
||||
[net-std-docs]: https://docs.microsoft.com/en-us/dotnet/standard/net-standard
|
||||
[net-std-docs]: https://docs.microsoft.com/dotnet/standard/net-standard
|
||||
[net-std-chan]: https://www.youtube.com/playlist?list=PLRAdsfhKI4OWx321A_pr-7HhRNk7wOLLY
|
||||
[pscore-os]: https://github.com/powershell/powershell#get-powershell
|
||||
[readme]: ../../README.md
|
||||
|
|
|
@ -31,7 +31,7 @@ Any change that is a clear violation of the public contract.
|
|||
+ Any existing behavior that results in an error message generally may be changed to provide new functionality.
|
||||
+ A new instance field is added to a type (this impacts .NET serialization but not PowerShell serialization and so is considered acceptable.)
|
||||
+ Adding new types, new type members and new cmdlets
|
||||
+ Making changes to the protocols with a protocol version increment. Older versions of the protocol would still need to be maintained to allow communication with earlier systems. This would require that protocol negotiation take place between the two systems. In addition to any protocol code changes, the Microsoft Open Specification program requires that the formal protocol specification for a protocol be updated in a timely manner. An example of a MS protocol specification document (MS-PSRP) can be found at: https://msdn.microsoft.com/en-us/library/dd357801.aspx
|
||||
+ Making changes to the protocols with a protocol version increment. Older versions of the protocol would still need to be maintained to allow communication with earlier systems. This would require that protocol negotiation take place between the two systems. In addition to any protocol code changes, the Microsoft Open Specification program requires that the formal protocol specification for a protocol be updated in a timely manner. An example of a MS protocol specification document (MS-PSRP) can be found at: https://msdn.microsoft.com/library/dd357801.aspx
|
||||
|
||||
## Bucket 2: Reasonable Grey Area
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ We also run the [.NET code formatter tool](https://github.com/dotnet/codeformatt
|
|||
|
||||
* Make sure the added/updated comments are meaningful, accurate and easy to understand.
|
||||
|
||||
* Public members must use [doc comments](https://msdn.microsoft.com/en-us/library/b2s063f7.aspx).
|
||||
* Public members must use [doc comments](https://docs.microsoft.com/dotnet/csharp/programming-guide/xmldoc/xml-documentation-comments).
|
||||
Internal and private members may use doc comments but it is not required.
|
||||
|
||||
## Performance Considerations
|
||||
|
@ -183,16 +183,16 @@ See [CODEOWNERS](../../.github/CODEOWNERS) for more information about the area e
|
|||
* Consider using the `Interlocked` class instead of the `lock` statement to atomically change simple states. The `Interlocked` class provides better performance for updates that must be atomic.
|
||||
|
||||
* Here are some useful links for your reference:
|
||||
* [Framework Design Guidelines](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/index) - Naming, Design and Usage guidelines including:
|
||||
* [Arrays](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/arrays)
|
||||
* [Collections](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/guidelines-for-collections)
|
||||
* [Exceptions](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/exceptions)
|
||||
* [Best Practices for Developing World-Ready Applications](https://docs.microsoft.com/en-us/dotnet/standard/globalization-localization/best-practices-for-developing-world-ready-apps) - Unicode, Culture, Encoding and Localization.
|
||||
* [Best Practices for Exceptions](https://docs.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)
|
||||
* [Best Practices for Using Strings in .NET](https://docs.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings)
|
||||
* [Best Practices for Regular Expressions in .NET](https://docs.microsoft.com/en-us/dotnet/standard/base-types/best-practices)
|
||||
* [Serialization Guidelines](https://docs.microsoft.com/en-us/dotnet/standard/serialization/serialization-guidelines)
|
||||
* [Managed Threading Best Practices](https://docs.microsoft.com/en-us/dotnet/standard/threading/managed-threading-best-practices)
|
||||
* [Framework Design Guidelines](https://docs.microsoft.com/dotnet/standard/design-guidelines/index) - Naming, Design and Usage guidelines including:
|
||||
* [Arrays](https://docs.microsoft.com/dotnet/standard/design-guidelines/arrays)
|
||||
* [Collections](https://docs.microsoft.com/dotnet/standard/design-guidelines/guidelines-for-collections)
|
||||
* [Exceptions](https://docs.microsoft.com/dotnet/standard/design-guidelines/exceptions)
|
||||
* [Best Practices for Developing World-Ready Applications](https://docs.microsoft.com/dotnet/standard/globalization-localization/best-practices-for-developing-world-ready-apps) - Unicode, Culture, Encoding and Localization.
|
||||
* [Best Practices for Exceptions](https://docs.microsoft.com/dotnet/standard/exceptions/best-practices-for-exceptions)
|
||||
* [Best Practices for Using Strings in .NET](https://docs.microsoft.com/dotnet/standard/base-types/best-practices-strings)
|
||||
* [Best Practices for Regular Expressions in .NET](https://docs.microsoft.com/dotnet/standard/base-types/best-practices)
|
||||
* [Serialization Guidelines](https://docs.microsoft.com/dotnet/standard/serialization/serialization-guidelines)
|
||||
* [Managed Threading Best Practices](https://docs.microsoft.com/dotnet/standard/threading/managed-threading-best-practices)
|
||||
|
||||
## Portable Code
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ Recommended Training and Reading
|
|||
- [Learn PowerShell Video Library][powershell.com-learn-powershell] from PowerShell.com
|
||||
- [PowerShell Quick Reference Guides][quick-reference] by PowerShellMagazine.com
|
||||
- [PowerShell 5 How-To Videos][script-guy-how-to] by Ed Wilson
|
||||
- [PowerShell TechNet Resources](https://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx) from ScriptCenter
|
||||
- [PowerShell Documentation](https://docs.microsoft.com/powershell)
|
||||
|
||||
|
||||
Commercial Resources
|
||||
|
@ -128,7 +128,7 @@ Commercial Resources
|
|||
|
||||
[getstarted-with-powershell]: https://channel9.msdn.com/Series/GetStartedPowerShell3
|
||||
[why-learn-powershell]: https://blogs.technet.microsoft.com/heyscriptingguy/2014/10/18/weekend-scripter-why-learn-powershell/
|
||||
[basic-cookbooks]: https://msdn.microsoft.com/en-us/powershell/scripting/getting-started/basic-cookbooks
|
||||
[Using Windows PowerShell for Administration]: https://docs.microsoft.com/powershell/scripting/getting-started/fundamental/using-windows-powershell-for-administration?view=powershell-6
|
||||
[ebook-from-powershell.com]: http://powershell.com/cs/blogs/ebookv2/default.aspx
|
||||
[channel9-learn-powershell]: https://channel9.msdn.com/Search?term=powershell#ch9Search
|
||||
[powershell.com-learn-powershell]: http://powershell.com/cs/media/14/default.aspx
|
||||
|
|
|
@ -170,5 +170,5 @@ Now you know the basics of the PowerShell debugging from PowerShell command-line
|
|||
|
||||
More Reading
|
||||
=====
|
||||
- [about_Debuggers](https://technet.microsoft.com/en-us/library/hh847790.aspx)
|
||||
- [about_Debuggers](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_debuggers?view=powershell-6)
|
||||
- [PowerShell Debugging](https://blogs.technet.microsoft.com/heyscriptingguy/tag/debugging/)
|
||||
|
|
|
@ -296,14 +296,14 @@ Commercial Resources
|
|||
[ebooks-powershell.com]: http://powershell.com/cs/blogs/ebookv2/default.aspx
|
||||
[tutorial]: http://www.computerperformance.co.uk/powershell/index.htm
|
||||
[to-learn]:https://blogs.technet.microsoft.com/heyscriptingguy/2015/01/04/weekend-scripter-the-best-ways-to-learn-powershell/
|
||||
[ps-module]:https://msdn.microsoft.com/en-us/library/dd878324%28v=vs.85%29.aspx
|
||||
[ps-module]:https://msdn.microsoft.com/library/dd878324%28v=vs.85%29.aspx
|
||||
[create-ps-module]:http://www.tomsitpro.com/articles/powershell-modules,2-846.html
|
||||
[remoting]:https://channel9.msdn.com/Series/GetStartedPowerShell3/06
|
||||
[in-depth]: https://channel9.msdn.com/events/MMS/2012/SV-B406
|
||||
[remote-mgmt]:http://windowsitpro.com/powershell/powershell-basics-remote-management
|
||||
[remote-commands]:https://msdn.microsoft.com/en-us/powershell/scripting/core-powershell/running-remote-commands
|
||||
[remote-commands]:https://docs.microsoft.com/powershell/scripting/core-powershell/running-remote-commands?view=powershell-6
|
||||
[examples]:http://examples.oreilly.com/9780596528492/
|
||||
[examples-ps-module]:https://msdn.microsoft.com/en-us/library/dd878340%28v=vs.85%29.aspx
|
||||
[examples-ps-module]:https://msdn.microsoft.com/library/dd878340%28v=vs.85%29.aspx
|
||||
[writing-ps-module]:http://www.powershellmagazine.com/2014/03/18/writing-a-powershell-module-in-c-part-1-the-basics/
|
||||
[sample-code]:https://msdn.microsoft.com/en-us/library/ff602031%28v=vs.85%29.aspx
|
||||
[sample-code]:https://msdn.microsoft.com/library/ff602031%28v=vs.85%29.aspx
|
||||
[create-run-script]:./create-powershell-scripts.md
|
||||
|
|
|
@ -5,7 +5,7 @@ If you are working on Linux and macOS, you cannot use the PowerShell ISE because
|
|||
In this case, you can choose your favorite editor to write PowerShell scripts.
|
||||
Here we choose Visual Studio Code as a PowerShell editor.
|
||||
|
||||
You can use Visual Studio Code on Windows with PowerShell version 5 by using Windows 10 or by installing [Windows Management Framework 5.0 RTM](https://www.microsoft.com/en-us/download/details.aspx?id=50395) for down-level Windows OSs (e.g. Windows 8.1, etc.).
|
||||
You can use Visual Studio Code on Windows with PowerShell version 5 by using Windows 10 or by installing [Windows Management Framework 5.1 RTM](https://www.microsoft.com/download/details.aspx?id=54616) for down-level Windows OSs (e.g. Windows 8.1, etc.).
|
||||
|
||||
Before starting it, please make sure PowerShell exists on your system.
|
||||
By following the [Installing PowerShell](./README.md#installing-powershell) instructions you can install PowerShell and launch a PowerShell session.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## Security Vulnerabilities
|
||||
|
||||
If you believe that there is a security vulnerability in PowerShell Core,
|
||||
it **must** be reported to [secure@microsoft.com](https://technet.microsoft.com/en-us/security/ff852094.aspx) to allow for [Coordinated Vulnerability Disclosure](https://technet.microsoft.com/en-us/security/dn467923).
|
||||
it **must** be reported to [secure@microsoft.com](https://technet.microsoft.com/security/ff852094.aspx) to allow for [Coordinated Vulnerability Disclosure](https://technet.microsoft.com/security/dn467923).
|
||||
**Only** file an issue, if secure@microsoft.com has confirmed filing an issue is appropriate.
|
||||
|
||||
## Long-living issue labels
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
|
|||
{
|
||||
if (LanguagePrimitives.IsNull(o))
|
||||
{
|
||||
return "null"; // based on an example at http://msdn.microsoft.com/en-us/library/aa394054(VS.85).aspx
|
||||
return "null"; // based on an example at http://msdn.microsoft.com/library/aa394054(VS.85).aspx
|
||||
}
|
||||
|
||||
o = CimValueConverter.ConvertFromDotNetToCim(o);
|
||||
|
@ -95,9 +95,9 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
|
|||
{
|
||||
if ((bool)LanguagePrimitives.ConvertTo(o, typeof(bool), CultureInfo.InvariantCulture))
|
||||
{
|
||||
return "TRUE"; // based on http://msdn.microsoft.com/en-us/library/aa394054(VS.85).aspx
|
||||
return "TRUE"; // based on http://msdn.microsoft.com/library/aa394054(VS.85).aspx
|
||||
}
|
||||
return "FALSE"; // based on http://msdn.microsoft.com/en-us/library/aa394054(VS.85).aspx
|
||||
return "FALSE"; // based on http://msdn.microsoft.com/library/aa394054(VS.85).aspx
|
||||
}
|
||||
|
||||
throw CimValueConverter.GetInvalidCastException(
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace Microsoft.PowerShell.Commands
|
|||
#region "Parameters and PrivateData"
|
||||
|
||||
private const string DefaultParameterSet = "DefaultSet";
|
||||
private const int forcedReboot = 6; // see https://msdn.microsoft.com/en-us/library/aa394058(v=vs.85).aspx
|
||||
private const int forcedReboot = 6; // see https://msdn.microsoft.com/library/aa394058(v=vs.85).aspx
|
||||
|
||||
/// <summary>
|
||||
/// The authentication options for CIM_WSMan connection
|
||||
|
@ -348,7 +348,7 @@ $result
|
|||
private readonly ManualResetEventSlim _waitHandler = new ManualResetEventSlim(false);
|
||||
private readonly Dictionary<string, ComputerInfo> _computerInfos = new Dictionary<string, ComputerInfo>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
// CLR 4.0 Port note - use https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipglobalproperties.hostname(v=vs.110).aspx
|
||||
// CLR 4.0 Port note - use https://msdn.microsoft.com/library/system.net.networkinformation.ipglobalproperties.hostname(v=vs.110).aspx
|
||||
private readonly string _shortLocalMachineName = Dns.GetHostName();
|
||||
|
||||
// And for this, use PsUtils.GetHostname()
|
||||
|
@ -1106,7 +1106,7 @@ $result
|
|||
#region Private Members
|
||||
|
||||
private readonly CancellationTokenSource _cancel = new CancellationTokenSource();
|
||||
private const int forcedShutdown = 5; // See https://msdn.microsoft.com/en-us/library/aa394058(v=vs.85).aspx
|
||||
private const int forcedShutdown = 5; // See https://msdn.microsoft.com/library/aa394058(v=vs.85).aspx
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -626,7 +626,7 @@ namespace Microsoft.PowerShell.Commands
|
|||
/// <summary>
|
||||
/// Definition of SE_TIME_ZONE_NAME constant from Win32 API
|
||||
/// </summary>
|
||||
public const string SE_TIME_ZONE_NAME = "SeTimeZonePrivilege"; //http://msdn.microsoft.com/en-us/library/bb530716(VS.85).aspx
|
||||
public const string SE_TIME_ZONE_NAME = "SeTimeZonePrivilege"; //http://msdn.microsoft.com/library/bb530716(VS.85).aspx
|
||||
|
||||
/// <summary>
|
||||
/// PInvoke GetCurrentProcess API
|
||||
|
|
|
@ -672,7 +672,7 @@ namespace Microsoft.PowerShell.Commands
|
|||
{
|
||||
result = true;
|
||||
|
||||
// CLR 4.0 Port note - use https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipglobalproperties.hostname(v=vs.110).aspx
|
||||
// CLR 4.0 Port note - use https://msdn.microsoft.com/library/system.net.networkinformation.ipglobalproperties.hostname(v=vs.110).aspx
|
||||
string localName = System.Net.Dns.GetHostName();
|
||||
|
||||
// And for this, use PsUtils.GetHostname()
|
||||
|
|
|
@ -1294,7 +1294,7 @@ namespace Microsoft.PowerShell.Commands
|
|||
// Since GET is the default; POST only occurs when -Method POST is used.
|
||||
if (Method == WebRequestMethod.Post && IsRedirectToGet(response.StatusCode))
|
||||
{
|
||||
// See https://msdn.microsoft.com/en-us/library/system.net.httpstatuscode(v=vs.110).aspx
|
||||
// See https://msdn.microsoft.com/library/system.net.httpstatuscode(v=vs.110).aspx
|
||||
Method = WebRequestMethod.Get;
|
||||
}
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ namespace Microsoft.PowerShell
|
|||
|
||||
/// <summary>
|
||||
/// A set of bit flags that specify various aspects of mouse motion and button clicks.
|
||||
/// See (http://msdn.microsoft.com/en-us/library/ms646273(VS.85).aspx)
|
||||
/// See (http://msdn.microsoft.com/library/ms646273(VS.85).aspx)
|
||||
/// </summary>
|
||||
internal DWORD Flags;
|
||||
|
||||
|
|
|
@ -1473,7 +1473,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
// this is all originally from https://msdn.microsoft.com/en-us/library/ee706570%28v=vs.85%29.aspx
|
||||
// this is all originally from https://msdn.microsoft.com/library/ee706570%28v=vs.85%29.aspx
|
||||
|
||||
internal sealed class ConsoleHostRawUserInterface : PSHostRawUserInterface
|
||||
{
|
||||
|
|
|
@ -2777,7 +2777,7 @@
|
|||
</maps>
|
||||
<templates>
|
||||
<!--
|
||||
see http://msdn.microsoft.com/en-us/library/aa382747(VS.85).aspx
|
||||
see http://msdn.microsoft.com/library/aa382747(VS.85).aspx
|
||||
for definitions of different data types
|
||||
-->
|
||||
<template tid="T_CorrelationEvent">
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
|
|||
/// Translates a <see cref="WildcardPattern"/> into a like-operand for WQL.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Documentation on MSDN (http://msdn.microsoft.com/en-us/library/aa392263(VS.85).aspx) is
|
||||
/// Documentation on MSDN (http://msdn.microsoft.com/library/aa392263(VS.85).aspx) is
|
||||
/// 1) rather slim / incomplete
|
||||
/// 2) sometimes incorrect (i.e. says that '=' is used for character ranges, when it should have said '-')
|
||||
///
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace System.Management.Automation
|
|||
// LCID for en-US culture
|
||||
private const int LCID_DEFAULT = 0x0409;
|
||||
// The dispatch identifier for a parameter that receives the value of an assignment in a PROPERTYPUT.
|
||||
// See https://msdn.microsoft.com/en-us/library/windows/desktop/ms221242(v=vs.85).aspx for details.
|
||||
// See https://msdn.microsoft.com/library/windows/desktop/ms221242(v=vs.85).aspx for details.
|
||||
private const int DISPID_PROPERTYPUT = -3;
|
||||
// Alias of GUID_NULL. It's a GUID set to all zero
|
||||
private static readonly Guid s_IID_NULL = new Guid();
|
||||
|
@ -216,7 +216,7 @@ namespace System.Management.Automation
|
|||
catch (Exception innerException)
|
||||
{
|
||||
// When 'IDispatch.Invoke' returns error code, CLR will raise exception based on internal HR-to-Exception mapping.
|
||||
// Description of the return code can be found at https://msdn.microsoft.com/en-us/library/windows/desktop/ms221479(v=vs.85).aspx
|
||||
// Description of the return code can be found at https://msdn.microsoft.com/library/windows/desktop/ms221479(v=vs.85).aspx
|
||||
// According to CoreCLR team (yzha), the exception needs to be wrapped as an inner exception of TargetInvocationException.
|
||||
|
||||
string exceptionMsg = null;
|
||||
|
@ -415,4 +415,4 @@ namespace System.Management.Automation
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace System.Management.Automation
|
|||
|
||||
if ((funcdesc.wFuncFlags & 0x1) == 0x1)
|
||||
{
|
||||
// http://msdn.microsoft.com/en-us/library/ee488948.aspx
|
||||
// http://msdn.microsoft.com/library/ee488948.aspx
|
||||
// FUNCFLAGS -- FUNCFLAG_FRESTRICTED = 0x1:
|
||||
// Indicates that the function should not be accessible from macro languages.
|
||||
// This flag is intended for system-level functions or functions that type browsers should not display.
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace System.Management.Automation.ComInterop
|
|||
//
|
||||
// But: Arguments are stored in pDispParams->rgvarg in reverse order, so the first
|
||||
// parameter is the one with the highest index in the array
|
||||
// http://msdn.microsoft.com/en-us/library/aa912367.aspx
|
||||
// http://msdn.microsoft.com/library/aa912367.aspx
|
||||
argErr = ((uint)args.Length) - argErr - 2;
|
||||
|
||||
// One or more of the arguments could not be coerced.
|
||||
|
|
|
@ -1645,7 +1645,7 @@ else
|
|||
// O:NSG:BAD:P
|
||||
// epilogue string contains the ending (and optional) SACL components
|
||||
// S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
|
||||
// (https://msdn.microsoft.com/en-us/library/windows/desktop/aa379570(v=vs.85).aspx)
|
||||
// (https://msdn.microsoft.com/library/windows/desktop/aa379570(v=vs.85).aspx)
|
||||
string prologue;
|
||||
string epilogue;
|
||||
Collection<string> aces = ParseDACLACEs(sddl, out prologue, out epilogue);
|
||||
|
@ -1661,12 +1661,12 @@ else
|
|||
// We only manipulate ACEs that we create and we currently do not use the optional resource field,
|
||||
// so we always expect a beginning ACE with exactly 6 fields.
|
||||
// ace_type;ace_flags;rights;object_guid;inherit_object_guid;account_sid;(resource_attribute)
|
||||
// (https://msdn.microsoft.com/en-us/library/windows/desktop/aa374928(v=vs.85).aspx)
|
||||
// (https://msdn.microsoft.com/library/windows/desktop/aa374928(v=vs.85).aspx)
|
||||
//
|
||||
// Converted (Conditional) ACE has exactly 7 required fields. In addition the ACE type
|
||||
// is prepended with 'X' character.
|
||||
// AceType;AceFlags;Rights;ObjectGuid;InheritObjectGuid;AccountSid;(ConditionalExpression)
|
||||
// (https://msdn.microsoft.com/en-us/library/windows/desktop/dd981030(v=vs.85).aspx)
|
||||
// (https://msdn.microsoft.com/library/windows/desktop/dd981030(v=vs.85).aspx)
|
||||
//
|
||||
// e.g.
|
||||
// Beginning ACE: (A;;GA;;;BA)
|
||||
|
@ -1715,7 +1715,7 @@ else
|
|||
//
|
||||
// The format of the sddl is expected to be:
|
||||
// owner (O:), primary group (G:), DACL (D:), and SACL (S:).
|
||||
// (https://msdn.microsoft.com/en-us/library/windows/desktop/aa379570(v=vs.85).aspx)
|
||||
// (https://msdn.microsoft.com/library/windows/desktop/aa379570(v=vs.85).aspx)
|
||||
// e.g.
|
||||
// O:NSG:BAD:P(A;;GA;;;BA)(XA;;GA;;;RM)(XA;;GA;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
|
||||
// prologue = "O:NSG:BAD:P"
|
||||
|
@ -1787,7 +1787,7 @@ else
|
|||
// User ACE: (XA;;GA;;;S-1-5-21-2127438184-1604012920-1882527527;ConditionalPart)
|
||||
// ConditionalPart: ((Member_of {SID(2FA_GROUP_1)} || Member_of {SID(2FA_GROUP_2)}) && (Member_of {SID(TRUSTEDHOSTS_1)} || Member_of {TRUSTEDHOSTS_2}))
|
||||
// where: 2FA_GROUP_1, 2FA_GROUP_2, TRUSTEDHOSTS_1, TRUSTEDHOSTS_2 are resolved SIDs of the group names.
|
||||
// (https://msdn.microsoft.com/en-us/library/windows/desktop/dd981030(v=vs.85).aspx)
|
||||
// (https://msdn.microsoft.com/library/windows/desktop/dd981030(v=vs.85).aspx)
|
||||
internal static string CreateConditionalACEFromConfig(
|
||||
Hashtable configTable)
|
||||
{
|
||||
|
|
|
@ -326,7 +326,7 @@ namespace System.Management.Automation.Remoting
|
|||
|
||||
// Access mask constant taken from PipeSecurity access rights and is equivalent to
|
||||
// PipeAccessRights.FullControl.
|
||||
// See: https://msdn.microsoft.com/en-us/library/vstudio/bb348408(v=vs.100).aspx
|
||||
// See: https://msdn.microsoft.com/library/vstudio/bb348408(v=vs.100).aspx
|
||||
//
|
||||
private const int _pipeAccessMaskFullControl = 0x1f019f;
|
||||
|
||||
|
|
|
@ -796,7 +796,7 @@ namespace Microsoft.PowerShell.Commands
|
|||
{
|
||||
// "The Windows API has many functions that also have Unicode versions to permit
|
||||
// an extended-length path for a maximum total path length of 32,767 characters"
|
||||
// See http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath
|
||||
// See http://msdn.microsoft.com/library/aa365247.aspx#maxpath
|
||||
string errorMsg = StringUtil.Format(FileSystemProviderStrings.SubstitutePathTooLong, driveName);
|
||||
throw new InvalidOperationException(errorMsg);
|
||||
}
|
||||
|
|
|
@ -244,7 +244,7 @@ namespace System.Management.Automation.Security
|
|||
if (!error) { break; }
|
||||
|
||||
// Try again with the AppData\LocalLow\Temp path using known folder id:
|
||||
// https://msdn.microsoft.com/en-us/library/dd378457.aspx
|
||||
// https://msdn.microsoft.com/library/dd378457.aspx
|
||||
Guid AppDatalocalLowFolderId = new Guid("A520A1A4-1780-4FF6-BD18-167343C5AF16");
|
||||
tempPath = GetKnownFolderPath(AppDatalocalLowFolderId) + @"\Temp";
|
||||
} // end while loop
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace System.Management.Automation.Internal
|
|||
/// <summary>
|
||||
/// Performing EventSource initialization in the Static Constructor since this is thread safe.
|
||||
/// Static constructors are guaranteed to be run only once per application domain, before any instances of a class are created or any static members are accessed.
|
||||
/// https://msdn.microsoft.com/en-us/library/aa645612(VS.71).aspx
|
||||
/// https://docs.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/static-constructors
|
||||
/// </summary>
|
||||
static TelemetryWrapper()
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ namespace System.Management.Automation.Internal
|
|||
|
||||
/// <summary>
|
||||
/// TRACEMESSAGE is the Generic method to use to log messages using UTC [Universal Telemetry Client] in Windows Threshold
|
||||
/// TRACEMESSAGE calls into EventSource.Write dynamically - https://msdn.microsoft.com/en-us/library/dn823293(v=vs.110).aspx
|
||||
/// TRACEMESSAGE calls into EventSource.Write dynamically - https://msdn.microsoft.com/library/dn823293(v=vs.110).aspx
|
||||
/// </summary>
|
||||
|
||||
// EventSource data gets raised on the Client containing OS Environment information and supplied arguments as "data"
|
||||
|
|
|
@ -1207,7 +1207,7 @@ unsigned int ValidateDownlevelSetupHadClrWhenInstalled(
|
|||
if (lResult == ERROR_SUCCESS)
|
||||
{
|
||||
// If the data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, this size includes any terminating null character or characters
|
||||
// unless the data was stored without them - http://msdn.microsoft.com/en-us/library/ms724911(VS.85).aspx
|
||||
// unless the data was stored without them - http://msdn.microsoft.com/library/ms724911(VS.85).aspx
|
||||
NetFxV4IsInstalledKeyValue = new wchar_t[valueLengthInByte / sizeof(wchar_t)];
|
||||
if (NULL == NetFxV4IsInstalledKeyValue)
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Many of the tests below looking-up timezones by Name do not support localization.
|
||||
That is, the current tests use us english versions of StandardName and DaylightName for tests.
|
||||
|
||||
ref: https://msdn.microsoft.com/en-us/library/windows/desktop/ms725481.aspx
|
||||
ref: https://msdn.microsoft.com/library/windows/desktop/ms725481.aspx
|
||||
[snippet] Both StandardName and DaylightName are localized according to the current user default UI language.
|
||||
#>
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ function GetMultipartBody {
|
|||
<#
|
||||
Defines the list of redirect codes to test as well as the
|
||||
expected Method when the redirection is handled.
|
||||
See https://msdn.microsoft.com/en-us/library/windows/apps/system.net.httpstatuscode(v=vs.105).aspx
|
||||
See https://docs.microsoft.com/previous-versions/windows/apps/f92ssyy1(v=vs.105)
|
||||
for additonal details.
|
||||
#>
|
||||
$redirectTests = @(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Sample code from https://technet.microsoft.com/en-us/library/hh847854.aspx
|
||||
# Sample code from https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_script_internationalization?view=powershell-6&viewFallbackFrom=powershell-Microsoft.PowerShell.Core
|
||||
|
||||
$Day = DATA {
|
||||
# culture="en-US"
|
||||
|
|
|
@ -135,7 +135,7 @@ Function Start-HTTPListener {
|
|||
$statusCode = $queryItems["statuscode"]
|
||||
$contentType = $queryItems["contenttype"]
|
||||
$output = $queryItems["output"]
|
||||
|
||||
|
||||
# Pass a JSON collection to the 'headers' field
|
||||
# /PowerShell?test=response&headers={"Pragma":"no-cache","X-Fake-Header":["testvalue01","testvalue02"]}
|
||||
# In PowerShell:
|
||||
|
@ -173,7 +173,7 @@ Function Start-HTTPListener {
|
|||
|
||||
Example: test=redirectex&type=Moved&multiredirect=true
|
||||
|
||||
See also https://msdn.microsoft.com/en-us/library/system.net.httpstatuscode(v=vs.110).aspx
|
||||
See also https://docs.microsoft.com/dotnet/api/system.net.httpstatuscode?view=netcore-2.1
|
||||
#>
|
||||
"redirect"
|
||||
{
|
||||
|
|
|
@ -240,7 +240,7 @@ class EventMessage
|
|||
The message string to update.
|
||||
|
||||
.NOTES
|
||||
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx.
|
||||
See https://msdn.microsoft.com/library/windows/desktop/ms679351(v=vs.85).aspx.
|
||||
Replaceable parameters are limited to %1 ... %99. Width and precision specifiers are
|
||||
not currently supported since the manifest does not use them at the time of this writing.
|
||||
#>
|
||||
|
|
|
@ -114,7 +114,7 @@ function Set-DailyBuildBadge
|
|||
}
|
||||
|
||||
$contentType = "image/svg+xml"
|
||||
# more info: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/put-blob
|
||||
# more info: https://docs.microsoft.com/rest/api/storageservices/fileservices/put-blob
|
||||
$sb = [text.stringbuilder]::new()
|
||||
# can't use AppendLine because the `r`n causes the command to fail, it must be `n and only `n
|
||||
$null = $sb.Append("$method`n")
|
||||
|
|
Loading…
Reference in a new issue