79128793

Date: 2024-10-26 14:57:06
Score: 2
Natty:
Report link

Posting because someone else will likely end up here looking for help trying to create a SymbolicLink with PowerShell in combination with CimFS volumes or similar with funky 🕺 characters

The PowerShell command New-Item -Type SymbolicLink can not handle a path with a "?". You need to escape the "?" for the command to work correctly.

Example, note the backtick before the "?", apparently called a grave 🪦 as well - learnt something new.

New-Item -Type SymbolicLink -Path "C:\temp\ThisIsTheSymbolicLink" -Target '\\`?\Volume{5dc22e05-95f4-4993-9591-c0e187b0356d}\'
Reasons:
  • Blacklisted phrase (1): looking for help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: rileyz