show the entry list
WinCC -- Setting up development environments -- Installing / setting up operating systems
Why do other WinCC stations not appear in the network environment on the Windows 7 and Windows Server 2008 PCs?
Why should you not install the Microsoft security patches KB2467174, KB2467175, KB2465361 and KB2465367 in WinCC, PCS 7 and WinCC Professional V11?
What should you watch out for when using WinCC in a domain?
Which Microsoft Patches ("Security Patches" and "Critical Patches") have been tested for compatibility with SIMATIC WinCC?
What should you pay attention to when using WinCC with OEM operating systems?
How do you uninstall SP3 of Microsoft Windows XP?
Detailed information via the installed version of Microsoft Windows
Why can the WinCC uniclient not open the project from the server?
What restrictions are there for assigning the computer name for WinCC?
Logging off USB sticks from the operating system
How can you prevent Microsoft Windows Explorer from being opened as soon as you connect a USB stick to the computer or insert a CD/DVD in a drive?
How can you prevent the "Autoplay" function when inserting a CD/DVD or when connecting a USB device?
Logging off USB sticks from the operating system
Part number:

How can I remove a USB stick from my computer without having to disable it beforehand via the operating system?

In principle all device drivers have to be disabled before they are removed from the computer. This is done via the Windows function "Remove Hardware". If you have blocked access to the operating system through WinCC, then you won't have access to the above-mentioned Windows function.

In this entry we explain how to disable devices (e.g. a USB stick) using the MS application DevCon. The MS application and more information on DevCon is available on the Microsoft Support site, article number: 311272.


  1. Load the MS application DevCon from the Microsoft Support site ( Double-click the self-extracting file to unpack it in a folder of your choice (e.g. d:\Devcon).

  2. In this folder you create a batch processing file called "Devcon.bat".

  3. Edit "Devcon.bat" and insert the following lines:
    d:\devcon\devcon remove USB\VID* 


    VID is the device name. If you want to disable all the USB devices, use"*".

  4. Create a button in a WinCC picture.

  5. Open the Properties of the button.

  6. Switch to the "Event" tab.

  7. Select "Mouse" and double-click on "Mouse Click".

  8. Insert the following code line into the script:

  9. Close the Script editor.

  10. Save the picture.

  11. Now when you enable WinCC and press the button, the USB stick is logged off from the system. The requirement is that there is a USB stick is slotted.

Please also refer to Entry ID: 18796988 - "WindowsXP/2000 with WinCC V6.0 and USB Stick".

No warranty is ever given for third-party software. Use of the software is entirely at the users own risk.

 Entry ID:18796767   Date:2004-04-14 
I regard this helpfulas not helpful                                 
My Documentation Manager 
Support Request
To this entry
Create PDF 
Send to a friend
Compatibility tool 
Online Help
Guided Tour