![]() New-SmbMapping - Create a mapping to an SMB share. ![]() Wilhelmina Slater: We're not even meeting now” ~ Ugly Betty, 2006 TV series Related PowerShell Cmdlets Remove the SMB mapping for X: PS C:\> Remove-SmbMapping X: -force Remove all SMB mappings: PS C:\> Remove-SmbMapping If you remove a drive mapping for the current directory, the command will succeed but the directory will no longer be valid, so subsequent commands like get-childitem may fail. Show what would happen if the cmdlet was run. Prompt for confirmation before running the cmdlet. If the drive mapping is currently persistent, it will no longer be re-established when the computer restarts. Only to the current cmdlet, not to the session or to the computer. If this parameter is omitted or a value of 0 is entered, then PowerShell will calculate an optimum throttle limitįor the cmdlet based on the number of CIM cmdlets that are running on the computer. The maximum number of concurrent operations that can be established to run the cmdlet. Return an object representing the item with which you are working.īy default, this cmdlet does not generate any output.Īn array of the remote paths of the SMB shares associated with the mappings that this cmdlet removes. The default is the current session on the local computer.įorce the command to run without asking for user confirmation.Īn array of the local paths associated with the SMB mappings to remove. Run the cmdlet in a remote session or on a remote computer.Įnter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. Remove the drives mapped to an SMB share.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |