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

On my research list: mounting FTP or HTTP location as drive in Windows

Posted by jpluimers on 2013/04/01

Need to research this if it works for both FTP and HTTP: How can I mount an FTP to a drive letter in windows? – Server Fault.

–jeroen

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

Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs

Posted by jpluimers on 2013/03/25

Why Internet Explorer does not use these two for showing shortcuts:

  • CSIDL_COMMON_FAVORITES
  • %ALL­USERS­PROFILE%\Microsoft\Internet Explorer\Quick Launch

–jeroen

via: Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs.

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

TSListUsers: great little console tool to list Remote Desktop / Terminal Services Users

Posted by jpluimers on 2013/03/18

Thanks to Joe KlemencicTSListUsers is a great little console tool that shows you the currently logged on users and which session they use:

List Terminal Services Users

TSListUsers is a command line utility to list both the currently connected and disconnected users, hostname, IP address and RDP session number on either the local or a remote Windows Terminal Server/RDP Server

To list the users, you need to have the following abilities:

  • NetBios access to the server
  • Permissions allowing you to Query RDP session information (if you can log into the TS, you should have this by default)
  • Terminal Services/RDP should be running on the target host

Usage:
TSListUsers.exe /? to get the Help text
TSListUsers.exe to query a target Terminal Server
TSListUsers.exe with no paramters to query the local host

You can download TSListUsers from here.

Example output of remote session:

C:\Windows>TSListUsers.exe
Active Connections:
Username, HostName(IP), SessID, RDP-Port
----------------------------------------
jeroenp, W701UJPL (192.168.71.34), 2, RDP-Tcp#92

Disconnected Connections:
Username, HostName, SessID
--------------------------

Example output of local session:

C:\Windows>TSListUsers.exe
Active Connections:
Username, HostName(IP), SessID, RDP-Port
----------------------------------------
jeroenp,  1, Console

Disconnected Connections:
Username, HostName, SessID
--------------------------

–jeroen

via List Terminal Services Users.

Posted in Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

ntfs – How do you find what process is holding a file open in Windows? – Server Fault

Posted by jpluimers on 2013/03/15

First a warning: when you have found the process holding open a file, and you want to forcibly close the handle, read this post why you should not: Windows Confidential: Forcing Handles Closed.

In fact:

if you forcibly need to close a handle to salvage something, you should reboot shortly afterwards.

Back to the question at hand:

How do you find what process is holding a file open in Windows?

One thing that annoys me no end about Windows is the old “sharing violation” error. Often you can’t identify what’s holding it open. Usually it’s just an editor or explorer just pointing to a relevant directory but sometimes I’ve had to resort to rebooting my machine.

Any suggestions on how to find the culprit?

All of the below solutions require you to run with Administrative privileges.

On current Windows versions, if you run them without UAC elevation, they will miss a lot of processes. And still: under some secured environments you won’t see all processes anyway.

My preferred answer is not on the list:

Quit the application that holds the handle

All the tools that show you the handles will indicate which process holds the handle.

Often, you can just quit that process, do your job on the affected file, then relaunch that process.

When the process is Explorer, there is a neat little trick that works for Windows Vista and up:

For explorer, btw, hold ctrl-shift and right-click a blank area of the start menu, and you’ll get “Exit Explorer” – ps, not quite Jeff’s answer.. – Mark Sowul

Another answer I like is to use Handle, as it is both a command-line tool, and allows for wildcard searching: Read the rest of this entry »

Posted in Conference Topics, Conferences, Event, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

A couple DLL Locations that Windows uses to display Icons from

Posted by jpluimers on 2013/03/11

This one most people know of:

  • %SystemRoot%\system32\SHELL32.dll

But these files also provide icons:

  • %SystemRoot%\system32\filemgmt.dll
  • %SystemRoot%\system32\dsadmin.dll
  • %SystemRoot%\system32\els.dll

Various versions of Windows share the icon ID in those files, but have different visual content.

A tool like IconsExtract – Extract icon/cursor stored in EXE, DLL, OCX, CPL files can be used to view or extract those icons.

IconExtract works much better at finding the Index inside SHELL32.dll that is described at How Can I Change the Icon for an Existing Shortcut? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs.

Copyright issues might apply…

–jeroen

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

New Java update available: patch all your machines for yet another zero-day fix: Security Alert CVE-2013-1493

Posted by jpluimers on 2013/03/05

It starts to be not so funny any more: almost every week a new Java security update.

Time to update again, to stay secure and install the patch: Security Alert CVE-2013-1493.

On the funny side: Java 0day countdown.

–jeroen

via: Security Alert CVE-2013-1493.

Posted in *nix, Apple, Development, Java, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, Software Development, Windows, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: , , , , | 2 Comments »

How to make a disallowed-by-default Software Restriction Policy

Posted by jpluimers on 2013/02/22

Locking down your Windows system even further than the standard restricted user: How to make a disallowed-by-default Software Restriction Policy.

–jeroen

Posted in Power User, Security, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | 1 Comment »

The Missing Windows 8 Instructional Video (awesome 25 minutes, via: Scott Hanselman – G+)

Posted by jpluimers on 2013/02/21

A couple of weeks ago, Scott Hanselman posted a great Windows 8 instructional video.

It contains all the stuff that geeks like me will find out themselves over time, but in a well paced and complete manner:

… to give new users to Windows 8 a near-complete understanding of the major features including the Start Screen, Hot Corners, Full Screen Apps, Desktop Apps, The Store, Browsing, Doing Social Stuff, using the Mouse effectively and exploiting keyboard Shortcuts.

It also shows what a power user like Scott uses besides the standard Microsoft Windows/Office combo.

Oh: and it includes the “Windows-X” shortcut (:
(no: not the mobility center any more)

Recommended watch!

–jeroen

via: (12) Scott Hanselman – Google+ – The Missing Windows 8 Instructional Video. It’s 25 minutes….

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows, Windows 8 | Tagged: , , , , , , , , , | Leave a Comment »

Map WebDAV Drive tool: works in Windows 8 and Windows 7

Posted by jpluimers on 2013/02/15

Wow, I wish I had found this tool a lot earlier: Map WebDAV Drive.

–jeroen

via: windows – Mapping a Network Drive with Delphi WITHOUT WNetAddConnection2 – Stack Overflow.

Posted in Power User, Windows, Windows 7, Windows 8 | Tagged: , , , , | Leave a Comment »

Disabling the Microsoft Security Essentials service by commandline: MsMpSvc

Posted by jpluimers on 2013/02/01

There are (rare and offline) occasions where you want to want to stop/start the service that provides Microsoft Security Essentials.

A few notes first:

  • Only do this when you are off-line
  • Be sure to enable the Microsoft Security Essentials by starting its service as soon as possible
  • You need to be Admin (and on Vista and up with UAC using elevated security)

This is how: Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »