Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Wednesday, July 2, 2014

FortiGate DHCP Advanced Options - Lease time configuration

To enable a DHCP server, go to System > Network > Interface. Edit the interface, and select Enable for the DHCP Server row. In here we can assign the address range, sub net mask, default gateway and dns server.

Now check the IP confugration settings. As shown in below figure, lease period is set to 7 days and we can only assign one DNS Server in above settings.

To change lease time and add more dns servers we have to do modify the configuration through CLI Console.
First enter below command line.
config system dhcp server
Type get to list all DHCP Servers. As shown in below figure I have 4 DHCP Servers.

Type edit <server entry number> and hit enter. And see the current DHCP Server configuration.

DHCP Server default lease-time is 604800 = 1 Week = 7 Days

So I am going to change the DHCP Lease-time to 1 Day = 86400 Seconds

Type below command set the lease-time
set lease-time 86400

To add another DNS Server (Alternative) type below command.
set dns-server2 <IP Address>

Type end to end the current session and see the DHCP configuration on the interface.

Do ipconfig /release and ipconfig /renew in computer's command prompt and verify the new IP Configuration.




Monday, June 30, 2014

To make Unmanged TrendMicro OfficeScan to managed by server

1) Copy ipxfer.exe from Ofscan folder at server side to Local C:\
2) go to command prompt
3) Type ipxfer.exe  -s servername -p 81
4) Wait for a while and check in OfficeScan Server Console.
5) Done




Thursday, June 26, 2014

[FIX] Windows Server Domain Controller failed to start with Error Code: 0xc0000001


Blue Screen? OMG~~
STOP: c00002e2 Directory Services could not start because of the following error: A device attached to the system is not functioning.

Error Status: 0xc0000001. Please shutdown this system and reboot into Directory Services Restore Mode, check the event log for more detailed information.


If this happens in Domain controller server, which is in Windows Server 2008/2008 R2 or Windows Server 2012/2012R2

Restart the server and press F8 key, select Directory Services restore mode.
Log in with the local administrator username and password
Type: cd \windows\system32
Type: NTDSUTIL
Type: activate instance NTDS
Type: files
If you encounter an error stating that the Jet engine could not be initialized exit out of ntdsutil.

Type: cd\
Type: md backupad
Type: cd \windows\ntds
Type: copy ntds.dit c:\backupad
Type: cd \windows\system32
Type: esentutl /g c:\windows\ntds\ntds.dit
This will perform an integrity check, (the results indicate that the jet database is corrupt)

Type: esentutl /p c:\windows\ntds\ntds.dit
Agree with the prompt

Type: cd \windows\ntds
Type: move *.log c:\backupad (or just delete the log files)
This should complete the repair. To verify that the repair has worked successfully:

Type: cd \windows\system32
Type: ntdsutil
Type: activate instance ntds
Type: files (you should no longer get an error when you do this)
Type: info (file info should now appear correctly)
One final step, now sure if it’s required:

From the NTDSUTIL command prompt:
Type: Semantic Database Analysis
Type: Go



Reference:




 





Tuesday, May 13, 2014

Enable BBI in BNT Switch (Blade OS/Networking OS)

How to enable BBI in BNT Switch in order to change administrator password.

By default: BBI is disable, Telnet is disable, only able access by SSH

Change of Administrator's password
Login by SSH to switch IP address with correct login credential.
Key in as below:
cfg/sys/access/user/admpw,
enter old and new password
REMEMBER apply and save

How to back to upper menu?
Key in "up" without quote.

Enable Telnet
Key in as below:
cfg/sys/access/tnet, key in "e" without quote
REMEMBER apply and save




Thursday, April 10, 2014

Changing Product Key on Window8 and Window Server 2012

To change the product key without first activating Windows, use one of the following methods:

Method 1

  1. Swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search.
  2. In the search box, type Slui 3.
    search slui
  3. Tap or click the Slui 3 icon.
  4. Type your product key in the Windows Activation window, and then click Activate.
    activation window

Method 2

  1. Swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search.
  2. Type Command Prompt in the Search box.
    search cmd
  3. Right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
    elevated command prompt
  4. Run the following command at the elevated command prompt:
    slmgr.vbs /ipk <Your product key>

Reference: http://support.microsoft.com/kb/2750773

Thursday, March 6, 2014

MSServer 2008R2 : Window ServerBackup - wbengine.exe crashed

Faulting application name: wbengine.exe, version: 6.1.7601.17514, time stamp: 0x4ce79951
Faulting module name: wbengine.exe, version: 6.1.7601.17514, time stamp: 0x4ce79951
Exception code: 0xc0000005
Fault offset: 0x000000000011341b
Faulting process id: 0x15ec
Faulting application start time: 0x01cf382bd173e7ab
Faulting application path: C:\Windows\system32\wbengine.exe
Faulting module path: C:\Windows\system32\wbengine.exe
Report Id: b7f8df20-a41f-11e3-b3bc-5cf3fc56648c

run the command>Wbadmin delete catalog


Remember take note of the backup schedule details before pressY




Wednesday, December 5, 2012

Script to make all folder unhide

If you face a problem that all your folder in window directory was missing, you may try to un-check few options in folder option menu.
By default of Windows, the ribbon will be at #2-1, "Don't show hidden files, folders, or drives.
To view hidden file, change the ribbon to #2-2, show hidden files, folders, and drives
However, sometimes you need to un-check #2-3, hide protected operating system files (recommended) while the system has been infected by virus.

#3 is un-hide all file extension for all file types if there was un-check.

Then you may see some kind like this as below picture. All folder are hidden and grey out.

How to make all folder unhidden in one-shot instead to do it one-by-one folder?
Here is the command prompt script to let you unhide all folder in one-click.



Copy all those text into notepad.exe and save it as *.bat file extension. Then put the file *.bat into those folder or drives that infected and execute it.
Then you will see all your folder come back as per normal and you may check back the folder options as windows default.

Reference:

http://forums.techguy.org/windows-7/1029473-making-all-hidden-files-unhidden.html

Related Posts Plugin for WordPress, Blogger...