Posts

AD: find disabled accounts and Move them to specific OU

  dsquery user -limit 0 -disabled "ou=usuarios,dc=deltalab,dc=com" >disabled.txt for /f "delims=" %a in (disabled.txt) do dsmove %a -newparent "OU=ZZZ,DC=deltalab,DC=com"

Fixing: WinVNC Error: "No password has been set &.."

"No password has been set & this machine has been preconfigured to prevent users from setting their own. You must contact a System Administrator to configure WinVNC properly." Solution: VNC Server service: Uncheck Allow service to interact with desktop

SCCM 2007 Setting BITS

To configure BITS: Site Database->Site Management-><Site>->Site Settings->Client Agents->Computer Client Agent

Setting System proxy

netsh winhttp set proxy : Ex: netsh winhttp set proxy proxyserver1:8080 Some programs may use winhttp proxy rather than  browser's proxy settings. Ex: Windows Live setup. Setting up winhttp proxy fixed the problem.

Configuring DRAC from command line

Below is how I configured DRAC from command line: C:\Program Files\Dell\SysMgt\rac5>racadm getconfig -h idRacInfo cfgLanNetworking cfgRemoteHosts cfgUserAdmin cfgEmailAlert cfgSessionManagement cfgSerial cfgNetTuning cfgOobSnmp cfgRacTuning ifcRacManagedNodeOs cfgRacSecurity cfgRacVirtual cfgActiveDirectory cfgStandardSchema cfgIpmiSerial cfgIpmiSol cfgIpmiLan cfgIpmiPef cfgIpmiPet C:\Program Files\Dell\SysMgt\rac5>racadm getconfig -g cfglannetworking cfgNicEnable=1 cfgNicIpAddress=0.0.0.0 cfgNicNetmask=0.0.0.0 cfgNicGateway=0.0.0.0 cfgNicUseDhcp=1 # cfgNicMacAddress=00:1e:4f:3d:9d:c2 cfgNicVLanEnable=0 cfgNicVLanID=1 cfgNicVLanPriority=0 cfgNicSelection=2 cfgDNSServersFromDHCP=1 cfgDNSServer1=0.0.0.0 cfgDNSServer2=0.0.0.0 cfgDNSRacName=daumlbttsdb2 cfgDNSDomainName= cfgDNSDomainNameFromDHCP=0 cfgDNSRegisterRac=0 C:\Program Files\Dell\SysMgt\rac5>racadm config -g cfglannetworking -o cfgdnsserversfromdhcp 1 Object value modified succe...

How to remove data in Active Directory after an unsuccessful domain controller demotion

http://support.microsoft.com/kb/216498 Windows Server 2003 Service Pack 1 (SP1) or later service packs – Enhanced version of Ntdsutil.exe The version of Ntdsutil.exe that is included with Service Pack 1 or later service packs for Windows Server 2003 has been enhanced to make the metadata cleanup process complete. The Ntdsutil.exe version that is included with SP1 or later service packs does the following when metadata cleanup is run: * Removes the NTDSA or NTDS Setting subject. * Removes inbound AD connection objects that existing destination DCs use to replicate from the source DC being deleted . * Removes the computer account . * Removes FRS member object. * Removes FRS subscriber objects. * Tries to seize flexible single operations master roles (also known as flexible single master operations or FSMO) held by the DC that are being removed . Caution The administrator must also make sure that replication has occurred since the demotion before manuall...

NETSH Command to Change from Static IP Address to DHCP

To switch the specified adapter from a static address to DHCP, type the following command: netsh interface ip set address "Local Area Connection" dhcp NOTE: Typing this command changes the interface named "Local Area Connection" to DHCP. To display all of the adapters in the computer with their current IP addresses to determine the correct adapter name, type the following command: Netsh interface ip show config To change to a static address, type the following command: netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric NOTE: Replace ipaddr with the static IP address, subnetmask with the subnet mask, gateway with the default gateway and, if necessary, metric with the appropriate metric. The following example changes the interface "Local Area Connection" to a static address of 192.168.0.10 with a subnet mask of 255.255.255.0, and the interface has a default gateway of 192.168.0.1 with a metric of ...