ネットワークドライブからPowerShellスクリプトを実行したいと思います。このスクリプトは、ローカルコンピュータの名前を変更し、再起動後にドメインに参加する必要があります。 残念ながら、このスクリプトを実行しようとすると何も起こりませんでした。リブートによるPowershellワークフロー
私はこのようにそれをやっている:
\\networkdrive\reboot-and-join.ps1 MNBC123 domain.intern
スクリプト:
workflow rename-add-to-domain
{
param ([string]$newcomputername,$domainname)
Rename-Computer -NewName $computername -force -passthru
timeout /t 5
restart-computer -wait
Add-Computer -domainname $domainname -restart
}
あなたは、このコマンドの権利を実行するためにどのように私を助けることができますか? は-DXをABYするアブヘイ-123と呼ばれる、コンピュータの名前を変更するには、あなたに
改善なし.... –