Windows Device Directory - User Manual

Windows Device Directory - User Manual


Cover Page

image.png

User Manual


Manual Conventions

The following conventions are used in this manual.

Courier

Font used to differentiate file paths and file names.

image.png

 General information and tips or tricks to make the most out of Windows Device Directory.

image.png

 Technical and\or background information.

As the screenshots within this document contain data from a production installation, some images have been redacted to prevent identification of personal data. Your installation will display correctly.


Overview

Windows Device Directory (WDD) is a software solution for Microsoft Windows that will record information about the devices that are connected to your network.

It enables you to:

Windows Device Directory comprises 3 x components described below.

WDD Viewer

The viewer (wddviewer.exe) is where you'll spend most of your time. This will cache, sort and display all devices that have checked in.

The viewer enables you to add information to devices such as asset recording, acquisition data, etc. and record important lifetime events such as software installation\updates, OS reinstalls, BIOS updates, etc. You can also attach device-related documentation and run remote scripts against selected device(s). Finally, it enables you to export or print a device list at any time.

It can also perform as a kiosk application as part of an IT dashboard. This can be useful as it can be setup to show devices checking-in ‘bubbling’ to the top of the directory as they are switched on making it easy to see which devices are in use.

WDD Service

The service (wddservice.exe) processes the client database files produced by your devices after having run the wddclient.exe program. This service should only be installed on a single device; that is usually left powered on such as a server or virtual machine (for example).

WDD Client

The client (wddclient.exe) must be executed on all of your Windows devices and is responsible for checking-in with the WDD service. When ran, it records system-specific device information that is subsequently processed by the WDD service.

The client runs from a network share and does not need to be installed on each device. It should be configured to run at regular intervals. For example; consider adding the wddclient.exe to a group policy setting such as the Startup Script in the All Computers GPO on Windows Server. 

image.png

To rule out connectivity issues associated with wireless devices, it is recommended to confirm your hired-wired devices  are able to check-in first. Once you know everything is working, you can add wireless devices.

Using WDD Client on standalone devices

The client can be launched on standalone devices not connected to the domain. This can be accomplished via a network share or using external storage.

Network share method

·       Connect to the Windows Device Directory network share as a domain administrator.

·       Right-click on the wddclient.exe file and select "Run as Administrator". Supply any network credentials as required.

External Drive method

·       Copy the wddclient.exe to an external or USB thumb drive.

·       Right-click on the wddclient.exe file and select "Run as Administrator" (this should create a folder structure on the drive if it doesn’t already exist.)

·       A database file with a .dbc file extension will be saved in the Clients\Staging folder on the USB drive (if the Clients folder doesn’t exist on the USB drive, it will be created).

·       Copy your new .dbc client database file(s) from the Clients folder on the USB drive into the staging folder of your WDD installation.

 Provided the WDD service is running, the new device will be imported automatically into WDD and the new device will be shown in the Viewer.

image.png

Remember! Standalone devices cannot check-in automatically and you will be unable to use remote tools or run scripts against them. However, you can still manually record changes to standalone devices and use their device  documents folder.



Windows Device Directory Viewer


Windows Device Directory Viewer

Navigation

The Windows Device Directory Viewer user interface comprises 3 main areas; the ribbon bar, the device directory and a status bar.

The Ribbon

The ribbon at the top of the program window, comprises a number of tabs containing groups of buttons which perform specific functions.

image.png

Hidden Ribbon

Hiding the Ribbon

·       Press the Toggle Ribbon button on the ribbon.

image.png

Visible Ribbon

Showing the Ribbon

·       Press the Toggle Ribbon button on the ribbon.

image.png

Hidden Ribbon

Device Directory

The device directory occupies the most screen real estate and contains a list of all devices that have checked-in to WDD. The directory is dynamically updated and uses images (where appropriate) to represent the content being displayed. See the Symbol Key for more information.

image.png

Device Directory

Features:

image.png

Selecting columns and reordering them 

Status Bar

The status bar is shown at the bottom of the program window and shows a summary of device information.

image.png

Status Bar

Features:

Context Sensitive Menus

Buttons on the ribbon bar have an equivalent context menu in many cases. 
For example, right-click on a device and a menu will be displayed.

Ju4image.png

Example Context Menu

image.png

These menus are context sensitive. If a menu item is unavailable (greyed-out), ensure it is appropriate for the selected device. For example, an archived device will have limited options such as restore and delete. Other buttons such as wakepingremote desktop, etc. will not be available.

Windows Device Directory Viewer

The View Tab

The directory can be viewed in one of five ways; large icon, tile, small icon, list and detail.

image.png

Large Icon View

image.png

Tile View

image.png

Small Icon View

image.png

List View

image.png

Detail View

Showing Device Groups

Enabling the Show Groups button can make it easy to identify devices with common characteristics.Your devices will appear grouped together according to the currently sorted column. For example, if you sort the directory by manufacturer, the devices will be clearly grouped together by the manufacturer. 

image.png

The directory will update and devices will appear grouped. 

image.png

image.png

 

Tip: If you sort your directory by the serial number column and check the Show Groups button, your devices will be grouped by serial number making it a trivial task to spot duplicate devices.

Hiding Device Groups 

Disabling the Show Groups button will remove grouping from your directory and default appearance will be restored.

The directory will update and devices will appear ungrouped.

Open a Layout

To open a saved layout.

image.png

The layout file will load and apply its settings to the directory.

Save Layout

The current directory layout comprising the currently visible columns, widths, sort column, etc can be saved for further use.

image.png

The layout file will save and become the most recently used layout file in the settings.ini file.

image.png

 

WDD Layout files (*.wddl) are used to save and load your directory settings to or from a file. They contain properties such as the visible column names, widths, currently selected sort column, whether device groups are enabled, etc. They do not contain any directory data.


 


Windows Device Directory Viewer

The Devices Tab

Devices are managed on the Devices tab. They can be viewed, edited, searched, managed and removed using the buttons here.

Displaying a Device

image.png

·       The device properties dialog should be displayed.

Assigning a Category to a Device

image.png

The device should change colour in the directory. If it does not, ensure the Categories button is checked!

See Categories

Showing Device Documents

Pressing the Documents button when one or more devices have been selected will display a Windows Explorer instance for each device. Each device has an associated folder and contains documents and other media for that device.

image.png

A Windows Explorer window will open for each of the devices you selected showing the documents associated with that device. Additional content can be copied in here to maintain a repository of information dedicated to this device and its history. Samples include loan forms, repair history, etc.

image.png

WDD (or scripts) may automatically create content here but you can also drop anything pertaining to the device into here as required. In this example, a folder containing repair information and a BitLocker recovery key have been added to the device documents folder.

image.png

image.png

The QRCode.png file is generated automatically. This comprises device information pertaining to the fields listed in the QR Code Content settings. The QR code can be scanned with your smartphone for instant device asset \ specification identification or printed as labels.

Opening a Device Database

Device database files can be opened directly in the portable version of SQLite Database Browser.

image.png

The device(s) database will be opened in a new instance of the SQLite Database Browser Portable program.

If the SQLite Database Browser (SQLiteDatabaseBrowserPortable.exe) cannot be found, the following message will be displayed:

image.png

image.png

The excellent SQL Database Browser Portable can be downloaded from https://sqlitebrowser.org/dl/. You will need to run the installer to unpack the archive, then copy the content into your WDD Tools folder. 

 

Searching for Devices

To find devices which match a certain criterion, you can specify a full or partial search term such as name, asset number, location, serial number, model, assignee, etc.

Select the Devices tab on the ribbon.
Press the Search button.

image.png

image.png

The search is quick and will clearly highlight any devices that match your selected criteria.

image.png

image.png

The search will only check columns that are visible! Searches will fail if you have hidden columns which contain the search text. Searches are not case-sensitive.

To Archive a Device

To move one or more devices to the archive (see reference section).

image.png

·       At the confirmation dialog, press Yes to archive the device or No to abort.

image.png

The device will be moved from the directory to the archive.

To Restore a Device from the Archive

To restore one or more devices from the archive (see reference section).

image.png

image.png

The device will be removed from the archive and appear in the directory.

Deleting Devices

Deleted devices (whether archived or not) can be permanently deleted from the directory when they are no longer on your network. 

image.png

image.png

The device database (and all of its associated documentation if selected) will be permanently deleted.

image.png

Devices deleted from the directory but still on your network will continue to attempt to check-in if the wddclient.exe continues to be executed. To prevent this behaviour, ensure that the device is placed in an organizational unit within your Active Directory that is unaffected by the policy which runs the client program.

Remote Tasks

Remote tasks can be ran against one or more of your devices.

Ping a Device

image.png

A command prompt window will be launched for each device and will show the results until the window is closed (same as PING mydevice -4 –t)

Remotely Control a Device

image.png

An instance of Microsoft Remote Desktop (mstsc.exe) will be opened and populated with the selected device(s) name.

Open the Boot Drive of a Device

image.png

A Windows Explorer window will open for each selected device and be rooted to the Windows boot drive (usually C:)

Run the Client Update on a Device (on-demand).

