Storage
-
new-smbmapping: finally fix the bug so that Windows Explorer recognizes the new drives without kill & restart
Good evening
Since years(!), it's well known that if we map SMB Shares using the New-SmbMapping command,
then the Windows Explorer does not recognize the new Drives: we have to kill and restart explorer.exe.
Well, we can be happy that we do not have to reboot...We can not believe that this bug was never fixed and that we have to raise our user voice to solicitation so that such annoying bugs get finally fixed.
Of course, we could use the New-PSDrive command.
Unfortunately, this command is even worse: it does not validate if the credentials are valid nor if…20 votes -
Bug: $ErrorActionPreference ignored by New-SmbShare
Setting $ErrorActionPreference to Stop is ignored by New-SmbShare (and possibly other CIM wrapped functions) in specific use cases:
- Run within Windows ISE: No problem
- Invoked using powershell.exe -File argument: No problem
- Called with explicit -ErrorAction Stop: No problem
- Run within PowerShell Prompt (dot-sourced): $ErrorActionPreference is ignored
- Invoked using powershell.exe -Command argument: $ErrorActionPreference is ignored
This can be tested with the following script (test.ps1):
$ErrorActionPreference = "Stop"
New-SmbShare -Name "Test" -Path "C:\NonExistingPath"
Write-Host "Should not be reached"The following call shows the error "The system cannot find the file specified", but also shows "Should never be reached", which is incorrect:
powershell.exe…1 vote -
Boot from SMB
Booting from non-local storage provides a method to quickly replace a failed server without the need to rebuild the operating system. This practice is common where a SAN is available in order to boot from FCoE, FC, or iSCSI. Would like to see the same capability using SMB.
20 votes
- Don't see your idea?