def net_use(self, drive, share, user=None, domainname=None, password=None):
        cmd = "net use %s: %s %s" % (drive[0].upper(), share, IF(password, password, ""))
        if user:
            cmd += " /USER:%s%s" % (IF(domainname, "%s\\"%domainname, ""), user)
        return self.pipe(cmd)
Map a drive on a Windows client using the *net* command.
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/WindowsServer.py/Win32Agent.net_use