image.png

The client update (wddclient.exe) will run on the device and update the device on demand in the directory.

Run a script on a Device

image.png

image.png

The script will run remotely on the selected device(s).

Power Management
To Wake a Device

image.png

The selected device(s) should power on.

image.png

Wake on Lan (WOL) must be enabled on your device(s) in the system BIOS. You may also need to consider changes to made to the network adapter WOL and power management settings. Not all BIOS will respond to WOL magic packets.

To Restart a Device

image.png

The selected device(s) should restart.

To Shutdown a device

image.png

The selected device(s) should shutdown.

image.png

Shutting down and restarting your devices does so without further warnings. Use these functions with consideration of any current user(s).

Windows Device Directory Viewer

The Reporting Tab

The Reporting tab contains functions to setup, preview, print and export your directory.

Page Layout

Editing the page layout.

image.png

The changes will be applied to the current page layout.

Print Preview

To display a print preview.

image.png

The Print Preview dialog will be displayed. This will inherit characteristics set in the Page Setup dialog.

Print

To Print your Directory

image.png

The document will print using the properties set in the Page Layout component.

image.png

The Print and Print Preview options will target your currently selected default printer. You may need to change your printer prior to using these functions.

Export

To export your directory to a file.

image.png

The changes will be applied to the current page layout.


Windows Device Directory Viewer

The Program Tab

The Program tab contains functions to monitor, configure the behaviour and settings of the WDD software.

The Staging Folders

Staging folders are the directories which are populated when the service and client runs. Devices are processed from these folders.


Device Folder

The Devices Folder contains the devices in the Clients folder. These are clients that have been imported and added to the _devcache cache file. They can be managed by WDD.

image.png

Device Queue

The Device Queue folder contains devices files that have yet to be processed by the WDD service. It is checked regularly for updates. If the WDD service is paused or not running, device updates will continue to be placed here until the service as started and processed them. 

image.png

Devices with Errors

The Devices with Errors folder contains the devices in the Clients\Staging\Devices with Errors folder. 

If the WDD Service or client encounter any issues when harvesting or processing a database update, the databases are moved here and are renamed with a “.err” file extension.

image.png

Viewing the Staging Folders

To view the contents of these folders.

A Windows Explorer instance will be displayed, rooted at the selected folder. If a number balloon is displayed on the button, this indicates the number of devices therein. 

Settings

To display the Program Settings dialog.

image.png

The program settings dialog will be displayed. From here, the behaviour and appearance of WDD can be changed.

image.png

Program Settings Dialog

Run Backup

Regular backups of WDD should be taken to prevent data loss. The supplied backup program will zip the Clients and Config folder into a convenient compressed archive. This can then be used to recover from in cases of data loss.

image.png

Depending on the size of your Clients folder, it may take a few seconds to several minutes to complete. The backup will be copied into the folder specified by your settings.

image.png

The backup utility is a standalone program. If you want to forget about backing up, use Microsoft Task Scheduler to run an automated backup each day!

Lock Screen

The Windows Device Directory dialog can be locked if required. This will prevent unauthorized use in your absence.

image.png

Getting Help

To get assistance with the program.

The help file will be displayed.


Windows Device Directory Viewer

Installation

Minimum Specification

image.png

You must have Internet Control Message Protocol (ICMP) enabled on your network. This is used by the viewer, service and client programs.

Installing Windows Device Directory

image.png

Ensure you only download official versions of Windows Device Directory from www.johnfermor.co.uk Confirm that the files you download are consistent with the published SHA-256 hashes on this site.

Post Install Tasks

Once copied to your device, there are a number of tasks to undertake before the program(s) can be used.

image.png

Setting up the service

Important note regarding Antivirus Software

As the WDD programs and resources have been packed for portable use, antivirus software commonly report them as being infected; this is a false positive. Please add an exclusion to the Windows Device Directory program folder your antivirus software. 

Uninstallation

To uninstall Windows Device Directory:


Reference


Reference

Key to symbols

image.png


Reference

Device Properties Dialog

General

The General tab lists information harvested from the device. It includes BIOS information, Operating System information, etc. The asset management section can be modified with device specific information such as acquisition date, asset number and end of life disposal details.

image.png

Device Properties - General Tab

Features:

Software

The software tab lists all software currently installed on the device. Where possible, the name, version number, publisher and install date is displayed. 

image.png

Device Properties - Software Tab

Updates

The Updates tab lists all Windows updates currently installed on the device. The name, description, installer and install date are listed.

image.png

Device Properties - Updates Tab

Hardware

