upgrade dahua and oem related firmware

for updating from dvr/nvr :

1:from device

copy firmware rom to fat32 flash drive ,extract the zip file and rename .bin file to update.bin

then go to version menu and click on “start” in upgrade section

2:network remote

download configtool software from dahua website

extract firmware zip file

search or add manually device in configtool

go to update menu

select previously extracted .bin file and wait for device to reboot


ubiquiti auto scheduled reboot


for that

connect to your ubnt device via ssh (using software like putty

login with web GUI username

insert this codes:

set system task-scheduler task daily-reboot interval 1d
set system task-scheduler task daily-reboot executable /sbin/reboot

.and Done


this command reset device every day at 00:00







how to block usb in active directory for users or computers


after searching whole internet for a tutorial to block usb devices in active directory i found that non of them are actually work because in all of them they said to

“enable (* removable access * deny) in computer config/administrative templ

and link existing gpo to USER or OU

then run gpoupdate /force command in both server and client

and poof not working

because they point to enable usb blocking in computer config so then we shoud link gpo to comuter instead of users

while doing that make usb blocking work perfectly but also block usb for every user on that particular computer included administrators

so what to do to block usb for users instead of computer?sample just:

enable gpo in user config/ instead


also if your AD functional level is windows server 2000 the android smartphone and other portable device is still have accessable to avoid that you need to raise it to 2012 r2.

be notice with that windows xp and older mashine maybe stop working in AD




how to install dlink 528t and atheros ar8168 ethernet nic (or any other) driver in esxi (6.X)


first i download the vid file from internet =>
then with the help of this video link from vmware =>
Installing async drivers on VMware ESXi 5.0, 5.1, and 5.5 – Part 2 – YouTube
which as below:
first copy downloaded driver to datastore from esxi win client or web client or sap software (like winSCP)
the put server in maintenance mode by client or the following code:
> esxcli system maintenanceMode Set —enable true
then copy copied file to /var/log/vmware path
install by
*for .vib files
>esxcli software via install -v /var/log/vmware/*.vib
*for *bundle*.zip files
>esxcli software via install -d /var/log/vmware/*.zip

then restart server by

wait until server completely boot up

see if driver is installed and eth is detect by
>lspci -v | grep “Class 0200” -B 1

it should be shown something like this:
[root@localhost:~] lspci -v | grep “Class 0200” -B 1
0000:02:00.0 Ethernet controller Network controller: Qualcomm Atheros AR8161 Gigabit Ethernet [vmnic2]
Class 0200: 1969:1091

0000:04:00.0 Ethernet controller Network controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter [vmnic0]
Class 0200: 1186:4300

0000:04:01.0 Ethernet controller Network controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter [vmnic1]
Class 0200: 1186:4300

if its [vmnic*] is there in end of the network adapter name ,its mean driver installation has successfully

remember put back serve from maintenance mode by this command
> esxcli system maintenanceMode Set —enable false