Wednesday, October 30, 2013

7-Zip silent uninstall

This is tested on version 16.04

silent-uninstall.cmd
@echo off
setlocal EnableDelayedExpansion
set u=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
set n=7-Zip
for /f "tokens=7 delims=\" %%a in ('^
reg query "%u%" /s ^|
find "\Uninstall\"') do (
reg query "%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 (
reg query "%u%\%%a" /v DisplayName | find "%n%" > nul 2>&1
if !errorlevel!==0 (
echo %%a | find "{"
if !errorlevel!==0 %systemroot%\system32\msiexec.exe /X %%a /qn
)
)
)
endlocal

Set domain controller as DHCP server, 2008 r2

Active directory domain services and DNS server are already installed

Take a look at IP configuration

Note that domain controller IP address will be clients DNS server address

Add server rule and choose DHCP server

Next

Validate


Click Add to add new scope

Enter scope data

Go Next

Enable DHCPv6 stateless mode for this server

Specify IPv6 DNS Server Settings

DHCP Server Authorization

Summary. Start install

Installation Successful

Now when open DHCP settings

There must be same IP address as domain controller IP address.

Blog Archive