If you want to mount a folder a drive in Windows 11, here is what you need to do. Whether you want to add a single folder or multiple folders as a drive, you can use either of the methods listed below ...
function getstaffdirectoryraw { #download staff directory from sharepoint by mapping a drive temporarily net use $tempdrive $staffdirectorysharepointroot Start-Sleep ...