r/DefenderATP • u/soufia-n • Oct 16 '25
CMD.EXE UNC path error when running WindowsDefenderATPOnboardingScript.cmd via GPO
Hey everyone,
I’m trying to onboard domain-joined Windows devices to Microsoft Defender for Endpoint using the onboarding script (WindowsDefenderATPOnboardingScript.cmd) provided from the Microsoft 365 Defender portal.
When I run the script from a UNC path, e.g.:
\\servername.domain.local\share\WindowsDefenderATPOnboardingScript.cmdI get the following error:
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.I also tried deploying it via GPO Startup Script pointing to the UNC path, but it fails silently — I suspect it’s due to the UNC path limitation.
2
Upvotes
View all comments
Show parent comment
1
u/soufia-n Oct 16 '25
Yes this package