タグ付けされた質問 「elevated」

1
Powershellを使用して別のユーザーとしてRSATツールを実行する
私が達成しようとしているのは、PowerShellスクリプトから別のユーザー(Domain-Admin)としてRSATツールを実行することです。 ここに私の実行コードがあります: Start-Process -FilePath "C:\Windows\system32\mmc.exe" -ArgumentList "C:\Windows\system32\gpmc.msc" -Credential (Get-Credential -Credential MYDOMAIN\myadminuser) そして、私が得るのはエラーです:このコマンドは昇格した権限でのみ開始できます。これで、UACの制限のために管理者ユーザーを使用してスクリプトを実行しなければならなかったことがわかりました。 誰かが私のために助けてくれましたか? ありがとう! 編集 より明確にするために、スクリプト全体を添付しました。 $title = "Windows 8.1 RSAT Tools" $message = "Verwaltungskonsole" $ad = New-Object System.Management.Automation.Host.ChoiceDescription "&AD Verwaltung", ` "Active Directory-Benutzer und -Computer" $gpo = New-Object System.Management.Automation.Host.ChoiceDescription "&GPO Verwaltung", ` "Gruppenrichtlinienverwaltung" $options = [System.Management.Automation.Host.ChoiceDescription[]]($ad, $gpo) $result = …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.