The hardware tab lists all hardware components installed in the device. Each node is collapsed by default, simply expand them to see the actual devices.

image.png

Device Properties - Hardware Tab

Drives

The Drives tab lists all disk drives (including network-connected ones) available on the device. The drive letter, label, size, usage and encryption status is shown.

image.png

Device Properties - Drives Tab

Timeline

The Timeline tab comprises an Outlook-style calendar which contains events that have occurred on the selected device. WDD will automatically detect certain changes to devices and these will be recorded here. Examples include; BIOS updates, disk replacements, system renaming, etc. You can also add events yourself to record device specific changes.

image.png

Device Properties - Timeline Tab

See Device Timeline


Reference

Categories

Categories can be used to indicate characteristics about the device such as whether they are: faulty, on loan, staff devices, pupil devices, PAT Tested, offline devices, etc. Categorized devices are displayed using custom colours and allow them to be easily differentiated from other devices (especially in a large directory.) 

image.png

Category View Example

A small number of category samples have been added by default. Additional ones can be added or removed as required.

Enabling Category View

Enabling category view will render your devices using the colours\category assigned to them.

image.png

Category View is enabled by default.

Disabling Category View

Disabling category view will turn off category colouring. The directory will be shown as a black and white list.

image.png

To Add a Category

image.png

image.png

image.png

The category will be added and will be selectable from the Categories menu.

To Remove a category

image.png

image.png

Select the unwanted category from the available categories.

image.png

The category will be removed.

image.png

Categories that are removed will be deleted from all device databases. This may result in a short delay whilst the device databases are searched and updated.


Reference

Manufacturers

Manufacturers are a collection of hardware manufacturers with their support website. Devices with a matching manufacturer (and website) will show as a clickable link in the WDDC. 

On clicking the serial number.

This will expedite obtaining warranty or device driver information.

image.png

Serial numbers without links will not be clickable.

To Add a Manufacturer

Select the Program tab on the ribbon.
Press the Settings button to display the Program Settings dialog.

image.png

On the Program Settings dialog, locate the System \ Manufacturers item and press the ‘…’ button.

image.png

image.png

The manufacturer will be added.

To Remove a Manufacturer

image.png

image.png

The manufacturer will be removed.


Reference

OS Versions

OS Versions (or Operating System versions) are a collection of known friendly names to represent the Windows 10\11 Build Number. When matched in the Viewer, the Version column will be populated with this friendly name in addition to the build information columns.
 

image.png

Showing OS Versions

To Add an OS Version

image.png

image.png

image.png

To Remove an OS Version

image.png

image.png

The OS Version will be removed.


Reference

Device Timeline

To add an event to the Timeline

image.png

image.png

You can also create a new event by double-clicking on an empty space in the timeline.

image.png

The event will be added to the timeline.

image.png

Once added to the timeline, events can be resized or moved using mouse drag and drop. Events in your timeline can be moved and resized in 1 minute intervals when pressing the ALT key during move\resize operation.

To Edit an Event

On the Device Properties dialog, select the Timeline tab.
Navigate to the required event by using the Day, Week, Month and Year buttons.
Double-click on the event you wish to edit.
At the Edit Event dialog, change the subject, description, start and end times and colour of the event as appropriate.
Press the Ok button to update the event, Cancel to abort.

image.png

Once added to the timeline, an event can be resized or moved using mouse drag and drop. Events in your timeline can be moved and resized in 1 minute intervals when pressing the ALT key during move\resize operation.

To change the colour of an Event

The  event colour will be  changed to the selected one.

To Delete an Event

image.png

The event will be deleted from the timeline.

image.png

You can also select the event and press the Delete key to remove it.

Reference

The Archive

Devices can be moved to the archive when you no longer wish to see them in your directory. For example, you may have loaned a number of devices and no longer wish to monitor them on a daily basis. Moving them to the archive will hide them from the directory but enable you to keep a record of them (auditing purposes, for example).


The View Archive button image will change from empty to full when it has content. Also, if a number indicates how many devices are in the archive.

To View the Archive

The directory will refresh to show only the devices that have been moved to the archive.

To Hide the Archive

image.png

The directory will refresh to show the normal (non-archived) devices.


Reference

Settings Dialog

The settings dialog contains properties which affect the behaviour and performance of WDD. It has settings for the viewer, service and client.

Appearance

Categorize using background colour

True: Show categorized devices with a coloured background.

False: Show categorized devices with a coloured foreground.

Layout File

The filename of the most recently used layout file. The MRU file is set when a layout file is saved or loaded. It is also added to the title bar of the viewer adjacent to the organization name.

Number of days to consider devices ‘missing’

