映射网络驱动器

#创建

$pw = ConvertTo-SecureString '$tata123' -AsPlainText -Force

$Creds = New-Object -Typename System.Management.Automation.PSCredential -Argumentlist 'softdump\ultraman', $pw New-PSDrive -Name P -PSProvider FileSystem -Root '\\3.242.164.147\SOE' -Credential $Creds -Persist #移除 Remove-PSDrive -Name P

你可能感兴趣的:(网络)