は、次のことを行い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. PowershellスクリプトでActive Directory属性を更新する
- 3. Active Directory powershellでアクティブなユーザーを取得
- 4. PowerShell Active Directoryテキストファイルと比較します。
- 5. Active Directoryのスクリプトを実行します。
- 6. Active Directoryの
- 7. Active Directory
- 8. Active Directory
- 9. powershell、active directory、使用するオフィスを取得して設定するスクリプト
- 10. PowerShellを使用したAzure B2C Active Directoryへのサービスアプリケーションの登録
- 11. Active Directoryの実装
- 12. メールアドレスのActive Directoryプロパティ
- 13. Azure Active Directoryのロール
- 14. ルビーのActive Directoryフェデレーションサービス?
- 15. パブリックテスト用のActive Directory
- 16. Active Directoryの承認
- 17. Active Directoryの問題
- 18. Azure Active Directoryのカスタムログインページ
- 19. Azure Active DirectoryのPowershellコマンドによる返信
- 20. Powershellを使用してActive Directoryグループを別のOUに移動
- 21. AzureのActive DirectoryユーザーのActiveない
- 22. Active Directory通知
- 23. Active Directory LDAP
- 24. LDAP Active Directoryパス
- 25. ASP.NET Active Directory Search
- 26. Sharepoint-Active Directoryプロファイル
- 27. Active Directory GUID
- 28. NGINX - Active Directoryシングルサインオン
- 29. Active DirectoryとOpenLDAP
- 30. Active Directoryログインレポート