You can enable it by the following way:
In Start Search type Gpedit.msc and hit the enter key.
In the GP Editor navigate to Computer Configuration > Administrative Templates > System > Troubleshooting and Diagnostics > Scripted Diagnostics. Enable the policy.