Steff
Зарегистрирован: 17.06.2004 Сообщения: 357 Откуда: Кишинев, Молдова
|
Добавлено: Пт Июл 02 2004 11:20 Заголовок сообщения: Интересная задачка по Экаунту |
|
|
Коротко опишу проблемку, потом задачу.
Стоит Вин2000 - Домена нет, Есть Админский пароль(экаунт), и Мой - Steff Так получилось, что когда я начинал работать я был Юзером, теперь стал админом, но сижу под экаунтом Steff (по привычке, да и настраивать Десктопы и прочее лень, вернее просто Лень) Так как я парень добрый, до дал свой паролик охранникам, чтоб они ночью могли порнушку посмотреть. Можно ли сделать - программульку, скрипт или что еще, чтоб я типо запустил ее - и Экаунт стал Юзером, запустил еще раз - экаунт ПоверЮзер (естессно, во втором случае, ввожу АДМИНСКИЙ пароль)
Да да, ща скажете, что за хрень, че мозги паришь и т.д. - с Охраной ( экаунтом для них) я то уже решил вопрос. Но просто на будущее интересно, можно ли замудрить такой переключатель? _________________ Dum spiro, spermo )) |
|
ЫФЦ Гость
|
Добавлено: Пт Июл 02 2004 12:59 Заголовок сообщения: |
|
|
Посмотри следующую команду для изменения локальных групп:
NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
NET LOCALGROUP modifies local groups on computers. When used without
options, it displays the local groups on the computer.
groupname Is the name of the local group to add, expand, or
delete. Supply only a groupname to view a list of
users or global groups in a local group.
/COMMENT:"text" Adds a comment for a new or existing group.
Enclose the text in quotation marks.
/DOMAIN Performs the operation on the domain controller
of the current domain. Otherwise, the operation is
performed on the local workstation.
name [ ...] Lists one or more usernames or groupnames to add or to
remove from a local group. Separate multiple entries with
a space. Names may be users or global groups, but not
other local groups. If a user is from another domain,
preface the username with the domain name (for
example, SALES\RALPHR).
/ADD Adds a groupname or username to a local group. An account
must be established for users or global groups added to a
local group with this command.
/DELETE Removes a groupname or username from a local group. |
|