To change the execution policy to run PowerShell scripts on Windows 11 (or 10), use these steps: Open Start. Search for ...
function getstaffdirectoryraw { #download staff directory from sharepoint by mapping a drive temporarily net use $tempdrive $staffdirectorysharepointroot Start-Sleep ...