CmdID / PowerShell / Cmdlets / Remove
Remove-SmbMapping
Removes the SMB mapping to an SMB share. Windows Server PowerShell reference
From the Windows Server PowerShell reference 12 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-ForceForces the command to run without asking for user confirmation.-GlobalMappingRemoves an SMB global mapping to an SMB share.-InputObjectSpecifies the input object that's used in a pipeline command.-LocalPathSpecifies an array of the local paths associated with the SMB mappings that this cmdlet removes.-PassThruReturns an object representing the item with which you're working.-RemotePathSpecifies an array of the remote paths of the SMB shares associated with the mappings that this cmdlet removes.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-UpdateProfileIndicates that the mapping is removed persistently.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.