我一直在寻找一个简短的代码来执行此操作一段时间,最后自己弄清楚了。我想我会分享它。
$FQDN = "madeup.name.domain.co.in"
我需要的结果是name.domain.co.in
name.domain.co.in
powershell
powershell ×1