How to Access a Active Directory Network Share on a Non-Domain Joined PC

Sometimes you need to access a network share that requires an active directory authentication, but, you’re on a PC that’s not part of the domain. Saving the script below as a .bat file and replacing the parts that say “Server” with the actual name or IP of your server will allow your PC to access any network share with active directory credentials. Mostly, this is useful when you only need temporary access to a share, but don’t want to go through the whole network share mounting process.

(more…)