Monday, July 31, 2017

windows 7 - Wake timers don't wake computer from sleep mode

I'm got a custom built PC running 64 bit Windows 7 Ultimate. So far everything works great except for one thing: it will not wake up from sleep mode for a wake timer or scheduled task.


Sleep mode itself works great. If it's sleeping, it wakes successfully when I press the power button, mash the keyboard, wiggle the mouse, or send a WOL packet. The only problem is wake timers. I even tried the program WakeupOnStandBy but it looks like that uses wake timers, so it doesn't do anything for me either.


And yes, wake timers are enabled:


enter image description here


Any ideas on how to fix the problem, or troubleshoot it? I'd imagine that there would be a log somewhere telling me exactly why the wake timers are having trouble, but if there is I haven't found it.

Java path variable. Nothing is fixing it at all

I have been trying to fix my Java path variable. I keep getting "'javac' is not recognized as an internal or external command,
operable program or batch file.". Is there any convenient software that fixes the path settings automatically?




Currently Path Variable is "C:\Program Files (x86)\Java\jre1.8.0_101\bin;PATH;%JAVA_HOME%\bin"



What do I do I have no clue? This is very frustrating. Please help.

audio - Windows XP machine is not making 'event' sounds

My neighbour has a machine running XP that no longer makes Windows 'event' sounds, such as the Startup/Shutdown sounds. I've checked all the obvious things. If I go in to edit the sound scheme, I can see the sounds are assigned to the event, I can click the little 'play' button and it plays the right sound. It just won't make any noise on its own.



What really got me stumped was that if I click the volume icon in the system notification area and then start changing the volume, rather than a ding sound at various volumes from the speakers, all I get is a beep from the internal speaker.



It's an HP machine of some sort, with Realtek audio.

command line - How can I use VIM to edit files from within CPrompt on Windows 8?

I was following a tutorial on how to use Git earlier. The instructor was using a Mac, and used a program called Nano to edit a file he made from the command line (or what it's called on a Mac.)


I am using Windows 8. I am using "Command Prompt with Ruby and Rails." At any rate, I thought I was out of luck on the snazzy Nano feature. However, I noticed CMD (the command prompt thing) has what I think is VIM as part of it. It came about as I tried to commit, and suddenly this VIM arose so I could edit the commit.


So my question is, can I use VIM to edit files the same way as someone with Nano could, thus it being an equivalent, of sorts? If so, how do I "call" this VIM in relation to a file to edit?

Sunday, July 30, 2017

macos - Are there any applications on the Mac to help create a bootable ubuntu USB stick

Are there any applications on the mac which would allow me to burn my ubuntu iso to a USB stick (I am not good at terminal.) Also, is there any way to make sure that a bootable stick created on the mac is usable on windows? Lastly, I only have a 1.87 GB stick. Will this be enough to hold ubuntu? I can also use a larger stick (8.00 GB) if the other one is not sufficient.

netbook - Windows XP Resolution is stuck on 800x600 Gateway LT27

So I formatted my whole netbook 256GB SSD and installed Windows XP Professional, and plan to dualboot. I first started with Windows XP, and the install went smoothly, I splitstreamed my old Windows XP disc with SP3 for less hassle. The computer is up to date, I installed all the drivers on the Gateway support page, however the resolution wont budge from 800x600. The native resolution of the netbook is 1024x600 on a 10.1" display, and I cant understand the problem. Any help out there? It is a Intel Atom N450, Graphics Media Accelerator 3150, 1GB RAM and 1.67 GHz CPU. In the device management program, there are two things in the display adapters, It says the GMA1350 twice, both have exclamation marks in them.


I am currently installing Ubuntu alongside XP, and even Ubuntu can identify the native display, why can't XP? Help is very much appreciated.

Saturday, July 29, 2017

Vista laptop doesn't boot after Windows Update

I've been having trouble with my Dell Inspiron 1420. I've just reinstalled Vista and have been going through all of the updates. There is one point however where my laptop has 90 something updates to install. I'm fairly certain one of these updates is responsible for my laptop not booting and I have to run a system restore to BEFORE I do the update to get it to work. How can I tell which update is the problem?

Friday, July 28, 2017

windows 7 - After a restart, preventing Group Policy Update from updating the registry values

My machine is part of a corporate domain and I have local admin rights on this machine.



Due to the GPs applied, I was not able to change my wallpaper. So I did a GPResult /v and figured out the problem was 2 registry entries in the following directory:



KeyName: Software\Microsoft\Windows\CurrentVersion\Policies\System\Wallpaper
Value: 67, 0, 58, 0

State: Enabled



KeyName: Software\Microsoft\Windows\CurrentVersion\Policies\System\WallpaperStyle
Value: 50, 0, 0, 0
State: Enabled



I deleted both the above entries, and now I am able to change the wallpaper. However, these entries are restored in the registry whenever I restart my machine. And once again, the wallpaper cannot be set manually.



Question:
Is there a way I can prevent the Group Policy from updating the above two registry entries on every restart? I don't want to disable all other GP updates pushed by my company.

PS: I have local admin rights.

windows - How to fix ASUS random reboot


As the title is saying, I can't turn on my laptop while it's cold, I need to put it on a relatively hot radiator.


When I turn it on and it's cold there is only the "Turn on /turn off" button working and there is no other activity. I've already tried without the battery but nothing changed.


Moreover, my laptop i srandomly rebooting in-game and sometimes on desktop (using vlc, watching streams, surfing on internet ect.) but I guess it's an independent issue .


What I've done :


-fresh install on new hard disk --> same issue


-changed physical memory --> same issue


-stressed test memory, cpu and gpu --> no reboot, handly all of those tests perfectly


-tryed linux debian jessie, using propriatary graphic card drivers --> same issue


-activated blue screen errors, nothing changed, blue screen's not showing


-changed thermal paste from cpu and gpu --> no overheat


-checked windows system logs :


Log Name: System
Source: Microsoft-Windows-Kernel-Power
Event ID: 41
Level: Critical
Description:
The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.

Sometimes it's rebooting quickly, sometimes not. But when launching a game, it's rebooting directly, after 1 second.


Something to know :


Got NO reboot while laptop is UNPLUGGED. So I've ordered a new alimentation since for me it's the only possiblity for now (receiving this one tomorrow probably) --> received new power adapter and still got this problem.


Laptop specifications : it's an Asus ROG 75VW


Screen Size     17.3 inches
Screen Resolution 1920 x 1080
Max Screen Resolution 1920x1080
Processor 2.4 GHz Core i7-3630QM
RAM 12 GB DDR3
Memory Speed 1600 MHz
Hard Drive 750 GB mechanical_hard_drive
Graphics Coprocessor Nvidia GTX 660M 2G GDDR5
Graphics Card Ram Size 2000 MB
Wireless Type 802.11bgn
Number of USB 3.0 Ports 4
Item model number G75VW-AH71
Operating System Windows 7 Integral Edition;
Processor Brand Intel Core I7
Processor Count 4
Computer Memory Type DDR3 SDRAM
Battery Type Lithium-Ion (Li-Ion)
Power Source Battery
Voltage 19 volts

Feel free to ask for more informations and thank you in advance if you've any suggestions .


Answer



The oven fixed all lol.
Both issues were coming from GPU.


If you're encountering the same issue with random reboot (saw a lot of topic with no solutions) just put your graphic card 10min at 240°C in your oven.
2nd card I'm repairing like this :-)
Bye.


Why don't the sizes of my folders add up to the size of my hard drive in Windows?



I'm thinking of installing an SSD on my machine at home, and the easiest way to do this is basically to clone my current hard drive over to the new SSD. Trouble is, if I right click on my current hard drive and select properties, my used space is 230GB, thus requiring me to buy a monster SSD.



However, if I right click on each of the top level folders in my hard drive and select properties, the total space used by those folders is only 140GB. 100GB of that is music and movies, which I can easily clean out before the move to the SSD.



So here's the rub, where did the other 90GB go? For the life of me I can't figure it out. Shouldn't the sum of the used sizes of all the top level folders in your C: drive roughly equal the used size of the C: drive itself?


Answer




There are hidden files and directories which contain system files that are not included in the calculation. System volume information, for example, contains your system restore points and volume shadow copies among other things. It is not included in the calculation because by default the ACL does not allow your user account to view the folder or it's properties. You can gain access to it if you really want to, however.



On another note, the cleanmgr.exe utility (better known as Disk Cleanup) can help you reclaim most of your disk space. The More Options tab allows you to delete all but the most recent restore points and Volume Shadow Copies.


Windows does not recognise GPU and NVIDIA driver refuses to install


After reinstalling Windows (moving from 7 to 8) on a Dell Dimension E520, Windows does not recognise the GPU. It's a GeForce 7300 LE.


The hardware IDs listed in the device manager are:



  • PCI\VEN_1002&DEV_71A7&SUBSYS_01871043&REV_00

  • PCI\VEN_1002&DEV_71A7&SUBSYS_01871043

  • PCI\VEN_1002&DEV_71A7&CC_038000

  • PCI\VEN_1002&DEV_71A7&CC_0380


The device instance path listed in the device manager is: PCI\VEN_1002&DEV_71A7&SUBSYS_01871043&REV_00\4&3886766A&0&0108


According to this PCI database, it's detected as an ATI RADEON X1300/X1550 Series Secondary.


I've downloaded the 307.83 driver for Windows 7 32-bit, which is the latest version with support for this card. There are no Windows 8 drivers available but these should work from what I've read, the system is Windows 8.1 32-bit. It refuses to install and displays this message:



This graphics driver could not find compatible graphics hardware



I've tried modifying C:\NVIDIA\DisplayDriver\307.83\Win8_WinVista_Win7\International\Display.Driver\nv_dispi.inf (the only .inf file in that directory) to append lines after the original lines for this card, as recommended by various pages on the internet:


%NVIDIA_DEV.01D1%           = Section001, PCI\VEN_10DE&DEV_01D1
%NVIDIA_DEV.01D1.01% = Section001, PCI\VEN_1002&DEV_71A7&SUBSYS_01871043&REV_00\4&3886766A&0&0108
...
NVIDIA_DEV.01D1 = "NVIDIA GeForce 7300 LE"
NVIDIA_DEV.01D1.01 = "NVIDIA GeForce 7300 LE - modified INF"

Sadly, this did not help. What can I do at this point?


Answer



If those are your hardware IDs, then you definitely do not have a GeForce 7300 LE. You have a AMD/ATI Radeon X1000 series.


Most likely there's no support for this on Windows 8. Your best chance is the Vista 32-bit driver from Dell. If the installer fails, try extracting the contents and using the Device Manager to install it manually by browsing to the location you extracted to.


Windows 10 update keeps breaking my graphics drivers whenever I reboot

Every time I reboot my computer, Windows 10 corrupts my graphics drivers. I get the following popup and the display adapter drivers show errors in the Device Manager:
enter image description here


This has been happening for a couple of days now (3 including today?) -- here's a screenshot I captured when it first happened:
enter image description here


The Device Manager says both my graphics drivers (I assume on-board and dedicated) are toast, and if I try to update either one, I'm told I have the latest version installed. The first time I was able to roll back one, update that one, and it updated and fixed both of them, but I no longer have the option to roll back. What I've been doing since is uninstalling the 7800 series and then rebooting, which forces Windows to re-install it, fixing the issue. But after it's fixed, next time I reboot, same problem.


I'm thinking this is a problem with Windows Update, so I looked and found the following question about disabling Windows 10 driver updates: How do I stop Windows 10 from updating my graphics driver?


Is disabling driver updates, whether by disabling all of them (last answer to the question) or manually disabling just the installation of updates for my graphics drivers (first answer to the question) really the best way to solve this problem? They both seem like duct-taping over a serious problem instead of directly solving it, and I can only see that causing problems in the future after I've hidden the problem in the corner and pretended it didn't exist.


Windows 10 Pro 64-bit Version 1511 Build 10586.71

windows 7 - Manually remove Microsoft Visual Studio 2010 Tools for Office Runtime (x86)

I used PC Mover when I upgraded to Windows 7 x64 from Windows XP 32 bit and it "helpfully" collected Microsoft Visual Studio 2010 Tools for Office Runtime (x86) without any warning that it wasn't compatible with 64 bit.




Now it's stuck in and can't be uninstalled normally because the uninstaller is also the install/repair program, which detects it's running on 64bit then quits.



Can I trick the uninstall into going ahead and removing it? If not, what all do I need to remove from the Registry and which files do I need to delete?



Or if I just delete the files, CCleaner should find and delete the Registry info pointing to the deleted files.

Thursday, July 27, 2017

windows - User-based keyboard key remapping


Is it possible to remap keys in Windows, but not for the whole computer, but only for the particular user.
I'm aware about the "Scancode Map" key in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout and some sites mentios a similar for HKEY_CURRENT_USER. But I tried, the latter doesn't work in Windows 7.


Answer



This would also be possible in AutoHotKey, its pretty easy to map keys to another key, you could create this script which would run when a user logs in, once the AutoHotKey script is closed (User logs out, or terminate from the System Tray) then it will stop mapping the keys instantly.


I think remapping is as simple as A::B and I think there is a tutorial on the AHK website:
http://www.autohotkey.com/


sata - S.M.A.R.T. Hard drive failure test?



I'm working on my mom's computer and she freaked because it told her "There was an imminent hard drive failure about to occurr." I did some digging and found it was related to the S.M.A.R.T. technology in the hard drive.




The message appears every time you boot, but it will still let you boot into Windows and every thing seems fine. How serious are these warning messages? Do we really need to immediately replace the hard drive?


Answer



Yes.
Stop using it. Take the drive out and attempt to back up everything you want. A HDD should not be used once it's started to fail (Once it's failed, it'll start failing more and more and more)



The drive could die now, or it could die in a year's time. There's no real way of knowing, all a SMART result can tell you is how the drive is performing right now. IMO, it's not worth the risk - back it up and replace it.


display - Extending monitor power supply DC cable


I have 3 LG monitors mounted on my desk.


Two of those are barely reachable by the DC power cable: it is only 1.2m long and I need at least 50cm more for it to fit in my cable management system. So at the moment those power blocks are just dangling from the desk.


Extending the AC cable part of the adapter is not an option: the actual block has to stay under the desk.


I can't find a suitable replacement adapter for my 2 screens, so I thought about extending the DC cable by +/- 50cm.


I've seen some posts here and there about the voltage dropoff when extending a DC cable, but those posts were mainly about extending the cables by a few meters, not 50cm.


I'm also worried about any noise it might generate in the signal.


So is there anything I should keep in mind when doing this?


And about the actual extending itself: if it can be done, do I need to solder the cables or can I use something like a screw-terminal block?


Power block with 20AWG cable of 1.2m length


Answer



The best way to do it is to solder the wires together and then put shrink tubing around them as shown in this video


https://www.youtube.com/watch?v=ATioUXpC05w


But it is probably sufficient to just twist the wires together without soldering as this video demonstrates


https://www.youtube.com/watch?v=V8_s1xr_p9Q


But try not to use extremely thin wire.


Wednesday, July 26, 2017

power supply - Would this AC adapter work with this external HDD enclosure?

So I've lost the adapter that came with my external HDD enclosure, but I have a pile of AC adapters, most are under-powered. This one is the closest, but it seems like the enclosure needs a little more amperage than the adapter would provide. Would it be safe to give it a try?



I've posted links to the specs on the HDD box, and the adapter I've found.



The HDD's power adapter specs are:
[Specifications 1]




AC input 100~140V, DC output 12V 2.0A





My spare adapter shows:
[Specifications 2]




Input 120VAC 60 Hz 27.1W / Output 12VAC 1670 mA


Delete the euro-sign (€) keyboard-shortcut (AltGr + E) via remapping the registry in windows

I'm trying to delete the AltGR + E shortcut for making a euro-sign via remapping in the registry in Windows.


I have found out that remapping in the registry is possible by searching some Stack overflow questions and found out that there is a Windows topic about the same issue. But I do not have the skills to code it myself :(


Has anybody tried something like this? or have a solution for doing this in the registry?


I'm on a Danish qwerty-keyboard on Windows 7. AltGR is the right alt-key on a danish keyboard.




Edit 19/07/13:


This is the KBDDA.dll file on my computer in the windows/system32-folder. It controls my Danish keyboard layout.


It has the following code:


enter image description here


What do I delete/change to get the AltGR + E shortcut to disappear?

All program groups in Windows XP show "Empty" after malware infection

I'm trying to repair a Dell laptop running Windows XP SP3 that was infected with a variation of fairly typical malware that makes a user think a virus was detected and prompts them to go purchase a solution.


I am pretty sure I deleted the executable responsible for the initial problems. Task manager had been disabled, right click had been disabled, all system files had been set to "Hidden" and all program folders in show "Empty" where you expect to see program names like Excel or Notepad. I did verify that all those program files are still in their proper folders, they've just been removed from the All Programs menu.


I unhid the files, I fixed the registry to renable right click, Task Manager, and to show desktop shortcuts.


However I still have a lingering problem in that all program groups continue to show Empty and the Quick Launch area next to the Start button is empty. I've confirmed that this behavior is present regardless of the profile so I can't just delete the user's profile and recreate it. If it's another registry setting I have been able to identify it. Anybody know how to restore these program groups? Thank you.

windows - Can a virus/ malware still linger if the symptoms of installing the virus are gone after system restoring to an earlier point?

So last night, I downloaded on my Windows 10 PC what I thought was a Minecraft setup file from Kickasstorrents (a mirror site). When I opened it, a window came which said it needed to verify if I am a human and told me to click on a button 'Begin test' which was supposed to give me a password that I would have to submit in that window. I clicked the button and it took me to a webpage. I forgot the exact address but it had the word 'humantest' somewhere in it.



Soon the browser (Chrome) was closed automatically. When I reopened the browser, I found my homepage has been changed to a weird-looking search engine site. My default search engine has also been changed. Furthermore, an extension was installed, which I removed from Chrome promptly.



But there were more symptoms. Porn ads would pop up on my desktop every few seconds. Windows asking me to install some even weirder-looking programs would also come up. Then ta blank window would come up which had the title of something like 'News'.



I was frustrated, because I never installed such a virus (or malware) in my life. But I decided to try a system restore. I restored to a point created the day before.



After the restore was complete, all those ad popups and program installation windows were gone. The only thing that remained was the default search engines on Chrome and I changed that manually.




Is anybody familiar with such viruses/ malware? Is there any chance the virus is still lurking somewhere deep down in my computer and doing nasty things?



(I am reluctant to install an antivirus, because it sometimes uninstalls many Chrome extensions I installed manually (from crx files). Also, they tend to make many other programs dysfunctional as well.)



Thank you very much for taking your valuable time to read such a long post.

MacBook does not go to sleep when plugged in since upgrading to Lion

My MacBook does not turn off when I put it in sleep mode, when it is plugged in. I put the laptop on "sleep" or close the lid, but the computer stays on and stays hot! My MacBook goes to sleep fine (turned off and had pulsating white light when on battery). If it is plugged in & I put it to sleep, the screen shuts off, but the computer stays on (solid white light)!


This has been happening ever since the upgrade to Lion! Is there any way to fix this?


It shuts down fine & it goes to sleep fine when on battery. It does not go to sleep when plugged in, that is the issue! I have already tried resetting SMC & PRAM, fixing permissions, and disabled startup applications!


My friends macbook pro goes to sleep fine with Lion! What is wrong! This did not happen in Snow Leopard!

Tuesday, July 25, 2017

microsoft excel - Convert a date & time text string to a date?

A program I use exports its measurement dates as MM/DD/YYYY HH:MM and excel sees it as text. How do I convert that so that excel recognizes it as a date? Also, the length of the text string varies (e.g. 11/24/2018 19:39 and 8/7/2018 8:45).



Coworker helped me write a solution, ended up have to use RIGHT and LEFT to pull the values out and then convert them. There's probably a cleaner way to do this (and if you can figure it out, please let me know!), but it took 6 more columns:



Date, Month, Day, Year, Time, Combined; where initial date text string is in column B2.



Date column formula: J2=LEFT(B2,SEARCH(" ",B2)-1)



Month column formula: K2=IF(SEARCH("/",J2)=2,LEFT(J2,1),LEFT(J2,2))




Day column formula: L2=RIGHT(LEFT(J2,SEARCH("/",J2,4)-1),(SEARCH("/",J2,4)-SEARCH("/",J2)-1))



Year column formula: M2=RIGHT(J2,4)



Time column formula: N2=TRIM(RIGHT(B2,5))



Combined column formula: O2=DATE(M2,K2,L2)+TIMEVALUE(N2)

windows - Operating systems on SD cards


I was getting some wild ideas the last days, like putting some operating systems into SD cards rather than on my hard drive. I'll go further into details now and explain what lead me to consider this probably abominable decision.


I am on a laptop (that means I have a native SD-card reader) which is currently running a cross-distro setup, with a bunch of Linux systems (placed in dedicated ext4 logical partitions into a huge extended one) regulated by an unique GRUB. Since today, my laptop haven't even seen any Windows system with binoculars. I was thinking about placing all the os part of my setup into a Secure Digital to save all my 500 Gb Hard Drive for documents, music, videos and so on, and being able to just remove the SD and boot my system into another computer too, as well as having the possibility of booting other systems into mine by just plugging in another SD, without having to keep it constantly placed in my PC. Also, in the remote case in the near future I just wanted to boot Windows 8 in it, I read it causes major boot incompatibility issues with other systems by needing a digital signature in order for them to start. By having it in a removable drive, I could just get rid of it when I'm needing him and switch its card with Linux one, and so not having any obstacles to their boot.


Now, my questions are: I know unlikely traditional rotating disk drives, integrated circuits ones have a limited lifespan in terms of cluster rewriting. Is it an obstacle to that kind of usage? I mean, some Ultrabooks are using SSD now, is it the same issue, or there are some differences between Solid State Drives and Secure Digitals in that sense? Maybe having them to store system files which are in fixed positions (making the even-usage of cluster technology useless) constantly being re-read and updated and similar things just gets them soon unserviceable, do it?


Second question: are all motherboards and BIOSes able to boot from SDs just like they are from USB pen drives (I mean, provided card reader is USB-connected, isn't it)? Or can't bootloaders like GRUB be installed on SDs working? If they can't, is it a solution installing GRUB to MBR and making boot option pointing to SD? Will it work? Are there any other problems to installing OSs on a Secure Digital?


Answer




a limited lifespan in terms of cluster rewriting. Is it an obstacle to that kind of usage? I mean, some Ultrabooks are using SSD now, is it the same issue, or there are some differences between Solid State Drives and Secure Digitals in that sense?



Yes and no. The same problem exists, but an SSD has a controller which does quite a few things. Wear leveling is one of them.


If you use a plain SDcard then you will have to take care of this in another way, e.g. by using a filesystem specifically designed for flash. (Wikipedia page with a list of filesystems used on flash). An other alternative is to just use flash as a backend in combination with a RAM drive. (Boot from flash, initialise RAMdisk, copy from flash to ramdisk. Run OS from RAM. Write changes only on shutdown).



Are all motherboards and BIOSes able to boot from SDs just like they are from USB pen drives
(I mean, provided card reader is USB-connected, isn't it)?



All motherboards I tested boot from USB (regardless if it is a USB pen drive, or a USB drive with the flash on a SD card rather then directy soldered on it.)


If you have a laptop with a fully integrated SDcard reader (e.g. not via USB) then things might differ.



Are there any other problems to installing OSs on a Secure Digital?



Some SDcards are quite slow. Check reviews before you buy and get one with low random access times and high IOPS. (The difference between these can be quite big. For an OS access time is important, and as you can see here, those vary quite a bit)


Conditional formatting in Excel according to today's date

I have an Excel file that links to some documents, certificates and such, which are valid for a year. For example, since Feb 20, 2014 until Feb 20, 2015.


To the right, I have a column in which are the dates of expiry, and next to it a column that is a month earlier - when I should start thinking about contacting the 3rd party to send us the new certificate for the following year.


Is there a way to make a date cell in excel be conditionally formatted (for example red background with while letters) depending on the date today?
For example, in that second column, all dates from Jan 20, 2015 until todays should be coloured red.


Is that possible and how would one go about that?

Windows 7 OEM product key isn't working


I have a problem with my Fujitsu Siemens Esprimo Mobile v6535 laptop. I got it from dump and the HDD was bad, so i replaced it. At the begining, i was using a non-genuine copy of windows (because the COA sticker was damaged and unreadable) , but i erased that copy so i can have a genuine Windows machine.


So what's the problem ?

Well, i managed to recover a genuine Windows 7 Ultimate x86 key from the old corrupted hard drive and i wanted to use it on a Windows 7 installation downloaded from DigitalRiver. But when i tried to activate Windows, i got an error 0xC004E003 (which says : The Software Licensing Service reported that license evaluation failed.)


I checked the product key with Windows 7 product key checker to see if it's genuine, and it seems to be a OEM SLP license type (not sure what means).


enter image description here


What can i do to activate my copy of Windows ?


Answer



"What is an SLP product key?


A System Locked Pre-installation key, or SLP key, is a product key that does NOT require activation, and is used by major OEMs (Dell, HP, Lenovo, etc.) with Windows Pre-installation deployments, a special way to install Windows for cloning to PCs en masse.


How can I install an SLP key?


You cannot! SLP keys will NOT install on a standard installation of Windows using standard media (OEM, Retail, Upgrade, Technet/MSDN, etc. etc.) Additionally they may be locked to a particular OEM (ex. Dell.)


The only way you will get a copy of Windows installed using an SLP key is with the original installation media from the OEM, which is usually an imaged based “installation” with all the bloatware on it – maybe except in the case of Dell, which typically will ship Dell branded standard Windows installation media with the SLP key embedded. Point being, you’ll never need to know what an SLP key is, because you’ll never have to enter one during an installation – if you were to be prompted for a key during install, then the SLP key isn’t embedded, and guess what, it won’t work anyway."


Source of Information


keyboard - How do I write special characters without AltGr key?


I ran into a problem trying to write some special characters like {}, @ etc using AltGr key. It is not system-wide issue, I encountered it just in Android Studio IDE and I already solved it in Android Studio IDE using this answer.
BUT that answer says that some newer keyboards don't have AltGr key, so some software doesn't rely on it's presence. That sort of implies that there is another way to write special characters like these {}<>[]@& on non-english keboard.


I was just wondering if there in fact is such a way other than changing input language every time I want to insert special character or having to punch in its entire ASCII code using alt+numpad combo.


Just to be clear, I have Czech keyboard and Windows, but answer for OSX would be appreciated as well.


Answer



The simple answer is to use Ctrl + Alt instead of Alt Gr. That works for all special characters on my keyboard.


I would imagine that the keyboard layouts you're referring to (that doesn't have an Alt Gr key) simply only have two versions of input characters on each key, i.e. the normal character, and the one produced when holding Shift.


Monday, July 24, 2017

64 bit - Can't start program by PsExec on windows server 2003 64-bit

I ran PsExec on a windows server 2003 32-bit machine to remotely launch a program on a windows server 2003 64-bit machine. The program is a win32 program with dependency to



msvcr80.dll, msvcp80.dll, msjava.dll, PocoFoundation.dll, PocoNet.dll.


The process will freeze and looks like fail to start the user interface.



However, the program was running fine if I log on that 64-bit machine and double click on it. What could be wrong with using PsExec to launch it? I use process explorer but couldn't find anything. Thanks.



EDIT:

An update, this issue is actually happening to every program that launch by psexec on that host.



For example, if try to use psexec to launch notepad.exe, I can see the process name (notepad.exe) in task manager, and notepad tab on taskbar. But when click on notepad tab, the window won't show up. It looks like the application stuck in the middle of launching process.

windows 8.1 - Unexplained RAM usage



I have had my MSI GT70-20C laptop for almost a year now but recently I have been having trouble with performance drops due to the over use of memory. This occurs when i start doing activity or even running low intensity games.



My laptop has 8Gb or Ram and even on start-up it is using 77% of memory. This doesn't sound right to me and it is only recently that I have noticed a drop in performance. The only real major background activity is from my BitDefender, but even then it is only using 200MB. Could you guys please have a look and see what other stuff does not need to be running or killing my memory?




I have attached some screenshots of my processes in task manager to try and narrow down what is need and which is not. Please ask for more details if required.



memory usage screenshot
memory usage screenshot
memory usage screenshot
memory usage screenshot
memory usage screenshot



As i do not have enough reputation to add photos or more then 2 links please refer to my question at stackoverflow for more detail.




enter image description here


Answer



Thank you Scott Chamberlain for suggested the RAMMap application. I downloaded it and found that i had a 4GB driver lock. After taking some time to think what could be the reason for this, i revisited my Hyper-V and found i had a virtual CRM server with a dedicated 4GB allocated to it! Been running for 4 months without me realising!!


Fresh installed Windows XP refuses to update

today I installed Windows XP SP2 Home on a computer. I went to try to run Windows Update on it and was greeted with "The website has encountered a problem and cannot display the page you are trying to view -- error number 0x8024400A"


enter image description here


I've encountered this kind of problem a lot of times. I remember when I worked at a computer repair shop 6 or so years ago I encountered it on a lot of computers running Windows XP. I never figured out how to fix it other than to do a reinstall of Windows. Googling for the error number never came up with any solutions either.


What is it that causes this problem and how do I fix it?


Edit:


Well, now I've installed windowsupdateagent30-x86 and that got me to where I can now browse a list of needed updates, but when I go to install updates I get the same generic error message, but with error number 0x80070715

Sunday, July 23, 2017

laptop - Using adapter with higher output voltage?

My adapter is broken, and I'm currently using another one while I'm waiting for a new adapter.



The input voltage and amps are the same for both adapters, while there are difference in the output specification.




The original adapter is 19V and 3.42A, and the one I'm using now is 20V 3.25A.



How will this affect the laptop? Is it safe to use this adapter for a week?

How do I remove a partition from a write-protected USB drive?

Just got this USB drive as a freebie.
It has two partitions, and only one is write protected ... so it's not a switch.
Tried EnableUSBWrite.reg
And tried reformatting from cmd.
Diskpart doesn't list the drive.
Suggestions?

Installing Windows 8.1 I get "You cannot install Windows on a USB flash drive from Setup"



I'm trying to install Windows 8.1 RTM (from MSDN) ontop of a Windows 8 installation.



When trying to run the upgrade from Windows 8 running Setup.exe either from ISO or from a USB stick I get:



"You cannot install Windows on a USB flash drive from Setup"



Windows 8 is installed on C: and there are no connected USB drives when installing from ISO, or the USB key when trying to install from that.




I've also tried installing off the bootable USB key by booting from there, which gets me to the point of selecting a drive to install on at which point it tells me that there's no valid partition.



Other info:
I deleted the Windows recovery partition some time ago and when running the full setup from the USB key the 8.1 installer created a new empty one (even before it asked permission to install anything). So now I have an extra partition that's showing up as an extra drive letter and I can't remove it even using DISKPART.



Installed 8.1 on another machine today and that worked without issues, so it seems clear that this is related to the machine config somehow.



Any ideas what the installer is getting hung up on here?


Answer



Check this thread: http://answers.microsoft.com/en-us/windows/forum/windows8_1_pr-windows_install/you-cant-install-windows-on-a-usb-flash-drive-from/be16d060-7b7f-48fa-b56e-4faf7cd28a6d?msgId=5cbe976a-de77-45a0-93c3-82aa860dcc38




Especially part about:



change the value of PortableOperatingSystem in regedit HK_Local_Machine/System/CurrentControlSet/Control/ from 1 to 0



It worked for me.


compression - Compress large CSV FIle? (500MB)




I have a CSV-File which is 500MB of size. I am searching for a way to compress is to it smallest possible size. I actually received the file back then in a ZIP-Folder which was only about 50MB of total size, therefore i know it must be possible to compress that file this much. I am using 7-Zip and i tried every possible combination already but i only can compress it by about 20 MB, means from 500MB to 480MB. Do you have any advice on that? Thank you very much.


Answer



Thanks to "DrMoishe Pippik". He told me that the problem could be a memory limitation of the device i am using to compress the folder. This was exactly the problem. I compressed the file on another device and now it is compressed to 90MB. By the way, i am using the most current 7-Zip Version on both devices.


Saturday, July 22, 2017

security - Windows 7 indicates "you need permission to perform this action" (deleting file)



I'm logged in as an Administrator on Windows 7. When I try to delete a folder (which shows Security settings indicating that Administrators have FULL access) I get a message that :


You require permission from SYSTEM to make changes to this file.


I don't have any other user accounts on this computer.


What's up with this?


Answer



I figured it out:


The file is owned by SYSTEM (system service)


You have to change the ownership via command line: takeown /f (this is from How To Geek which then recommends using the CACLS command but that's been deprecated and it's easier to do it via the Security interface)


Right click the file and choose Properties> Security tab> choose Administrators (if you are one) then set the Edit Permissions, setting it to FULL.


Friday, July 21, 2017

windows - How to control CPU Usage of ntoskrnl.exe!MiWalkPageTablesRecursively



Following the post on tracking high CPU usage by the kernel, I thought I had debugged an issue that had been plaguing me, namely 20-30% consistent CPU usage by the System process. See my previous post about it.



I setup Windows Performance Analyzer and was able to trace the process to this:
WPA Trace Log
I thought it had to do with the Page file guessing by the function names, and disabled my page file, and restarted, but windows instead on having a page file and threw an error.
So I created a small pagefile about 100MB - 2048MB.




That seemed to have solved the problem for a few weeks, but now it's here again, even though the pagefile is only 2GB.
It seems to happen after the system has been up for a while.
Current uptime is 8 days.



If any kernel expert can give advice on what I should try next, I'd be happy to do it.



However Process Explorer shows a different thread under the system image. I don't know how to reconcile this difference:



InitAnsiStringEx




Process explorer typically shows the above, though at other times it can show debug filter state ...etc.



enter image description here



(It's always ThreadID 56 I believe) But the several trace logs always seem to show what we saw above as the issue.



EDIT



Added images as requested for RAM. This is after a fresh restart where the problem doesn't exist.




RAM Usage
Process Details working set



The configured symbol paths as recommended by Blog to speed up symbol loading



Process Explorer



procexp symbols path



WPA




WPA symbols path



The file sizes of the cache folders



symbols info



Multiple versions of dbghelp.dll found on system. Currently pointed to system, but don't know which one it should point to.



dbghelp.dll versions







UPDATE



After following the link for finding Zombie Processes, I discovered the following data (truncated to remove minor entries)



374 total zombie processes.
334 zombies held by explorer.exe(1768)
298 zombies of Fences.exe

9 zombies of LogonUI.exe
7 zombies of chrome.exe
10 zombies held by ctfmon.exe(4568)
2 zombies of chrome.exe
7 zombies held by dopus.exe(27672)
3 zombies of AcroRd32.exe
2 zombies held by RuntimeBroker.exe(12184)
2 zombies of WWAHost.exe
1 zombie held by SkypeHost.exe(190152)
1 zombie of SkypeApp.exe

1 zombie held by SecurityHealthService.exe(4536)
1 zombie of MsMpEng.exe
1 zombie held by svchost.exe(1988)
1 zombie of userinit.exe


This implies that FENCES.exe was the cause, so I've updated that program and will check again later. Also disabled synergy to ensure that wasn't the cause.



Update 2




After a fresh restart and update of fences. The problem persists of the zombie processes, so I will have to uninstall fences to resolve the issue.



This is the version of fences



enter image description here



and the list of zombie processes after a fresh restart.



16 total zombie processes.
7 zombies held by explorer.exe(9484)

5 zombies of Fences.exe
1 zombie of GoogleUpdateCore.exe
1 zombie of DropboxUpdate.exe
1 zombie held by svchost.exe(1788)
1 zombie of userinit.exe


sidenote



Wouldn't it be cool if we had software AI that would be able to help with all these things?



Answer



The quick answer: Give that routine less work to do. Which I think means either use less virtual address space at one time, or add more RAM.



Details: First, the routine you're seeing, MiWalkPageTablesRecursively, has little to do with the page file directly, but rather with page tables. Page tables are in-memory structures (and are present in all Windows systems regardless of pagefile configuration). Every process has a set of page tables, and there's a set for the OS's address space ("kernel space") as well.



Page tables are composed of page table entries; there is one PTE for for each page - 4K - of the process's defined virtual address space. By "defined", I mean it includes the process's mapped and private committed address space, and AWE regions if any; it doesn't include reserved or free address space - regions which would throw an access violation if you tried to read or write them.



(By the way: Not only will you still have page tables even if you don't have a pagefile. You will also still have paging, and page faults to and from disk, even if you don't have a pagefile.)



The problem here is likely not inherent in MiWalkPageTablesRecursively. After all this function (or an equivalent under another name) has been part of Windows since NT 3.1. It's in the fact that it's having to do a lot of work. This likely means that it's being invoked often.




A clue to why this is the case is seen in the routines that are earlier on the stack. (That is, closer to the top on the WPA display.) It looks like the caller of MiWalkPageTablesRecursively in this scenario is
MiWalkPageTables, which in turn is being called by
MiAgeWorkingSet, which in turn is being called by
MiTrimOrAgeWorkingSet, which in turn is being called by
MiProcessWorkingSets, which in turn is being called by ... that's as far as we need to go.



Every process in a Windows system has a structure called a "working set list". This is a list of all of the physical page numbers that have been faulted into RAM as a result of the process's page faults. The thread (the "Balance Set Manager" thread) is awakened once every second to do cleanup and maintenance on every process's working set. So MiProcessWorkingSets iterates through the processes, dealing with each processes' working set in turn.



For each process in the system, MiProcessWorkingSets calls MiTrimOrAgeWorkingSet. This routine name refers to "trimming" a working set (which means identifying long-disused pages and evicting them from the process to make room in RAM for other things), or "aging" the working set, which means incrementing the "age" counter on each working set list entry that hasn't been accessed since the last time it was scanned, or zeroing the counter if it has been. (The name refers to the "aging" task that's done in accounting, usually every month or every day.) The "age" counter is then used by the "trim" function to identity the most-disused pages.




From the fact that MiTrimOrAgeWorkingSet ends up in MiWalkPageTablesRecursively, we can infer that they are scanning the virtual address space as defined by the page tables to find the pages that are in the working set. Now consider: The time needed by MiTrimOrAgeWorkingSet to handle each process will be roughly proportional to the size of the process's virtual address space. And the total time needed for each pass through MiProcessWorkingSets will be roughly proportional to the number of processes.



Either this thing is dealing with a very large number of pages in one process's working set, or else it's having to deal with a lot of processes.



And... why would it be so busy? It doesn't "trim" working sets until they've been aged, and the amount by which it "trims" the working sets depends on RAM pressure - that is, how short you are on RAM.



Is your system short on RAM? Please post snaps of Task Manager's Performance tab | Memory page, plus the Details page sorted by the Working set column; plus Resource Monitor's Memory tab, sorted by the Hard Faults column; and RAMmap's Use Counts page.



Also, please post more of the WPA trace you have, showing more "depth" of the calls. Or post the .etl file on a sharing service somewhere and link to it here. (Zip it first - they compress really well.)




Aside: Why routine names don't match between WPA and Process Explorer



As for the routine names, the real question would be "why routine names displayed in Process Explorer are just plain wrong." There are two reasons for this in your case and you have to fix both of them.



The first problem is that it looks like you don't have symbols configured correctly for Process Explorer. Configuring them for Windows Performance Analyzer isn't enough.



A sure sign that you don't have this right is that all or nearly all of the threads in the "System" process show up with a module name (something.sys or something.exe, usually ntoskrnl.exe) followed by an offset, such as +0x245 - as in your screen cap. It's ok to see a few like that, but you should be seeing a whole bunch of ntoskrnl!routineName followed by no offset.



To fix this, see this page from the Windows Performance Analysis Field Guide. You need to set Process Explorer's symbol search path - you can use the same symbol file path you set up for WPA - and you need to point ProcExp at a DLL that comes with the Windows Debugging Tools. So you will need to have the Debugging Tools installed - not that you're using the debugger directly, but Process Explorer needs that DLL.




The second reason for the discrepancy is that even after you have the symbol files set correctly for Process Explorer, the routine names it displays won't often match the names of an inner-level routine identified by Performance Analyzer. You should find a match, though, on a routine name near the beginning of the stack (displayed at the top of the routine call tree as shown in WPA).



For example - in your case the first routine of interest is KeBalanceSetManager. (The two before that are the same for every thread in the system process, but KeBalanceSetManager is the routine that's the "top level" routine for this thread.) Once you have symbols configured correctly, Process Explorer should show you a thread with that as the "Start Address", as shown here:



here



Process Explorer can't show you MiWalkPageTablesRecursively because that is about six calls into the stack from what's recorded as the thread Start Address, and it isn't even the current innermost routine (ie it's not at the top of the stack). Such information (even if easily available, which it isn't) would change far too rapidly to be useful in a Process Explorer display, so it doesn't try.



Note: Even with correct symbols it is not uncommon to find a few of the threads in the system process showing "Start Address" of e.g. GemCCID.sys+0xd138, as you'll see in my example. The module in question (GemCCID.sys) is evidently not one for which Microsoft provides symbol files, so Process Explorer just has to say "the thread start address is at 0xd138 bytes from the start of the code in this file, and that's all I know about it."




Hope this helps! Please let me know if you have further questions.


hard drive - Partition recovery for NTFS partition with corrupted MFT

The affected SSD is removed from a laptop with 4 partitions to be used in an external enclosure, one primary partition (C:) cannot be found in Windows, but could be read in Ubuntu. After I was trying to fix it with TestDisk in Windows, now it cannot be found or read in Ubuntu as well. I don't know what I did with TestDisk but the MFT was corrupted per Chkdsk and could not be repaired.


I used active@ partition recovery demo edition and made a raw image of that partition on another HDD. The superscan on the original disk found that C: partition in a bad status with missing $MFT, $MFTMirror and other attributes but the superscan on the raw image found that C: partition in an excellent status with all the files that I can preview in binary form.


The C: drive is about 100G, Im tempted to purchase the full version of active@ partition recovery (btw, if you know a better alternative please let me know) to recover the partition from the raw image , but should I do it in place or on another HDD? And there are several things not that clear to me:



  1. Does what has happened suggest there are physical damages on my original SSD? Should I stop working on it now to prevent further loss? the other three partition, two seem pretty normal, one is called "system reserved". I don't know if MBR should be on this partition or the corrupted C:? I did managed to write booting information on both this partition and the C: with TestDisk that completely corrupted it. I'm still confused where should the MBR be. If it's on C: can the active@ partition recovery recover it?


  2. The active@partition recovery found loads of volumes (can post a screenshot later), except for the good C: that I can recognize and plan to recover, I don't know what to do with the rests. Some are with FAT boot sector which I wonder why, and named "EFIxxxx" , and loads are simply with bad sectors.


windows 7 - Advice on replacing hard disk with bad sectors

So recently my I encountered an event 11 atapi error in my event viewer. It says The driver detected a controller error on \Device\Ide\IdePort0. I am running Win 7 SP1. This all started after I noticed some intermittent FPS drops when playing a game. I suspected it has something to do with my hard disk.


So I downloaded Seatools, ran all the available tests and the disk failed the long generic test but passed the others. I also ran HDDscan and crystaldiskinfo to check the smart values and it doesn't look too good:


https://imgur.com/a/yIuVxFR


Judging from the image, I think my hard disk has some bad sectors. So I transferred all my games to a different disk. Right now the disk only contains media files i.e movies, comics and music. There are no programs installed on this disk. It is 4 TB in size, partitioned into 4 parts, but not all the space are used. It still has roughly 1.2 TB free.


The thing is, even though this hard disk is only roughly 5 years old, it rarely sees heavy duty work. I only use it to dump media files into. Most of the time it remains unused, except for occasionally viewing the stored media files. It's a seagate ST4000DM000. I'm a bit dissapointed, since my other drive, a Toshiba is running perfectly fine with no errors reported despite being older and having all my programs and windows installed on it. It's definitely seen more usage than the Seagate.


I ordered a new WD Red 4 TB and right now I need several advice on how to proceed. I want my new drive to be as my old drive with all the partitions for a seamless experience so I have several questions:



  • Should I just clone the old hard disk onto the new one? If I do this, what are the risks of the having the bad sectors replicated onto the new drive? Will this decrease the longevity of the new drive?

  • Or should I use Windows 7 backup tool to backup the entire hard disk to the new one and restore it? If I do this, can windows restore the exact clone of my old drive with all the partition letterings? Will the bad sectors be duplicated?

  • Or should I just make the exact same partitions with the new disk and copy and paste everything manually? Which method is the safest?


And finally when the transfer is complete, can the old hard drive still be used after I reformat it? Are the bad sectors fixable?


Thank you very much for your advice.
t

Will new power supply damage current system


I am in the process of buying a 460 Watt PSU (Cooler Master eXtreme Power Plus RS-460-PCAR) to upgrade my computer and be able to run a stronger graphics card. The specs of the PSU is somewhat different from my current PSU and I am scared that it might damage some of the components.


I am running a Dell Optiplex GX270 Pentium 4, 2400 Mhz, 3072 MB (DDR SDRAM) with a standard dell factory PSU.


Please see the difference and tell me whether or not this will be suitable. I have taken this down from my current PSU and as stated by the following website link


Specs:


AC Input:


Current/Old:


100 ~ 127V~/ 6A
200 ~ 240V~/ 3A
50~60Hz


New:


115V/230V; 10A/6A; 60/50Hz


DC Output:


Current/ Old:



  • +3.3V : 18A (Max Output: 150W)

  • +5V : 22A (Max Output: 150W)

  • +12V : 14A

  • -12V : 1A

  • +5Vfp : 2A

  • MAX OUTPUT POWER 250W


New:



  • +3.3V : 22A (Max Output: 165W)

  • +5V : 25A (Max Output: 165W)

  • +12V1 : 18A (Max Output: 312W)

  • +12V2 : 18A (Max Output: 312W)

  • -12V : 0.5A (Max Output: 6W)

  • +5Vsb : 2.5A (Max Output: 12.5W)


Please assist me in buying the correct PSU. Will this new one damage my current components?


Answer



All these power/amperage ratings are maximums, your system will only draw the current it needs.


Think about the normal mains electricity from a wall plug. Here in the UK it is normally 230V / 13A (effectively). A 13A kettle will draw 13A, while a 50mA phone charger will just draw 50mA - no risk on damage. The principle is the same here.


So no, higher maximum amperage output will not cause damage.




If you are going to also upgrade your machine make sure the new PSU has a maximum output above that of your new set of components, because too little power will cause you problems (crashing / restarts / PSU blow-out ).


Windows could not search for new updates - Error Code 8024402F / 80072EFE



I've recently started experiencing some issues with a couple of workstations on my network getting the above-mentioned errors when trying to check for and download updates for Windows 7 (x64). Sometimes I get the 8024402F error, and sometimes I get the 80072EFE error. I've attempted to resolve the problem myself through liberal use of Google-fu, but I've been unable to find anything yet that will allow these computers to check for updates.



For now, I'm just working on one of the (apparently) three computers on my network that are having the problem because it's a computer that isn't actively in use for production at the moment.



If you're experiencing this issue and stumbled across this thread but haven't tried one or more of the steps I list below, I'd suggest going through these first. Most people swear by the Kaspersky TDSSKiller application I mention, even though it didn't work for me.




UPDATE - RESOLVED: If you're getting one of the two errors identified here, the first troubleshooting step you may want to try, regardless of which of the two errors you're encountering, is to simply reboot and/or update whatever firewall solution you're using. Our problem was apparently caused by something in our hardware firewall, and a reboot "cleared up" whatever was causing interference in the connection to the Windows Update servers. See the self-accepted solution below for additional details, but hopefully, this will save you from chasing your tail in your troubleshooting.





In my research, the most common cause reported for these errors is some sort of virus or rootkit infection. Many articles point to a rootkit detection tool provided by Kaspersky Labs (Anti-rootkit utility TDSSKiller) as the best solution as it seems to resolve most problems. Other malware detection tools to try include MalwareBytes, Spybot Search & Destroy, Microsoft's own malware detection tools (Safety Scanner), etc. I've run several different variants, including our internal antivirus solution, ESET Endpoint Antivirus in an effort to ensure there is no infection, and all of them come up clean.



Per another thread in the Microsoft Community forums for a different Windows Update error (Windows Update Error Code 80244019), I also checked the status of Data Execution Prevention on the affected workstation to ensure that it was set to Turn on DEP for Essential Windows Programs and Services only (which it was).



The next step was to try to reset the Windows Update components. I followed all of the instructions listed in the Microsoft article, "How do I reset Windows Update components?", and even created a batch file to run through all of the steps automatically in case it worked so I could run it on the other affected workstations.




Per a recommendation from another System Administrator with whom I've been discussing the issue, I even reset TCP/IP on the workstation in case there was a problem there that was causing the interruption. For this, I followed the instructions in the Microsoft article "How to reset TCP/IP by using the NetShell utility", but I still continue to receive one of the above-listed errors when I attempt to check for new updates after rebooting.



One user suggested that the issue could possibly be with the firewall blocking communication, so I went to my SonicWALL configuration settings and added all of the following URI's to the "Allowed Domains" list (whitelist) for the firewall's content filter. For reference, here are the URI's I added. (I know there's some "overlap" in these, but I pulled the list from the following TechNet forum thread, "Windows update IP addresses range and subnet mask for Windows Server 2008.".)




  • windowsupdate.microsoft.com

  • *.windowsupdate.microsoft.com

  • *.update.microsoft.com

  • *.windowsupdate.com

  • download.windowsupdate.com


  • download.microsoft.com

  • *.download.windowsupdate.com

  • wustat.windows.com

  • ntservicepack.microsoft.com

  • stats.microsoft.com



I haven't been able to find any other useful articles or forum threads at this point, and both I and the other System Administrator I've been working with have run out of ideas. Has anyone else run into and resolved this stubborn problem? Any suggestions would be greatly appreciated.



NOTE: Other workstations including my own do not seem to be experiencing any problems checking for, downloading, or installing updates. The affected workstations do not appear to have any other network/Internet-related issues, as far as I can tell. The problem only seems to be with checking for Windows updates. All of the workstations on the network have the same basic configuration when it comes to AV software scanning and security.



UPDATE: I went ahead and ran the System File Checker utility (sfc /scannow). It did find some corrupted files (looking through the CBS.log file, I only found one file listed: diskmgt.CHM - a compiled HTML file for the Windows Help system), so I rebooted and tried again, but I'm still getting the 80072EFE error. Per comments, I'm still looking at our SonicWALL, but the fact that not all workstations are affected makes me less-than-optimistic about finding a solution there.


UPDATE #2: Per a suggestion in the comments from @Ramhound, I manually downloaded the January 2018 "Security Monthly Quality Rollup" update directly from Microsoft's catalog site and ran the .msu file on the workstation I've been working on. Everything appeared to have installed correctly, so I rebooted and tried to check for updates again. Unfortunately, I got the 8024402F error again.

I was searching around the catalog for other updates that might be useful and ran across the "Microsoft .NET Framework 4.7.1" and "Cumulative Security Update for Internet Explorer 11" updates, so I went ahead and downloaded those separately and attempted to install them as well. The .NET Framework update reported that it was already installed, so I just installed the IE update. It didn't require a reboot, so I went ahead and tried to update again, but got the same error. I rebooted and tried again, just in case, but still get the 8024402F error.



UPDATE #3: In an attempt to provide as much detail as possible, here are the results from the WindowsUpdate.log file from my most recent attempt:

2018-01-17  13:38:24:765     836    1668    AU  Triggering AU detection through DetectNow API

2018-01-17 13:38:24:765 836 1668 AU Triggering Online detection (interactive)
2018-01-17 13:38:24:765 836 136c AU #############
2018-01-17 13:38:24:765 836 136c AU ## START ## AU: Search for updates
2018-01-17 13:38:24:765 836 136c AU #########
2018-01-17 13:38:24:765 836 136c AU <<## SUBMITTED ## AU: Search for updates [CallId = {351E19E7-2512-433F-9FDC-5766DCEC2CD9}]
2018-01-17 13:38:24:765 836 844 Agent *************
2018-01-17 13:38:24:765 836 844 Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
2018-01-17 13:38:24:765 836 844 Agent *********
2018-01-17 13:38:24:765 836 844 Agent * Online = Yes; Ignore download priority = No
2018-01-17 13:38:24:765 836 844 Agent * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1"

2018-01-17 13:38:24:765 836 844 Agent * ServiceID = {9482F4B4-E343-43B6-B170-9A65BC822C77} Windows Update
2018-01-17 13:38:24:765 836 844 Agent * Search Scope = {Machine}
2018-01-17 13:38:24:827 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:24:827 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:24:827 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMP9559.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:24:827 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:24:827 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:24:843 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:28:244 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:28:244 836 844 Misc Microsoft signed: NA

2018-01-17 13:38:28:260 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:28:275 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:28:275 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPA2D2.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:28:275 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:28:275 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:28:291 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:28:291 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPA2E3.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:28:306 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:28:306 836 844 Agent Downloading new auth cab for service 7971f918-a847-4430-9279-4a52d1efe18d at http://ds.download.windowsupdate.com/v11/2/microsoftupdate/redir/v6-muauth.cab
2018-01-17 13:38:32:831 836 844 Misc WARNING: Send failed with hr = 80072efe.

2018-01-17 13:38:32:831 836 844 Misc WARNING: SendRequest failed with hr = 80072efe. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2018-01-17 13:38:32:831 836 844 Misc WARNING: WinHttp: SendRequestUsingProxy failed for . error 0x80072efe
2018-01-17 13:38:32:831 836 844 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072efe
2018-01-17 13:38:32:831 836 844 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072efe
2018-01-17 13:38:32:831 836 844 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072efe
2018-01-17 13:38:32:831 836 844 Misc WARNING: DownloadFileInternal failed for http://ds.download.windowsupdate.com/v11/2/microsoftupdate/redir/v6-muauth.cab: error 0x80072efe
2018-01-17 13:38:32:831 836 844 Agent WARNING: Failed to download auth cab for service 7971f918-a847-4430-9279-4a52d1efe18d from http://ds.download.windowsupdate.com/v11/2/microsoftupdate/redir/v6-muauth.cab, hr=0X80072EFE
2018-01-17 13:38:32:831 836 844 Agent FATAL: Caller Default Service Recovery failed to opt in to service 7971f918-a847-4430-9279-4a52d1efe18d, hr=0X80072EFE
2018-01-17 13:38:32:831 836 844 Setup Checking for agent SelfUpdate
2018-01-17 13:38:32:831 836 844 Setup Client version: Core: 7.6.7601.23806 Aux: 7.6.7601.23806

2018-01-17 13:38:32:831 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:32:846 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:32:862 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPB4AF.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:32:862 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:32:862 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:32:862 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:36:263 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:36:278 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:36:278 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:36:278 836 844 Misc Microsoft signed: NA

2018-01-17 13:38:36:278 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPC218.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:36:294 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:36:294 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:36:294 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:36:294 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPC229.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:36:309 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:40:007 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\SelfUpdate\wuident.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:40:022 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:40:022 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\SelfUpdate\TMPD0BA.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:40:038 836 844 Misc Microsoft signed: NA

2018-01-17 13:38:40:038 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:40:038 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:44:578 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:44:593 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:44:625 836 844 Setup Determining whether a new setup handler needs to be downloaded
2018-01-17 13:38:44:625 836 844 Setup SelfUpdate handler is not found. It will be downloaded
2018-01-17 13:38:44:625 836 844 Setup Evaluating applicability of setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.320"
2018-01-17 13:38:44:625 836 844 Setup Setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.320" is already installed.
2018-01-17 13:38:44:640 836 844 Setup Evaluating applicability of setup package "WUClient-SelfUpdate-Aux-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.320"
2018-01-17 13:38:44:656 836 844 Setup Setup package "WUClient-SelfUpdate-Aux-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.320" is already installed.

2018-01-17 13:38:44:656 836 844 Setup Evaluating applicability of setup package "WUClient-SelfUpdate-Core-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.320"
2018-01-17 13:38:44:687 836 844 Setup Setup package "WUClient-SelfUpdate-Core-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.320" is already installed.
2018-01-17 13:38:44:687 836 844 Setup SelfUpdate check completed. SelfUpdate is NOT required.
2018-01-17 13:38:44:921 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:44:921 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:44:937 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMPE3DD.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:44:937 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:44:937 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:44:937 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:462 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\v6-win7sp1-wuredir.cab with dwProvFlags 0x00000080:

2018-01-17 13:38:58:478 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:478 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:58:493 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:493 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMP18E2.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:58:493 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:493 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\wuredir.cab with dwProvFlags 0x00000080:
2018-01-17 13:38:58:509 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:509 836 844 Misc Validating signature for C:\windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\TMP18F3.tmp with dwProvFlags 0x00000080:
2018-01-17 13:38:58:509 836 844 Misc Microsoft signed: NA
2018-01-17 13:38:58:509 836 844 PT +++++++++++ PT: Synchronizing server updates +++++++++++

2018-01-17 13:38:58:509 836 844 PT + ServiceId = {9482F4B4-E343-43B6-B170-9A65BC822C77}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2018-01-17 13:39:07:183 836 844 Misc WARNING: WinHttp: WinHttpQueryHeaders(WINHTTP_QUERY_CONTENT_TYPE) for X-CCC failed. error 0x80072f76
2018-01-17 13:39:07:183 836 844 PT WARNING: ECP: DownloadCabFile: failed to get CDN Country for error reporting, hr = 0X80072F76
2018-01-17 13:39:11:520 836 844 Misc WARNING: Send failed with hr = 80072efe.
2018-01-17 13:39:11:520 836 844 Misc WARNING: SendRequest failed with hr = 80072efe. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
2018-01-17 13:39:11:520 836 844 Misc WARNING: WinHttp: SendRequestUsingProxy failed for . error 0x80072efe
2018-01-17 13:39:11:520 836 844 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072efe
2018-01-17 13:39:11:520 836 844 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072efe
2018-01-17 13:39:11:520 836 844 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072efe
2018-01-17 13:39:11:520 836 844 PT WARNING: ECP: DownloadCabFile: failed to get CDN Provider for error reporting, hr = 0X80070006

2018-01-17 13:39:11:520 836 844 PT WARNING: ECP: DownloadCabFile: failed to get CDN Country for error reporting, hr = 0X80070006
2018-01-17 13:39:11:520 836 844 PT WARNING: ECP: Failed to download cab file from http://download.windowsupdate.com/d/msdownload/update/others/2014/09/14135010_99b8c18f12abf1898a7a14340ae8aeb14d617b69.cab with error 0x80072efe
2018-01-17 13:39:11:520 836 844 PT WARNING: ECP: This roundtrip contained some optimized updates which failed. New Update count = 1, Old Count = 60
2018-01-17 13:39:11:598 836 844 PT WARNING: Sync of Updates: 0x8024402f
2018-01-17 13:39:11:598 836 844 PT WARNING: SyncServerUpdatesInternal failed: 0x8024402f
2018-01-17 13:39:11:598 836 844 Agent * WARNING: Failed to synchronize, error = 0x8024402F
2018-01-17 13:39:11:598 836 844 Agent * WARNING: Exit code = 0x8024402F
2018-01-17 13:39:11:598 836 844 Agent *********
2018-01-17 13:39:11:598 836 844 Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2018-01-17 13:39:11:598 836 844 Agent *************

2018-01-17 13:39:11:598 836 844 Agent WARNING: WU client failed Searching for update with error 0x8024402f
2018-01-17 13:39:11:598 836 a60 AU >>## RESUMED ## AU: Search for updates [CallId = {351E19E7-2512-433F-9FDC-5766DCEC2CD9}]
2018-01-17 13:39:11:598 836 a60 AU # WARNING: Search callback failed, result = 0x8024402F
2018-01-17 13:39:11:598 836 a60 AU # WARNING: Failed to find updates with error code 8024402F
2018-01-17 13:39:11:598 836 a60 AU #########
2018-01-17 13:39:11:598 836 a60 AU ## END ## AU: Search for updates [CallId = {351E19E7-2512-433F-9FDC-5766DCEC2CD9}]
2018-01-17 13:39:11:598 836 a60 AU #############
2018-01-17 13:39:11:598 836 a60 AU Successfully wrote event for AU health state:0
2018-01-17 13:39:11:598 836 a60 AU Successfully wrote event for AU health state:0
2018-01-17 13:39:16:606 836 844 Report REPORT EVENT: {1FF41EAC-73DF-49E2-8846-58D75AF34788} 2018-01-17 13:39:11:598-0600 1 148 101 {00000000-0000-0000-0000-000000000000} 0 8024402f AutomaticUpdates Failure Software Synchronization Windows Update Client failed to detect with error 0x8024402f.

2018-01-17 13:39:16:621 836 844 Report CWERReporter::HandleEvents - WER report upload completed with status 0x8
2018-01-17 13:39:16:621 836 844 Report WER Report sent: 7.6.7601.23806 0x8024402f(0x80072efe) 0000000-0000-0000-0000-000000000000 Scan 0 0 AutomaticUpdates {9482F4B4-E343-43B6-B170-9A65BC822C77} 0


I've also cross-posted this question in the Microsoft TechNet forums and will make sure that both posts are updated as more information becomes available.


Answer





After all of the troubleshooting I've done so far at the workstation with no solution, I kept coming back to the possibility that something might be going on at the firewall. Since the SonicWALL is a hardware firewall at the edge of our network through which all traffic into or out of our network has to pass, and the problem was only affecting some workstations, I really didn't think that it could be the source of my trouble. But, short of completely wiping the problem workstations and reinstalling Windows, I was out of troubleshooting steps to try. Of course, my only real troubleshooting option for this device was to look for a possible configuration issue or something within the firewall itself that could be interfering.




I went out and checked and found that there was a newer firmware version available for the SonicWALL device, so I downloaded the latest firmware package and updated the SonicWALL. Everything appeared to be working normally when it was complete, but I had to leave for the night, so I left it (and the testing) until this morning.



When I came into the office this morning, we had some very strange network issues that took me half the day to work through, including problems with (again) some stations in a VOIP phone system not properly communicating with the PBX. Since everything appeared to be working the night before, and not everyone was affected, I was totally confused by what might be causing it. I checked the firewall to see if I could simply roll back the firmware update I had just applied, but I didn't see any option for that in the UI.



I started digging through the entire network trying to find the cause of my latest issue. I was looking at everything from firewall rules, to managed switch logs, to VLAN tagging, to DHCP address leases, and anything else that popped into my head. After hours of work with no apparent progress, my Network/System Administrator friend with whom I'd been discussing the issue suggested rebooting the SonicWALL. I still didn't think it would make any difference, but I figured it couldn't hurt at this point, so we went ahead and rebooted.



When the SonicWALL came back online, voila! My phones started connecting to the PBX again, and the rest of the network seemed to stabilize. I ran a few additional tests and it seemed that we were back in business. While I was tremendously grateful, I'm still not 100% certain exactly why rebooting the SonicWALL cleared it up since I had already rebooted when the new firmware was applied.



Regardless, once our internal network was back to normal, I tried again to update Windows on the machine I've been using for troubleshooting. This time, the check for updates was successful and I was able to download and install the most recent updates.




I checked the other workstations that were experiencing the same issue, and they all appear to be working now as well. At this point, I'm going to have to assume that something in the SonicWALL was causing the issue and the firmware update/reboot is what solved it. Thank you all for your assistance.


anti virus - Can Avast Antivirus delete any file it suspects without informing the user?

I am using AVAST Free version. If I Never scan my PC, can avast delete malicious files on its own?
(Some video and pics are missing)

Thursday, July 20, 2017

memory - Windows XP + PAE + 6GB RAM: See more than 3.5GB?


Firstly let me say I've seen a number of similar questions on SuperUser, and I don't think this is a duplicate. (Most address 4GB RAM installed. I have 6GB)


I have Windows XP 32-bit running on a i7-based Xeon system with 6GB of RAM. I only see 3.5GB of RAM in Windows.


Is there any way to squeeze more visible RAM out of this set up? Even an extra 1GB would be great.


Does having 6GB (vs 4GB) of RAM installed help at all? (I.e Even if I loose the 3.5-4.0 GB region, can I use the area above it?)


P.S. Will eventually move to Windows 7 64-bit, but can't for now.


Answer



Even with Physical Address Extensions enabled Windows XP still allows only 4 GB of memory. I know this can be a little confusing since Windows Server 2003 allows up to 64 GB of RAM (with the proper processor support). Sadly your OS is bounded to 4 GB in this case. The kernel may support up to 64 GB with PAE, but it is locked down in XP. It seems the only reason they still include it is for DEP support. From Physical Address Extension - PAE Memory and Windows:



Although support for PAE memory is typically associated with support for more than 4 GB of RAM, PAE can be enabled on Windows XP SP2, Windows Server 2003, and later 32-bit versions of Windows to support hardware enforced Data Execution Prevention (DEP).



EDIT: I just want to add that this 4GB cap includes dedicated video memory or memory set aside for a on board GPU.


Wednesday, July 19, 2017

windows 10 - Block USB access, but allow only specific ones (in particular, one USB mass storage device)



In Windows 10 Pro, is there a way to block all USB devices, but allow specific ones?



In particular, I want to allow only one specific USB mass storage device - i.e. one specific vendor model, with a unique serial number.



This article claims that it's possible: https://community.spiceworks.com/how_to/1488-lockdown-usb-to-specific-removable-usb-drives. However it was written in 2010 and the instructions don't seem to work on Windows 10: I couldn't change the permissions of the usbstor.inf file and the machine still mounts previously unseen models of USB sticks.


Answer



Following @Ramhound's suggestion, I got it working using group policy.




The general direction is documented here: https://technet.microsoft.com/en-us/library/2007.06.grouppolicy.aspx



In particular, the "Prevent installation of removable devices" rule is what I need.



So here's a summary of what I ended up doing:




  1. In Device Manger, uninstall all USB devices that I don't want, including the ones that are currently not connected - there's an environment variable called DEVMGR_SHOW_NONPRESENT_DEVICES that enables the display of installed, but currently disconnected devices; just search the web for "DEVMGR_SHOW_NONPRESENT_DEVICES";

  2. Install the USB device that I want; in this case, a USB mass storage device;

  3. Enable the "Prevent installation of removable devices" rule in Group Policy.




Caveat emptor:




  1. Group policy probably can't effectively block some devices that don't expose a unique serial ID. E.g if a certain vendor model of USB mass storage device doesn't expose a unique serial ID, and you have installed one, then group policy might allow any other instances of the same vendor model to be mounted. I don't have such a model of USB mass storage device with me, so I can't really verify.

  2. As far as I understand, USB device IDs are not signed and thus cannot be verified - i.e. if a USB device claims to be a certain device, with a particular serial ID, there is no way for the computer to tell whether that's true. A bad guy could build a USB device with forged USB device ID and forged serial ID, in order to get it accepted by you computer, though even then.



With all that said, this solution works if you assume that all your devices expose unique serial IDs and that nobody tries to forge a USB device to get it accepted by your computer.



hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...