LMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT ScriptLMDLT Script

 

JavaScript
Editar script|Remove
$computers = "<TextFileListofComputerToRunViaPoSh.txt>" 
 
 
 
$ADComp = "<OutputFileLocation.txt/.Log>" 
 
 
 
Get-Content $computers | Foreach {If (Get-ADComputer -Filter {Name -eq $_}{Add-Content $ADComp "$_ is Enabled $((Get-ADComputer $_).enabled) in Active Directory."} Else {Add-Content $ADComp "Warning!! $_ is not in Active Directory."}}