Saturday, December 15, 2018

Windows Activation

How To Fix "An Unauthorized Change Was Made To Windows  Server 2008" Error

In my case, the problem was with the Windows Activation. The activation of my windows had ended (3 Year Activation). But it was very important for me to continue with this copy of Windows Server 2008, as it was not feasible for me to switch this Live Server serving Dozens of clients.
So, in order to get myself into the Windows Server 2008, I used the below mentioned steps to fix the issue with my Windows Activation.
1) Click the option that launches an Internet Browser (on the error screen which reads Learn More Online)

2) Type: %windir%\system32 into the address field (To access the Windows System32 directory)

3) Find the file cmd.exe

4) Right-click on cmd.exe and select Run as Administrator

5) Type the following command on the Command Prompt: 
cscript %windir%\System32\slmgr.vbs /ilc %windir%\System32\licensing\ppdlic\Security-Licensing-SLC-ppdlic.xrm-ms)
6) Hit the Enter key

7) Reboot twice.

Conclusion

You need to reboot your machine Twice in order to fix this Issue. After following the above steps, I was able to fix the issue with my Windows Activation. But, if the issue is not solved by following the above steps, then you need to check if your Antivirus is causing this issue. If so, please uninstall the Antivirus software from your machine. Hope this solves the Issue.

Monday, November 19, 2018

RMAN commands

rman target sys/opera10g
show all;
crosscheck backup;
delete noprompt expired backup;
crosscheck archivelog all;
delete noprompt expired archivelog all;

Friday, October 19, 2018

PPTP Bruit Force

/ip firewall filter
add action=drop chain=input comment="pptp brute force drop 1/4 - complete comunication DROP" disabled=no \
src-address-list=pptp_blacklist_DROP
add action=add-dst-to-address-list address-list=pptp_blacklist_DROP address-list-timeout=10m chain=output comment="pptp brute force drop 2/4" \
content="bad username or password" disabled=no dst-address-list=pptp_blacklist_stage_2 protocol=gre
add action=add-dst-to-address-list address-list=pptp_blacklist_stage_2 address-list-timeout=1m chain=output comment="pptp brute force drop 3/4" \
content="bad username or password" disabled=no dst-address-list=pptp_blacklist_stage_1 protocol=gre
add action=add-dst-to-address-list address-list=pptp_blacklist_stage_1 address-list-timeout=1m chain=output comment="pptp brute force drop 4/4" \
content="bad username or password" disabled=no protocol=gre

Wednesday, September 26, 2018

Linux


After changing ip address config
$ sudo ip addr flush interface-name
$ sudo systemctl restart networking

Monday, September 24, 2018

Unifi install in Ubuntu 16.04

https://community.ubnt.com/t5/UniFi-Wireless/UniFi-Installation-Scripts-UniFi-Easy-Update-Scripts-Works-on/td-p/2375150

Thursday, September 20, 2018

NEC SV9300

Name assign - CM77-Y1
EXT create - CM1X -YY00
Digital- F+ext no.
CO - D + trunk no.
Analoge - ext no.

Checking before delete-
CM12- Station data
01and 04

Trunk Data
CM30
CM77 trunk route name
CM35 assign trunk name -03

Initial trunk access assign
CM20
Code - A081

Wednesday, August 29, 2018

Oracle Transaction code and AR re-link

select trx_code,description,AR_NAME_ID from trx$_codes where resort='STRAND' and trx_code='9041'


Update trx$_codes set AR_NAME_ID='2739737' where resort='STRAND' and trx_code='9041'

Thursday, August 16, 2018

Error 1920 (SepMasterService) failed to start" and Endpoint Protection fails to open



Wednesday, March 7, 2018

Delete Failed DCs from Active Directory


Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.
To clean up metadata
  1. At the command line, type Ntdsutil and press ENTER.


  1. At the Ntdsutil: prompt, type metadata cleanup and press Enter.


  1. At the metadata cleanup: prompt, type connections and press Enter.


  1. At the server connections: prompt, type connect to server <servername>, where <servername> is the domain controller (any functional domain controller in the same domain) from which you plan to clean up the metadata of the failed domain controller. Press Enter.

