Powershell 在副本上创建一个方形字符

问题描述 投票:0回答:0

使用 PowerShell 脚本将内容复制到文件时添加方块字符:

$PSscript = @"
New-PSDrive -Name $driveLetter -Root $drivePath -Persist -PSProvider "FileSystem" -Scope Global
"@
# Add code to the script
Set-Content -Path "$scriptPath\$scriptName" -Value $PSscript -Encoding UTF8 

尝试添加内容、设置内容、>、Out-File - 同样的问题

powershell powershell-remoting
© www.soinside.com 2019 - 2024. All rights reserved.