Maximum number of days that a device has not checked-in. ‘Missing’ devices are highlighted in bold text.

Organization

Name of the organization. Used as the program title and within reports.

Show Disposed Devices

True: Viewer will show devices that have been disposed (or have a disposed date set).

False: Viewer will not show disposed devices.

Strikeout Disposed Devices

True: Viewer will show devices that have been disposed of with strikethrough text.

False: Viewer will not use strikethrough font hen displaying disposed devices.

Theme

The current theme used in the viewer. There are 7 themes available.

Behaviour

Copy Serial Number to Clipboard

True: If a device serial number is clicked, it is copied to the clipboard.

False: The serial number is not copied to the clipboard.

QR Code Content

The main body of the device QR Code. Fields can be added as a delimited string according to need. i.e. Name, Manufacturer, Model, Serial Number, etc.

image.png

 

QR Code Title

The plain text title of the QR code located below the main graphic.

image.png

 

Client

Connection Test Delay

The number of seconds to wait before attempting to re-test the network connection to the test site.

Default = 2

Connect Test Max Retries

Number of attempts to connect to the test site before giving up

Default = 5

Connection Test Site or I/P Address

A website or I/P address to test Internet connection

(Default: server \ 127.0.0.1 \ google.co.uk)

Service

Delete Cache on Startup

True: Deletes the _DEVCACHE file when starting the service.

False: Do not delete the _DEVCACHE file (Default)

Ping Check Interval

The number of PING processes before checking for device updates (Default = 20)

System

 

Backup Destination

The full UNC path of the backup destination. This may be on the WDD server or could be a different server or NAS.

Backup on Exit

True: Run a backup when WDDViewer.exe quits (default).

False: Do not run a backup on exit.

Categories ǂ

A list of available categories.

Display Date Format

The format of dates (locale). Default:

dd/MM/yyyy HH:mm:ss

Manufacturers ǂ

A list of hardware manufacturers

Maximum Backups

Number of backups to create before older ones are deleted.

OS Versions ǂ

A list of Operating System versions (matches build numbers with version names.)

Report Watermark

An optional diagonal message pasted across your printed directory reports.

Tools Path

The full UNC path of the tools folder. Default:

\\%SERVERNAME%\Windows Device Directory\Tools

image.png

ǂ You will need to maintain these manually or copy\paste from our support website www.johnfermor.co.uk.


Reference

Scripts

Scripts can be created for use in Windows Device Directory. Tasks such as backing up the devices’ BitLocker recovery key, harvesting drivers, activating a Windows product key, etc. become trivial as a script when executed remotely on your device(s).

image.png

Scripts are ran on your devices using the excellent PSExec from Sysinternals (https://learn.microsoft.com/en-us/sysinternals/downloads/psexec). You must download their PSTOOLS package and copy the PSEXEC.EXE into the WDD\Tools folder in order for scripts to work.

image.png

image.png

A number of scripts have been provided and can be found within the WDD Scripts folder. If you write a useful script, please let us know about it and it can be added to the scripts repository! 

Adding Custom Scripts

Scripts are batch files that are configured with a predefined header so that they can be listed in the Execute Scripts option shown above.

REM Name=SystemInfo.bat
REM Description=Runs the Windows SYSTEMINFO.EXE program and copies output to the device document folder.
REM Author=John Fermor
REM Version=1.0

Removing Scripts

Scripts that are no longer required can be deleted.

image.png

If you are unable to delete the script folder, try exiting WDD and ensure it is not open elsewhere. Then try again.

Example Script

This script runs the Windows SystemInfo.exe file locally and copies the output file into the devices’ Documents folder as SystemInfo.txt

REM Name=SystemInfo.bat

REM Description=Runs the Windows SYSTEMINFO.EXE program and copies output to the device document folder.

REM Author=John Fermor

REM Version=1.0

@echo off

setlocal enabledelayedexpansion

rem Get the directory path of the batch file

set "batchDir=%~dp0"

rem Get the computer name

for /f "tokens=2 delims=:" %%A in ('wmic computersystem get name /value ^| findstr /C:"Name="') do (

    set "computerName=%%A"

)

rem Set the target directory based on the batch file's location

set "targetDir=%batchDir%..\..\Clients\Documents\%ComputerName%"

rem Create the target directory if it doesn't exist

if not exist "%targetDir%" mkdir "%targetDir%"

rem Run systeminfo and capture the output to a temporary file

systeminfo > "%temp%\SystemInfo.txt"

rem Move the temporary file to the destination directory

move "%temp%\SystemInfo.txt" "%targetDir%\SystemInfo.txt"