• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / System Administration / DFS PowerShell cmdlet leaves a .DFSFolderLink entry

DFS PowerShell cmdlet leaves a .DFSFolderLink entry

2016-11-16 by Jason

When populating your Distributed File System (DFS) namespace using PowerShell, you might notice a tiny quirk as I did. A .DFSFolderLink file gets left behind when using PowerShell. Using the GUI for DFS Management, this file gets deleted when a folder is created at that same level.

dfsfolderlink-shortcut

You can see the file in the image above. The other folder targets work fine (and have names that I’ve whited out) and that shortcut just links back to the current directory.

Using PowerShell, you create the DFS folder easily enough:

New-DfsnFolder -Path $path -TargetPath $targetpath

However, the .DFSFolderLink at the level is left behind. If you were to do the same thing in the GUI, the .DFSFolderLink is deleted. So, that’s the trick for resolution too. Create your structure with PowerShell but when you’re done open the GUI and create a new folder any place that there is a .DFSFolderLink and the file will be cleaned up. You can then delete your test folder and the .DFSFolderLink file does not return.

dfsmgmt_newfolder

Another trick I found with the DFS PowerShell cmdlets was that you could not create a folder with just other folders in it as you could in the GUI. Every folder has to have a target path. If you need/want the extra level of folders for navigation but still want the sub-folders to be folder targets so the files can reside on different servers, you will have to use the GUI to create the new folders. This was observed with Server 2012 R2.

Filed Under: System Administration Tagged With: dfs, powershell, windows server

Trending

  • Giveaway! AmpliFi joins the dark side with new black AmpliFi HD Mesh router
    In Hardware, Gadgets, and Products
  • Skype Installs Unwanted Add-on Software With Weekend Update
    In News, Software, Tech Solutions
  • Wirelessly Hijacking What’s Typed Into a Keyboard
    In Hardware, Gadgets, and Products, Security and Privacy

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in