Back to Blog
New-SmbMapping -LocalPath $MappedDrive.LocalPath -RemotePath $MappedDrive.RemotePath -Persistent $True $MappedDrives = Get-SmbMapping |where -property Status -Value Unavailable -EQ | select LocalPath,RemotePath The file should be run at a regular but not at an elevated command prompt because it should be run at the same privilege as Windows Explorer: $i=3 ![]() PowerShell -File "%SystemDrive%\Scripts\MapDrives.ps1" > "%TEMP%\StartupLog.txt" 2>
0 Comments
Read More
Leave a Reply. |