問題の説明
コンソールはプログラミング言語で制御できますか? (Can consoles be controlled by programming languages?)
コンピュータ管理コンソールには、ローカル ユーザー & があります。グループ フォルダ。そのコンソールを介して特定のグループのメンバーを追加または削除できることを理解しています.
私の質問は、コンソールを使用せずに、つまりプログラミング言語を使用して、指定されたアクションを実行することは可能ですか?
p>現在、Python と VBA に精通しています。
リファレンスソリューション
方法 1:
Yes! This is possible. Microsoft has implemented a powerful scripting language called Powershell which is based on VBscript and the standard CMD syntax for this.
To access the Integrated Scripting Enviroment, press the Windows key + X at the same time, and click the Powershell button in the dialog that appears.
There is a ton of documentation in the manpages.
For more info: https://technet.microsoft.com/en‑us/scriptcenter/dd742419.aspx
If you're a sysadmin (like me) it is imperative you learn how to use it, as Microsoft is phasing out the GUI for Powershell automation step by step, and you'll NEED to know this, saves you so much work.
(by Azmin Hoota、undine)