Note: Windows Server 2003 Service Pack 1 eliminates the need for the above step.
  1. Type quit and press Enter to return you to the metadata cleanup: prompt.


  1. Type select operation target and press Enter.


  1. Type list domains and press Enter. This lists all domains in the forest with a number associated with each.


  1. Type select domain <number>, where <number> is the number corresponding to the domain in which the failed server was located. Press Enter.


  1. Type list sites and press Enter.


  1. Type select site <number>, where <number> refers to the number of the site in which the domain controller was a member. Press Enter.


  1. Type list servers in site and press Enter. This will list all servers in that site with a corresponding number.


  1. Type select server <number> and press Enter, where <number> refers to the domain controller to be removed.


  1. Type quit and press Enter. The Metadata cleanup menu is displayed.


  1. Type remove selected server and press Enter.
You will receive a warning message. Read it, and if you agree, press Yes.

Sponsored

At this point, Active Directory confirms that the domain controller was removed successfully. If you receive an error that the object could not be found, Active Directory might have already removed from the domain controller.
  1. Type quit, and press Enter until you return to the command prompt.
To remove the failed server object from the sites
  1. In Active Directory Sites and Services, expand the appropriate site.
  2. Delete the server object associated with the failed domain controller.

To remove the failed server object from the domain controllers container
  1. In Active Directory Users and Computers, expand the domain controllers container.
  2. Delete the computer object associated with the failed domain controller.

  1. Windows Server 2003 AD might display a new type of question window, asking you if you want to delete the server object without performing a DCPROMO operation (which, of course, you cannot perform, otherwise you wouldn’t be reading this article, would you…) Select “This DC is permanently offline…” and click on the Delete button.

  1. AD will display another confirmation window. If you’re sure that you want to delete the failed object, click Yes.

To remove the failed server object from DNS
  1. In the DNS snap-in, expand the zone that is related to the domain from where the server has been removed.
  2. Remove the CNAME record in the _msdcs.root domain of forest zone in DNS. You should also delete the HOSTNAME and other DNS records.

  1. If you have reverse lookup zones, also remove the server from these zones.
Other considerations
Also, consider the following:
  • If the removed domain controller was a global catalog server, evaluate whether application servers that pointed to the offline global catalog server must be pointed to a live global catalog server.
  • If the removed DC was a global catalog server, evaluate whether an additional global catalog must be promoted to the address site, the domain, or the forest global catalog load.
  • If the removed DC was a Flexible Single Master Operation (FSMO) role holder, relocate those roles to a live DC.
  • If the removed DC was a DNS server, update the DNS client configuration on all member workstations, member servers, and other DCs that might have used this DNS server for name resolution. If it is required, modify the DHCP scope to reflect the removal of the DNS server.
  • If the removed DC was a DNS server, update the Forwarder settings and the Delegation settings on any other DNS servers that might have pointed to the removed DC for name r

Friday, February 16, 2018

ESXI NIC driver install

01. Upload the VIB to a datastore which is visible by your ESXi 5.5 host (“drobo01″ in my case)
02. Make sure that you enable SSH and connect via Putty
03. Set the acceptance of the host to “community supported”
esxcli software acceptance set –level=CommunitySupported
04. use this command to install the VIB
esxcli software vib install -v /vmfs/volumes/drobo01/VMware_bootbank_net-r8169_6.011.00-2vmw.510.0.0.799733.vib
05. Reboot your host

Thursday, February 1, 2018

Send emails from PHP with ssmtp

The installation process:

sudo apt-get install ssmtp

Then edit the /etc/ssmtp/ssmtp.conf file with this information:
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
AuthUser=<YOUR-EMAIL>@gmail.com
AuthPass=<YOUR-PASSWORD>
(or any other SMTP-server that you might want to use)

Final steps:
Find your php.ini file (usually in /etc/php5/cli/php.ini) and make sure the sendmail_path is:

sendmail_path = /usr/sbin/sendmail -t

Then restart your apache2-server with


service apache2 restart


In my case, I've got a hosted server so I needed to edit this file :
/etc/ssmtp/ssmtp.conf
Then uncomment this line :

FromLineOverride=YES

Tuesday, January 9, 2018

Windows License Reset

cscript %windir%\System32\slmgr.vbs /ilc %windir%\System32\licensing\ppdlic\Security-Licensing-SLC-ppdlic.xrm-ms