CmdID / PowerShell / Cmdlets / New
New-SmbMapping
Creates an SMB mapping. Windows Server PowerShell reference
From the Windows Server PowerShell reference 24 parameters Its page in the reference
Parameters
Show its 24 parameters
-AsJobRuns the cmdlet as a background job.-BlockNTLMSpecifies whether to block NT LAN Manager (NTLM) authentication.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-CompressNetworkTrafficIndicates that SMB compression is requested for the mapped drive if the SMB server supports it.-CredentialSpecifies a user account that has permission to perform a specific task, such as running a script or accessing a remote computer.-GlobalMappingIndicates that the SMB mapping is global instead of user-specific and is equivalent to using New-SmbGlobalMapping without any explicit allow or deny settings.-HomeFolderIndicates that the connection is made to the home folder of the user.-LocalPathSpecifies the local path to which the remote path is mapped.-PasswordSpecifies the password to be used to connect to the SMB share.-PersistentIndicates that this connection is persistent.-QuicPortSpecifies the destination port number used by the SMB server for QUIC protocol connections.-RdmaPortSpecifies the destination port number used by the SMB server for Remote Direct Memory Access (RDMA) protocol connections.-RemotePathSpecifies the remote path that's accessed from this computer.-RequireIntegrityIndicates that SMB signing is required for the mapped drive.-RequirePrivacyIndicates that SMB encryption is required for the mapped drive.-SaveCredentialsIndicates that the credentials provided should be saved for when a mapping to the same SMB server also is created.-SkipCertificateCheckIndicates that the client doesn't need to trust the server certificate's issuer in order to connect using SMB over QUIC.-TcpPortSpecifies the destination port number used by the SMB server for Transmission Control Protocol (TCP) connections.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-TransportTypeSpecifies the network transport used by SMB.-UserNameSpecifies the user name to use to connect to the SMB share.-UseWriteThroughIndicates that forced unit access (write through) is required and bypasses all OS caches, forcing IO to disk.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.