Showing posts with label Windows Server 2016. Show all posts
Showing posts with label Windows Server 2016. Show all posts

Saturday, 8 December 2018

When automatic repairs fails on boot in Windows Server 2016./How to reapair MBR (Master Boot Record).

Due to direct power off of my Windows Server 2016, it failed to boot and always stuck on automatic repair screen and advanced options.


Let see how can I overcome from this problem on my Windows Server 2016.

1. I choose command prompt, after some time I got elevated command prompt screen.

2. I typed diskpart. This command will bring diskpart tool on command prompt screen.

3. Then I typed list volume. It shows all drives and their label and drive letters (e.g. C, D, E etc). You have to identify what is the drive letter of your OS, in my case, it was C. After identifying my OS drive, I exited from diskpart.

4. To exit I typed exit.  After exiting diskpart, you will be again on command prompt.


5. After exiting from diskpart tool. Go to your OS drive from command prompt. (In my case C is my OS drive letter then I typed C: and press enter)

6. I typed bootrec /fixmbr. 

7. After successful completion of above command, I typed bootrec /fixboot.



8. After successful completion of above command, I typed chkdsk /f /r. This command asked for my confirmation in just y/n . I typed Y. This command took too much time to fix issues. But finally it was successful.

(If again problem persist, then repeat this process again and use a command bootrec /rebuildbcd before chkdsk /f /r)



After restarting my Windows Server PC, my PC was able to boot successfully and everything was as it as my previous one.

Good luck!!! 

Saturday, 4 August 2018

Removing password complexity in Windows server 2016.

Sometimes we don't to impose password complexity when want to create a new user in Windows Server. So how can remove it for using simple password, however it is recommended that you should keep password that should meet the password complexity for security purpose on servers.

So in Windows server like 2016 it gives error when it does not meet the password complexity like this-

or like this -


So how can we remove this restriction from server?

Press Window key  + r or open run window and type gpedit.msc then press Ok.


A group policy editor window will be opened.

Go to under Computer Configuration ------>Windows settings ----------> Security settings (double click on Security settings).

In the right pane you will see Account Policies, open it.

When you open Account Policies you will see Password Policy, open it or just double click.
You will see that "Password must meet complexity requirements" policy property is Enabled.
Double click on this property and disable it.



Now you are free to use any kind or any length of your password in Windows server 2016.









Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...