I have a Powershell script that requires Admin elevation to setup an Azure file share among other things. The final script command uses
New-PSDrive to map the file share to a drive letter. My expectation is that the new drive letter be accessible from Windows Explorer. I'm aware that using
New-PSDrive from an elevated context only maps the drive in that context so it's not available to my user account.
How do I execute a Powershell script/process as the current user from an elevated script?