Disable AD users with script

@echo off
setlocal
for /f “eol=; tokens=1,* delims=;” %%i in (desabilitados.csv) do (
set user=%%i
call :segue
)
endlocal
:segue
dsquery user -samid %user% | dsmod user -disabled yes
dsquery user -samid %user% | dsmove -newparent “OU=Desabilitados,DC=teste,DC=interno”

NGINX - To allow a specific User-Agent from one IP address only

Step 1: Define the Map BlocksAdd this configuration inside the http {} block of your /etc/nginx/nginx.conf file. This logic evaluates the in...

Mais vistos