は、次のことを行いPowerShellスクリプトを作成する方法についていくつかのポインタが必要です、Active Directoryのユーザ名を要求したユーザ名のために与えられたこれらのActive Directoryの操作を可能にするためのメニューを提供します:パスワードをリセットし、ユーザーアカウントを無効にし、有効にしますユーザーアカウントのロック解除、ユーザーアカウントの削除?PowerShellのスクリプトのActive Directory
-2
A
答えて
1
Read-Host
を試してみてください、ユーザーに入力を依頼します。例:
$username = Read-Host "Type in username"
メニューを作成する方法はたくさんあります。手動で選択した答えを実行するための情報とRead-Host
+ switch
-statementを表示するWrite-Host
を使用してそれを行うことができます。または、$host.ui.PromptForChoice()
とSystem.Management.Automation.Host.ChoiceDescription
- オブジェクト(メニュー項目ごとに1つ)の組み込みソリューションを使用することもできます。
メニュー例:
- ビルトインメニュー-クラス/ - 溶液を使用した:https://technet.microsoft.com/en-us/library/ff730939.aspx
- シンプル手動で作成したメニュー:How to return to user menu at the end of a function in PowerShell
関連する問題
- 1. Active Directory PowerShellフィルタ
- 2. PywinrmとActive Directory PowerShellコマンドレット
- 3. PowerShellのは、Active DirectoryのユーザーOU
- 4. PowerShellを使用したActive Directoryのクエリ
- 5. PowershellスクリプトでActive Directory属性を更新する
- 6. Active Directory powershellでアクティブなユーザーを取得
- 7. PowerShell Active Directoryテキストファイルと比較します。
- 8. PowershellからAzure Active Directoryアクセストークンを取得
- 9. Active Directoryのスクリプトを実行します。
- 10. Active Directoryの
- 11. Active Directory
- 12. Active Directory
- 13. powershell、active directory、使用するオフィスを取得して設定するスクリプト
- 14. PowerShellの一括更新、Active Directoryの管理者フィールド
- 15. PowerShellを使用したAzure B2C Active Directoryへのサービスアプリケーションの登録
- 16. Active Directoryの問題
- 17. パブリックテスト用のActive Directory
- 18. Active Directoryの承認
- 19. Azure Active Directoryのロール
- 20. ルビーのActive Directoryフェデレーションサービス?
- 21. Azure Active Directoryのカスタムログインページ
- 22. メールアドレスのActive Directoryプロパティ
- 23. Active Directoryの実装
- 24. AzureのActive DirectoryユーザーのActiveない
- 25. Azure Active DirectoryのPowershellコマンドによる返信
- 26. Powershellを使用してActive Directoryグループを別のOUに移動
- 27. NGINX - Active Directoryシングルサインオン
- 28. Active DirectoryとFirebase
- 29. Active DirectoryとOpenLDAP
- 30. ASP.NET Active Directory Search