The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Windows 8’ Category

Pruning your Windows 7+/Server 2008 R2+ installations and huge files in %windir%\Logs\CBS

Posted by jpluimers on 2015/10/02

This applies to at least these versions when you run them under at least VMware Fusion or Workstation:

  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows Server 2008 R2

Often this folder get huge: %windir%\Logs\CBS (normally C:\Windows\Logs\CBS)

I’ve successfully compressed the content, but even though it is text, they don’t compress that well.

Some reports indicate you can safely delete them when there is nothing wrong with your system nor with Windows Update:

So that’s what I’m going to try next.

Later: done the below on an UAC (Administrator) command prompt.

Cleanup CBS via [WayBack] Gin answering at [WayBackwindows 8 – Why is CBS.log file size 20 GB – Super User::

net stop TrustedInstaller
del %windir%\Logs\CBS\CBSPersist*.*
net start TrustedInstaller

Then I did this to cleanup the C:\Windows\SoftwareDistribution\DataStore\DataStore.edb file via [WayBack] Gin at [WayBackwindows 8 – Why is CBS.log file size 20 GB – Super User:

net stop wuauserv
net stop bits
esentutl.exe /d %windir%\SoftwareDistribution\DataStore\DataStore.edb
CleanMgr
reboot

The reboot will restart the stopped services.

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008 R2 | Leave a Comment »

How to automate Adobe Acrobat XI Standard to re-compress a lot of PDFs? – via: Super User

Posted by jpluimers on 2015/09/21

A while ago I asked compression – How to automate Adobe Acrobat XI Standard to re-compress a lot of PDFs? – Super User.

Back then it saved about 80% of the total file size. Very substantial.

Recently I needed to convert another (smaller, but still substantial) bunch of PDF documents and saw I forgot to post the solution here:
Read the rest of this entry »

Posted in Adobe, Adobe Acrobat, Everything by VoidTools, Power User, Windows, Windows 7, Windows 8, Windows 8.1 | Leave a Comment »

Batch file to open a specific TCP port in Windows 7 / 2008 Server and up

Posted by jpluimers on 2015/09/18

Thanks to the answer by Kevin Richardson on How to open ports on Windows firewall through batch file, I wrote this batch file that uses the add command of the Netsh AdvFirewall Firewall Commands which requires Admin privileges to run:


:: open port (first argument passed to batch script, second argument is description)
:checkPrivileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' ( goto :gotPrivileges ) else ( goto :getPrivileges )
:isNotAdmin
:getPrivileges
echo You need to be admin running with an elevated security token to run %0
goto :exit
:isAdmin
:gotPrivileges
netsh advfirewall firewall add rule name="Open Port %1 for %2" dir=in action=allow protocol=TCP localport=%1
:exit
::pause
exit /b

–jeroen

via: How to open ports on Windows firewall through batch file – Stack Overflow

Posted in Firewall, Infrastructure, Microsoft Surface on Windows 7, Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Leave a Comment »

Translating non-English error messages into English

Posted by jpluimers on 2015/08/06

For a long time, I’ve persuading people to install English versions of their operating systems (especially on server side) at least for some parts of their environment.

The main reason is that searching for English error messages gives you a much bigger chance of finding the cause than non-English ones.

I’m still standing by that recommendation, but life has become a bit easier because of these two sites that offer quite good translations of Windows Error messages in many languages to English:

I like the latter a bit more because of the overview, but the former more because of the catalog.

The way I landed there was because of a search for “Cannot SetData on a frozen OLE data object” which I bumped into for one of my C# .NET projects.

–jeroen

Posted in .NET, C#, Development, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista | Leave a Comment »

logparser – Wikipedia, the free encyclopedia

Posted by jpluimers on 2015/07/31

Thanks to Sebastian Gingter for pointing me at Logparser:

Logparser […] powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows operating system such as the Event Log, the Registry, the file system, and Active Directory. The results of the input query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.

Common use:

$ logparser [options] [SQL expression]

–jeroen

via logparser – Wikipedia, the free encyclopedia.

Posted in Development, IIS, Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Leave a Comment »

Saving MMC files as MSC and prevent the “save console settings” dialog.

Posted by jpluimers on 2015/07/24

Two tricks when creating MSC files that contain the snap-in configuration of the MMC (Management Console).

Normally you do this once:

  1. Start MMC
  2. Add some snap-ins
  3. Save your configuration as an MSC file

And then when you need that particular configuration, each time:

  1. Open the MSC file
  2. Perform some actions
  3. Close the MMC
  4. Answer No to this question:

---------------------------
Microsoft Management Console
---------------------------
Save console settings to [filename].msc?
---------------------------
Yes No Cancel
---------------------------

The trick around this last question is:

Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista, Windows XP | Leave a Comment »

Windows < 8: User variables are not resolved correctly in Windows if they contain %APPDATA% or %LOCALAPPDATA%.

Posted by jpluimers on 2015/07/13

Older Windows versions than 8.x will not correctly expand %APPDATA% or %LOCALAPPDATA% in environment variables: User variables are not resolved correctly in Windows..

This even happens when the registry storage of the environment variables are marked as REG_EXPAND_SZ under these keys:

Basically there are four categories of Windows versions:

  • For Windows 10.x this is fixed.
  • For Windows 8.x and Windows Server 2012 R2, there are updates in KB2919355.
  • For Windows 7.x and Windows Server 2008 R2, there is a hotfix.
  • For older Windows versions, there is no solution.

–jeroen

via: User variables are not resolved correctly in Windows.

Posted in Development, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista | Leave a Comment »

YouTube: Some windows shortcut key hints (by Alister Christie)

Posted by jpluimers on 2015/06/29

I wrote quite a few entries about Keyboards and Keyboard Shortcuts.

But Alister Christie did something much better: he published a great video on YouTube: Some windows shortcut key hints.

Most of the examples he shows work in Windows 7 and up.

–jeroen

 

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9 | Leave a Comment »

Microsoft Defender (aka Antimalware) using lots of CPU when machine becomes idle (via: MsMpEng.exe ISSUES! Using very high amounts of CPU, during scans – Microsoft Community)

Posted by jpluimers on 2015/06/08

When using Windows VMs on my MacBook Retina, often they’d start using excessive CPU after I switched back to my OS X screen.

This is very distracting, for instance during presentations, as it also starts humming the fans at close to 100 Hz (for non techies: nearly 6000 rpm).

When switching back to the VM, and going to Task Manager soon enough, I observed a MsMpEng+high+cpu+usage.

Since I knew this was caused by Windows Defender, I first tried to “Excluded files and locations” MsMpEng.exe, but that did not help.

My second thought was that it was caused by idle behaviour. Disabling that was indeed the cause. Since doing that was kind of hard to circumvent, here is how:

Read the rest of this entry »

Posted in Microsoft Security Essentials, Power User, Uncategorized, Windows, Windows 8, Windows 8.1, Windows Defender | Leave a Comment »

When Windows 8 will not boot: the Automatic Repair disaster | Gadget Writing

Posted by jpluimers on 2015/06/05

The Automatic Repair Wizard is very limited and – worse – sometimes plain wrong.

So, this important tip from Tim Anderson can be a real life saver:

if this happens to you, I recommend looking at the logs. It is the only way to get real information about what it going wrong. In some cases you may need to boot into the recovery console from installation media, but if your hard drive is working at all, it should be possible to view those files.

I had the same happening with Windows 81., and I asseume other Windows versions react the same way.

–jeroen

via: When Windows 8 will not boot: the Automatic Repair disaster | Gadget Writing.

Posted in Power User, Windows, Windows 8, Windows 8.1 | Leave a Comment »