Windows個人アカウントを該当PCの管理者設定する方法

ADのマネージャからは簡単に設定できるが、ドメコン管理者でない個人アカウントから設定する方法は容易でない。そこで、管理者権限でリモートシェルソフトPsExecを経由し、該当ユーザを該当PCのAdministratorsに追加する方法が最善と考え以下のバッチファイルを考案した。

main.wsf

sub.bat

現段階で運用上のトラブルは発生していない。ラッキー★

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny