2016-04-27

Software Restriction Policy: Can't Install HP Data Protector 7.03_108 on Windows 2003

During agent upgrade installation setup cancels with message(same writes su msi log on temp catalog):

[ 99] ERROR: Error 1260.Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system administrator.

[110] {16777216} Error 1260.Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system administrator.

Solution

Save following code example to *.reg file and apply register changes:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
"SecureRepairPolicy"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer\SecureRepairWhitelist]
"{02F80D5F-D2A7-499D-8961-77583CEF495B}"=""
"{21F107FF-FD00-477D-B49D-5C3854A39FFE}"=""
"{3B31F119-6344-4FA3-894F-8CE196858401}"=""
"{52C9F3C8-8C89-4288-95CB-86C6CB1E5BBC}"=""
"{CAEDB28E-A1E5-4E7F-88D3-D6CA4FC891C2}"=""
"{DE5100C5-E5C6-40B7-9294-FAD5F81E987F}"=""


Product codes in braces{} are for HP Data Protector 7.03 build 108 and if you have different version or another software, just obtain different product codes from isntalation *.msi files(or msi file loh in temporary user catalog like C:\DOCUME~1\your_username\LOCALS~1\Temp\ ) and put on the registry list.
Solution made using official MS KB.

/Geecoholic

2016-04-26

EventLog: How to solve WmiApRpl and BITS errors in Event ID 1008

On Windows Server 2012 with installed SharePoint 2013 and IIS roles have repetitious in Application event log errors. Errors not critical and can be ignored but pollute events and deside cleanup.

Here typical example of Event ID 1008 generated every 15 minutes::

Log Name:      Application
Source:        Microsoft-Windows-Perflib
Date:          2016.04.23 13:15:53
Event ID:      1008
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      COMPUTERNAME.DOMAIN
Description:
The Open Procedure for service "WmiApRpl" in DLL "C:\Windows\system32\wbem\wmiaprpl.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

Log Name:      Application
Source:        Microsoft-Windows-Perflib
Date:          2016.04.23 13:15:53
Event ID:      1008
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      COMPUTERNAME.DOMAIN
Description:
The Open Procedure for service "BITS" in DLL "C:\Windows\System32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.


Solution

Launch Regedit.exe and give READ permissions to the user WSS_WPG on following registry keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WmiApRpl

The is no need restart any service or server, errors just disappear.
After server restart errors come back once during startup and do not occurs later.

/Geecoholic

2016-04-08

PowerShell: How to clear all Event Logs

Run PowerShell as an administrator and use example:

wevtutil el | Foreach-Object {wevtutil cl "$_"}

Warining! Command will clear ALL events on ALL event logs!


/Geecoholic