@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”
Command ip examples
# Forcefully close a connection to a specific destination sudo ss -K dst 192.168.1.100 # view routes ip r ip route # To reject a route (bl...
Mais vistos
-
A few cmds to help with the DFS troubleshooting aspects, keep in mind all should be run from an elevated PowerShell Dfsdiag /TestDCs D...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...