René's URL Explorer Experiment


Title: Warning on First Use of Export-Configuration · Issue #48 · PoshCode/Configuration · GitHub

Open Graph Title: Warning on First Use of Export-Configuration · Issue #48 · PoshCode/Configuration

X Title: Warning on First Use of Export-Configuration · Issue #48 · PoshCode/Configuration

Description: The first time Export-Configuration is used, it generates a warning message: WARNING: The Enterprise path C:\Users\\AppData\Roaming\powershell cannot be found ...and it cannot be suppressed with any of the usual methods: $calle...

Open Graph Description: The first time Export-Configuration is used, it generates a warning message: WARNING: The Enterprise path C:\Users\\AppData\Roaming\powershell cannot be found ...and it cannot be suppress...

X Description: The first time Export-Configuration is used, it generates a warning message: WARNING: The Enterprise path C:\Users\<username>\AppData\Roaming\powershell cannot be found ...and it cannot be su...

Opengraph URL: https://github.com/PoshCode/Configuration/issues/48

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warning on First Use of Export-Configuration","articleBody":"The first time Export-Configuration is used, it generates a warning message:\r\n\r\n`WARNING: The Enterprise path C:\\Users\\\u003cusername\u003e\\AppData\\Roaming\\powershell cannot be found`\r\n\r\n...and it cannot be suppressed with any of the usual methods:\r\n\r\n    $callerWarningPreference = $WarningPreference\r\n    $WarningPreference = 'SilentlyContinue'\r\n    \r\n    $new | Export-Configuration -WarningAction Ignore\r\n    \r\n    $WarningPreference = $callerWarningPreference\r\n\r\nI'm trying to present a clean experience to users and this error message is a bit cryptic and not at all helpful: Export-Configuration creates the path and writes the file without issue. Surely this message is better suited to the Verbose stream? Searching the source, it appears to be coming from [Get-ConfigurationPath](https://github.com/PoshCode/Configuration/blob/b9c46d552371ad86bc9b896f92f8a7c88051fb11/Source/Public/Get-ConfigurationPath.ps1#L83) and the flags to suppress warning aren't being pushed down into its scope.\r\n\r\nI suppose I could call Get-ConfigurationPath myself first--suppressing the warning there--but I think the issue still deserves attention in either the code or the documentation.","author":{"url":"https://github.com/aproposts","@type":"Person","name":"aproposts"},"datePublished":"2022-08-07T12:51:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/48/Configuration/issues/48"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d78d8e03-6917-7b30-e36d-d0b45aef0c44
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA614:392487:32F3B27:46C5853:6977C7BC
html-safe-nonce4f2968d9a16eb0c9c4e601a18dc97fcf342a08c0694a96c5a5a07f96dba643df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjE0OjM5MjQ4NzozMkYzQjI3OjQ2QzU4NTM6Njk3N0M3QkMiLCJ2aXNpdG9yX2lkIjoiMjg0MDY3NTIwOTM4MTkyMjc0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae0d26e7fa4270db98b5b92192586f91bf091429bcbb90f4ef27d1529b1699e6
hovercard-subject-tagissue:1331007863
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/PoshCode/Configuration/48/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2aa1073c045c5099cb9c4305c7183740130c868f1c66df620acf52497b7e0b73/PoshCode/Configuration/issues/48
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2aa1073c045c5099cb9c4305c7183740130c868f1c66df620acf52497b7e0b73/PoshCode/Configuration/issues/48
og:image:altThe first time Export-Configuration is used, it generates a warning message: WARNING: The Enterprise path C:\Users\\AppData\Roaming\powershell cannot be found ...and it cannot be suppress...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaproposts
hostnamegithub.com
expected-hostnamegithub.com
None173f8c2eae2e017de550dd28a9ea88ad5c1e52c70df7ea05bcd820330b3b2fec
turbo-cache-controlno-preview
go-importgithub.com/PoshCode/Configuration git https://github.com/PoshCode/Configuration.git
octolytics-dimension-user_id5641451
octolytics-dimension-user_loginPoshCode
octolytics-dimension-repository_id22584579
octolytics-dimension-repository_nwoPoshCode/Configuration
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22584579
octolytics-dimension-repository_network_root_nwoPoshCode/Configuration
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
release7b19554cad55a536fac18eeedb416dd87c37b1f5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/PoshCode/Configuration/issues/48#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPoshCode%2FConfiguration%2Fissues%2F48
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%2FPoshCode%2FConfiguration%2Fissues%2F48
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=PoshCode%2FConfiguration
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/Configuration/issues/48
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/Configuration/issues/48
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/Configuration/issues/48
PoshCode https://patch-diff.githubusercontent.com/PoshCode
Configurationhttps://patch-diff.githubusercontent.com/PoshCode/Configuration
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FConfiguration
Fork 28 https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FConfiguration
Star 188 https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FConfiguration
Code https://patch-diff.githubusercontent.com/PoshCode/Configuration
Issues 7 https://patch-diff.githubusercontent.com/PoshCode/Configuration/issues
Pull requests 1 https://patch-diff.githubusercontent.com/PoshCode/Configuration/pulls
Actions https://patch-diff.githubusercontent.com/PoshCode/Configuration/actions
Projects 0 https://patch-diff.githubusercontent.com/PoshCode/Configuration/projects
Wiki https://patch-diff.githubusercontent.com/PoshCode/Configuration/wiki
Security 0 https://patch-diff.githubusercontent.com/PoshCode/Configuration/security
Insights https://patch-diff.githubusercontent.com/PoshCode/Configuration/pulse
Code https://patch-diff.githubusercontent.com/PoshCode/Configuration
Issues https://patch-diff.githubusercontent.com/PoshCode/Configuration/issues
Pull requests https://patch-diff.githubusercontent.com/PoshCode/Configuration/pulls
Actions https://patch-diff.githubusercontent.com/PoshCode/Configuration/actions
Projects https://patch-diff.githubusercontent.com/PoshCode/Configuration/projects
Wiki https://patch-diff.githubusercontent.com/PoshCode/Configuration/wiki
Security https://patch-diff.githubusercontent.com/PoshCode/Configuration/security
Insights https://patch-diff.githubusercontent.com/PoshCode/Configuration/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PoshCode/Configuration/issues/48
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PoshCode/Configuration/issues/48
Warning on First Use of Export-Configurationhttps://patch-diff.githubusercontent.com/PoshCode/Configuration/issues/48#top
https://patch-diff.githubusercontent.com/Jaykul
enhancementhttps://github.com/PoshCode/Configuration/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/aproposts
https://github.com/aproposts
apropostshttps://github.com/aproposts
on Aug 7, 2022https://github.com/PoshCode/Configuration/issues/48#issue-1331007863
Get-ConfigurationPathhttps://github.com/PoshCode/Configuration/blob/b9c46d552371ad86bc9b896f92f8a7c88051fb11/Source/Public/Get-ConfigurationPath.ps1#L83
Jaykulhttps://patch-diff.githubusercontent.com/Jaykul
enhancementhttps://github.com/PoshCode/Configuration/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.