Title: New-Item -ItemType SymbolicLink folder cannot be opened · Issue #2915 · PowerShell/PowerShell · GitHub
Open Graph Title: New-Item -ItemType SymbolicLink folder cannot be opened · Issue #2915 · PowerShell/PowerShell
X Title: New-Item -ItemType SymbolicLink folder cannot be opened · Issue #2915 · PowerShell/PowerShell
Description: Use the lastest PowerShell to create a symbolic link folder: New-Item -ItemType Directory .\a New-Item .\a\t.txt -Value "hello" New-Item -ItemType SymbolicLink -Name .\d -Value .\a # The Mode property is empty in the result of above cmdl...
Open Graph Description: Use the lastest PowerShell to create a symbolic link folder: New-Item -ItemType Directory .\a New-Item .\a\t.txt -Value "hello" New-Item -ItemType SymbolicLink -Name .\d -Value .\a # The Mode prope...
X Description: Use the lastest PowerShell to create a symbolic link folder: New-Item -ItemType Directory .\a New-Item .\a\t.txt -Value "hello" New-Item -ItemType SymbolicLink -Name .\d -Value .\a # The ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2915
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New-Item -ItemType SymbolicLink folder cannot be opened","articleBody":" Use the lastest PowerShell to create a symbolic link folder:\r\n\r\n```powershell\r\nNew-Item -ItemType Directory .\\a\r\nNew-Item .\\a\\t.txt -Value \"hello\"\r\nNew-Item -ItemType SymbolicLink -Name .\\d -Value .\\a\r\n# The Mode property is empty in the result of above cmdlet\r\nGet-ItemPropertyValue .\\d -Name Mode\r\n# Get-ItemPropertyValue : Exception getting \"Mode\": \"句柄无效。\"\r\n# My OS language is Chinese, \"句柄无效\" means \"invalid handler\"\r\n```\r\n\r\nThe big problem is that the symbolic link `d` created above can't be opened. When using the system default PowerShell(PowerShell 5.1, My OS is Windows 10 x64) to create a symbolic link folder, it works well. Another question, now use the lastest PowerShell to remove the symbolic link that is created by the system default PowerShell \r\n\r\n```powershell\r\n> Remove-Item .\\d -Recurse\r\n# Remove-Item : F:\\test\\test-powershell\\Symlink\\d is an NTFS junction point. Use the Force parameter to delete or modify this object.\r\n```\r\n\r\nIt says \"d is an NTFS junction point\", well, `d` is a symbolic link,isn't it?\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName Value\r\n---- -----\r\nSerializationVersion 1.1.0.1\r\nBuildVersion 3.0.0.0\r\nWSManStackVersion 3.0\r\nGitCommitId v6.0.0-alpha.14\r\nPSEdition Core\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nCLRVersion\r\nPSRemotingProtocolVersion 2.3\r\nPSVersion 6.0.0-alpha\r\n```\r\n\r\n","author":{"url":"https://github.com/yanxyz","@type":"Person","name":"yanxyz"},"datePublished":"2016-12-21T11:42:56Z","url":"https://github.com/PowerShell/PowerShell/issues/2915"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1902bd49-7db4-3a12-f5c6-17c9807e7266 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C658:1665BD:AFB63:F2D5D:6AFD5ADB |
| html-safe-nonce | ff7cb2e1528221542f28d114129ddaff9657f585164768d3112c6ae60cca00ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjU4OjE2NjVCRDpBRkI2MzpGMkQ1RDo2QUZENUFEQiIsInZpc2l0b3JfaWQiOiI2MDA3MjE4MzE3NDM1OTUxODM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0f7ed54091b3376e446781c0b4db295cac743dda786b3d503bfe9bf9211e95ac |
| hovercard-subject-tag | issue:196912458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2915/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c43af17ff01e9cbe847a1ee63cf7dd79640388f60e174b4d2cb619e444234fed/PowerShell/PowerShell/issues/2915 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c43af17ff01e9cbe847a1ee63cf7dd79640388f60e174b4d2cb619e444234fed/PowerShell/PowerShell/issues/2915 |
| og:image:alt | Use the lastest PowerShell to create a symbolic link folder: New-Item -ItemType Directory .\a New-Item .\a\t.txt -Value "hello" New-Item -ItemType SymbolicLink -Name .\d -Value .\a # The Mode prope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yanxyz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width