René's URL Explorer Experiment


Title: PSAvoidOverwritingBuiltInCmdlets (core-6.1.0-*) returns warning for Write-Log, which is not a built-in cmdlet · Issue #2146 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: PSAvoidOverwritingBuiltInCmdlets (core-6.1.0-*) returns warning for Write-Log, which is not a built-in cmdlet · Issue #2146 · PowerShell/PSScriptAnalyzer

X Title: PSAvoidOverwritingBuiltInCmdlets (core-6.1.0-*) returns warning for Write-Log, which is not a built-in cmdlet · Issue #2146 · PowerShell/PSScriptAnalyzer

Description: Before submitting a bug report: Make sure you are able to repro it on the latest released version Perform a quick search for existing issues to check if this bug has already been reported Steps to reproduce Create a file called Write-Log...

Open Graph Description: Before submitting a bug report: Make sure you are able to repro it on the latest released version Perform a quick search for existing issues to check if this bug has already been reported Steps to ...

X Description: Before submitting a bug report: Make sure you are able to repro it on the latest released version Perform a quick search for existing issues to check if this bug has already been reported Steps to ...

Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2146

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSAvoidOverwritingBuiltInCmdlets (core-6.1.0-*) returns warning for Write-Log, which is not a built-in cmdlet","articleBody":"Before submitting a bug report:\n\n- [X] Make sure you are able to repro it on the latest released version\n- [X] Perform a quick search for existing issues to check if this bug has already been reported\n\nSteps to reproduce\n------------------\n\nCreate a file called `Write-Log.psm1` in your home directory and populate it with an empty function called `Write-Log`:\n\n```PowerShell\nfunction Write-Log {\n}\n```\n\nInstall and run PSScriptAnalyzer against the file:\n\n```PowerShell\n\u003e Install-Module PSScriptAnalyzer\n\n\u003e Invoke-ScriptAnalyzer -Path ~\\Write-Log.psm1\n```\n\nExpected behavior\n-----------------\n\nPSScriptAnalyzer returns no findings because Write-Log is not a built-in cmdlet.\n\nActual behavior\n---------------\n\n```PowerShell\nRuleName                         Severity ScriptName     Line Message\n--------                         -------- ----------     ---- -------\nPSAvoidOverwritingBuiltInCmdlets Warning  Write-Log.psm1 1    'Write-Log' is a cmdlet that is included with PowerShell (version core-6.1.0-windows) whose definition should not be overridden\n```\n\nThis behaviour should be reproducible cross-platform.\n\nTroubleshooting\n---------------\n\nWrite-Log was never shipped with any version of PowerShell, but it is erroneously defined as a built-in cmdlet:\n\nhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-linux-arm.json#L1391-L1395\n\nhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-linux.json#L1391-L1395\n\nhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-macos.json#L1391-L1395\n\nhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-windows.json#L1692-L1696\n\nProbable cause is described in https://github.com/PowerShell/PowerShell/issues/7209 as an upstream issue in PSDesiredStateConfiguration that was reportedly fixed in 2020. However, the PSScriptAnalyzer files affected by that issue were never rebuilt afterwards.\n\nThe module that may have caused this problem at the time is https://github.com/microsoft/PowerShellForGitHub, which defines `Write-Log` and then suppresses PSScriptAnalyzer reports in [Helper.ps1#L128](https://github.com/microsoft/PowerShellForGitHub/blob/fd4fa65f23ca30f18f85312a85348e660c287a9c/Helpers.ps1#L128). The PR to suppress that finding is recorded in https://github.com/microsoft/PowerShellForGitHub/pull/180. If this module was present in the build environment, then PSScriptAnalyzer would have added `Write-Log` and possibly other cmdlets to the list of built-in cmdlets even though they do not ship with PowerShell.\n\nAs a result, default installations of PSScriptAnalyzer return a false warning for PSAvoidOverwritingBuiltInCmdlets against cmdlets named `Write-Log`.\n\nIt is possible that there may be other cmdlets erroneously included in these files for the same reason.\n\nEnvironment data\n----------------\n\n```PowerShell\n\u003e $PSVersionTable\n\nName                           Value\n----                           -----\nPSVersion                      7.5.4\nPSEdition                      Core\nGitCommitId                    7.5.4\nOS                             Microsoft Windows 10.0.22631\nPlatform                       Win32NT\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\nWSManStackVersion              3.0\n\n\u003e (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }\n\n1.24.0\n```\n","author":{"url":"https://github.com/dbensmith","@type":"Person","name":"dbensmith"},"datePublished":"2025-12-05T01:27:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2146/PSScriptAnalyzer/issues/2146"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2a4846f-d25d-12da-fbdb-bce114c7cb8a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA456:360CD8:17B85AD:201D523:696EACCF
html-safe-nonce4871be49e4261b851400667ba64633936c9173851ea37cc625d6154308441c2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDU2OjM2MENEODoxN0I4NUFEOjIwMUQ1MjM6Njk2RUFDQ0YiLCJ2aXNpdG9yX2lkIjoiNTg3MzMwOTU4NjUzNjk2NzM3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac43055441afe4306e255ce070f5665693a9eb9c94c59ae1ee4bc98f7fca6db236
hovercard-subject-tagissue:3697151243
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/2146/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3ba9840f0cf1207fbe09fda51965e0f33048b9aaa7a5e37d7919a027dc3b64ac/PowerShell/PSScriptAnalyzer/issues/2146
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3ba9840f0cf1207fbe09fda51965e0f33048b9aaa7a5e37d7919a027dc3b64ac/PowerShell/PSScriptAnalyzer/issues/2146
og:image:altBefore submitting a bug report: Make sure you are able to repro it on the latest released version Perform a quick search for existing issues to check if this bug has already been reported Steps to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedbensmith
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F2146
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F2146
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146
Reloadhttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146
Reloadhttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146
PowerShell https://patch-diff.githubusercontent.com/PowerShell
PSScriptAnalyzerhttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Fork 407 https://patch-diff.githubusercontent.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Star 2.1k https://patch-diff.githubusercontent.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Code https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer
Issues 394 https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues
Pull requests 17 https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/pulls
Discussions https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/discussions
Actions https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/actions
Projects 0 https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/projects
Wiki https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/security
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146
Insights https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/pulse
Code https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer
Issues https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues
Pull requests https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/pulls
Discussions https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/discussions
Actions https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/actions
Projects https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/projects
Wiki https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/wiki
Security https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/security
Insights https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2146
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/2146
PSAvoidOverwritingBuiltInCmdlets (core-6.1.0-*) returns warning for Write-Log, which is not a built-in cmdlethttps://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/issues/2146#top
https://github.com/dbensmith
https://github.com/dbensmith
dbensmithhttps://github.com/dbensmith
on Dec 5, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/2146#issue-3697151243
PSScriptAnalyzer/Engine/Settings/core-6.1.0-linux-arm.jsonhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-linux-arm.json#L1391-L1395
e280479https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/commit/e2804796f43eab60f5d105f6bbaea83fb446a13d
PSScriptAnalyzer/Engine/Settings/core-6.1.0-linux.jsonhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-linux.json#L1391-L1395
e280479https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/commit/e2804796f43eab60f5d105f6bbaea83fb446a13d
PSScriptAnalyzer/Engine/Settings/core-6.1.0-macos.jsonhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-macos.json#L1391-L1395
e280479https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/commit/e2804796f43eab60f5d105f6bbaea83fb446a13d
PSScriptAnalyzer/Engine/Settings/core-6.1.0-windows.jsonhttps://github.com/PowerShell/PSScriptAnalyzer/blob/e2804796f43eab60f5d105f6bbaea83fb446a13d/Engine/Settings/core-6.1.0-windows.json#L1692-L1696
e280479https://patch-diff.githubusercontent.com/PowerShell/PSScriptAnalyzer/commit/e2804796f43eab60f5d105f6bbaea83fb446a13d
PowerShell/PowerShell#7209https://github.com/PowerShell/PowerShell/issues/7209
https://github.com/microsoft/PowerShellForGitHubhttps://github.com/microsoft/PowerShellForGitHub
Helper.ps1#L128https://github.com/microsoft/PowerShellForGitHub/blob/fd4fa65f23ca30f18f85312a85348e660c287a9c/Helpers.ps1#L128
microsoft/PowerShellForGitHub#180https://github.com/microsoft/PowerShellForGitHub/pull/180
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.