Задача: сбросить пароль администратора WINDOWS, добавить пользователя в группу администраторов Continue reading "[WIN] SAM file"
Метка: Windows
[COMODO] Comodo internet security premium исключить директорию из сканирования
[WIN7] WindowsUpdate 80070003
sfc /scannow
снести C:\Windows\SoftwareDistribution
запустить обновление снова
[ZABBIX] SQL DB2 cash windows
дополнение к https://7d3.ru/wiki/776.
Теперь у нас имеется db2 + виндовый сервак. Поэтому юзаем powershell + zabbix
[Apache] Настройка Basic аутентификации в Apache
1 2 3 4 |
htpasswd -c /etc/httpd/conf.d/.htpasswd userlogin # Create Password File for Authentication New password: Re-type new password: Adding password for user userlogin |
Результат:
1 2 |
cat/etc/httpd/conf.d/.htpasswd userlogin:$apr0$bq4Tro0n$oYAo1u3KVwmeyV0CWgbIk/ |
1 2 3 4 5 6 |
<Directory “/var/www/html”> AuthType Basic AuthName “Authentication Required” AuthUserFile /etc/httpd/conf.d/.htpasswd Require valid-user </Directory> |
[AD] проверить авторизационный данные в домене
Get-ADDomain -Identity "DC=site,DC=ru" -Server "10.10.10.2" -Credential "site\userlogin"
[Ansible] приоритет переменных
role defaults
inventory vars
inventory group_vars
inventory host_vars
playbook group_vars
playbook host_vars
host facts
play vars
play vars_prompt
play vars_files
registered vars
set_facts
role and include vars
block vars (only for tasks in block)
task vars (only for the task)
extra vars (always win precedence)
[Ansible] service Interactive authentication required.
При выполнении плейбука с
1 2 3 4 5 |
- name: Старт сервиса become: true service: name: httpd state: started |
Получаем ошибку: Failed to restart httpd.service: Interactive authentication required
Continue reading "[Ansible] service Interactive authentication required."
[AD] найти группу с помощью powershell
get-adobject -Filter 'ObjectClass -eq "group"' | Select-String "GroupName"
--пользака
get-adobject -Filter 'ObjectClass -eq "user"' | Select-String "userName"
AD администрирование в PowerShell
- Open Control Panel -> Programs and Features -> Turn On/Off Windows Features
- Find "Remote Server Administration Tools" and expand it
- Find "Role Administration Tools" and expand it
- Find "AD DS And AD LDS Tools" and expand it
- Check the box next to "Active Directory Module For Windows PowerShell".
- Click OK and allow Windows to install the feature