Friday, March 31, 2017

Hard drive seems to not exist when trying to clone

I want to copy my entire C drive, including Windows 7, to a new drive I bought* but the new one cannot be found.


I've tried both Clonezilla and Easeus Disk Copy but neither program recognizes the new disk. However, Windows 7 does recognize the new disk.


Using the Ubuntu live CD running fdisk -l reveals only 1 hard drive, sda.


The new one is nowhere to be found.


Any ideas?


*Western Digital Caviar Black WD1002FAEX 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s 3.5" Internal Hard Drive -Bare Drive.

Batch rename Chrome bookmarks

How do you batch rename lots of chrome bookmarks? For example,


1. "Introduction" is replaced with "Intro"?


2. "Google" is replaced with "G"?

Does task manager run as administrator by default on Windows 10?




I was trying to close a non-responsive process, and after the first time I clicked "End Process", nothing happened. So I did it again and this time a window popped up saying "Access is Denied". Eventually the process did close, but this got me thinking..



If I had ran task manager as an administrator, would it have still gave me this "Access is Denied" message? Or, in-fact, does Windows 10 run task manager as an administrator by default (when the user account is an administrator). Furthermore, is there any difference between running it as administrator or not?



Running it as admin via this method:





I don't see any noticeable differences between that and just doing Ctrl+Shift+Escape.




Note: This question is specifically for Windows 10 (and possibly 8/8.1) and I am running Pro. Also, my UAC set to 'Never notify'.


Answer




Does task manager run as administrator by default on Windows 10?




Only if it is being run from an administrator account. Ben N's answer below has a great explanation of how this is actually implemented.





If I had ran task manager as an administrator, would it have still gave me this "Access is Denied" message?




Yes. There are plenty of processes that even an administrator is not permitted to end. Furthermore, trying to end a non-existent task also produces this error message.



If the reason you had got the "Access is Denied" message was due to Task Manager not running as Administrator, you would get this very explicit message telling you so:



enter image description here





Furthermore, is there any difference between running it as administrator or not?




Yes, but you'd have to run it from a non-administrator account to see it.



Incidentally all the above behaviours are exactly the same as in Windows 8/8.1


windows 10 Fall Creators Update - Missing power mode slider in the taskbar

After Windows 10 upgraded to Falls Creator update, a new power slider appeared in the taskbar (when clicking the battery icon).


After some time, the slider disappeared and never came back despite trying all various tips and tricks found on various forums (sfc /scannow, dism tool, resetting power plans to default, etc...)


How can I restore the power slider?

partitioning - Can I move the start of non-boot partition safely after shrinking Windows partition?


Partition details (1 TB hard drive):


┌───────┬───────┬──────┬──────────┬────────────────────────────────────┐
│ Drive │ Total │ Free │ Free (%) │ Contents │
├───────┼───────┼──────┼──────────┼────────────────────────────────────┤
│ C │ 93 │ 67 │ 72 │ Windows; few apps │
│ D │ 840 │ 374 │ 45 │ Docs, music, movies, portable apps │
└───────┴───────┴──────┴──────────┴────────────────────────────────────┘

Recently, I decided to have portable versions of almost all the applications I use. So, that resulted in a lot of free space in C drive, and I'm thinking of shriking it to make D drive bigger.


Can I be 100% sure that it'll be safe to expand the D partition (which doesn't contain system files) by shrinking C partition and moving the start of D?


Will it affect the portable apps I'm using?


Answer



It will be rather safe. It shouldn't affect anything.


Rather, because partition operations always come with a risk - for example due to a power failure or a software bug. So make backups unless you can take the risk of losing that partition.


Windows' built-in Disk Management won't let you move a partition, you'll have to use a 3rd party tool. I personally boot from an Ubuntu flash drive and use GParted to move partitions.


NTFS partitions can't be "simply" resized left. Your partitioning tool of choice will have to copy its contents to the new location, then extend it right. This will take some time.


Inaccessible Boot Device Bluescreen after Security Update on Windows 10

When I turned off my PC yesterday, it seems that my Windows 10 installed a security update. But today, when turning on my PC, I'm getting Inaccessible Boot Device bluescreen. And no, I didn't install or uninstall anything new (no new hardware or software). It was simply the Windows Update that wrecked my system :(


All the following things I've already tried after googling:



  • obviously Windows auto-fix boot feature didn't help

  • I am unable to boot into Safe Mode --> also getting Inaccessible Boot Device bluescreen

  • And chkdsk /f obviously also didn't find anything

  • Booting with logging enabled didn't create the logfile at C:\Windows\ntbtlog.txt

  • reverting to restore points from 2018-01-17 and 2018-01-12 didn't help --> same bluescreen

  • successfully uninstalled the pending security update using the following command: dism /image:h: /remove-package /packagename:Package_for_RollupFix~31bf3856ad364e35~amd64~~15063.786.1.5 --> same bluescreen

  • sfc /scannow didn't find any issues

  • bootrec /fixmbr succeeds but didn't help

  • bootrec /fixboot says "Element not found."

  • bootrec /rebuildbcd does find my C:\Windows installation, but also fails with "Element not found." error

  • bcdedit gives me the error: "The boot configuration data store could not be opened. The requested system device cannot be found."


Is there anything else I can try before resetting my PC? Is there anything else I can look into why my windows just doesn't want to boot?


My desktop PC:



  • Intel i5-6600 CPU

  • MSI Z170A-G45 Gaming (7977-002R) mainboard

  • MSI nvidia GTX 970

  • Windows 10 Pro Version 1703 (OS build 15063) (according to regedit hive)


why do I get "Element not found." error on bootrec command? And the weird part is, in diskpart I can see a 100 MB volume next to my Windows volume, but it has NTFS and it's partition type is Primary (not system or something). Shouldn't the EFI boot volume be in FAT32?


EDIT: according to windows install usb stick, my SSD formatted as MBR :o
Where and how can I verify that?


EDIT #2: just confirmed in partdisk. my SSD is partitioned with MBR.

Backup unbootable Windows 7 to another partition


Windows 7 Home Premium won't boot on my Vaio laptop even in safe mode (stuck at classpnp.sys, then it goes to a BSOD and I'm forced to restart). I tried many solutions but none of them worked.


After that I decided to boot from an USB with Ultimate Boot CD installed and ran every hardware test with positive results. Then I booted Parted Magic and it was able to mount the hard drive (even the system and recovery partition). From there I could just copy the files that I wish to keep to my external USB flash drive and make a clean Windows 7 install. The problem is that the transfer rate is painfully slow and I have a lot of pictures.


I read that Windows creates a 'windows.old' folder when doing a custom install containing the old installation Program Files and Users folders. I don't trust that since Windows can't even boot in safe mode. Are my suspicions right?


The other option is to create a new partition with Parted Magic and dump all the files there, but if I do that the Windows installation program won't create a separate System partition (around 100 mb) and I read that it's convenient to do that instead of having Windows in only one for security reasons (it didn't work for me since I already have a separate System partition).


So my question is: is it worth taking a long time transferring files to my other laptop for the sake of having Windows in two partitions? or should I just save time and use a new partition for backup? even better, is it possible to install Windows System in a separate partition when the hard drive already has an existing partition that I wish to keep?


EDIT: The VAIO recovery partition seems to be corrupted so I discarded that alternative. I also forgot to mention that I am able to run the Windows command prompt in the recovery environment but I don't know if there are any tools there that could be useful.


Answer



Ok, so I was finally able to create the backup partition AND install windows with System in a separate partition. The only thing you need is to be able to access the Windows command prompt in the recovery environment (press F8 during booting and choose Fix Startup or something like that).
The steps I took are as follows (I used multiple sources that are listed below):



  1. Access said command prompt.

  2. Type 'Diskpart'


    DISKPART> list disk             (output isn't shown)
    DISKPART> select disk 0 (assuming it's disk 0)
    DISKPART> list partition (output isn't shown)
    DISKPART> select partition 1 (assuming partition 1 is the Windows **boot** partition. It should be the bigger one, not the System one)
    DISKPART> shrink QUERYMAX (this will return the maximum number of bytes that the volume can be reduced)
    DISKPART> shrink DESIRED=204800 (which is 200 gb in mb. It is the desired space that will be used for backup)
    DISKPART> create partition primary size=204800 (this will create the backup partition)
    DISKPART> format fs=ntfs quick (having quick added at the end of the command will do a quick format instead of a full format on the partition created previously)
    DISKPART> exit diskpart

  3. Now I exited the command prompt and restarted. I had an USB flash drive with UBCD installed (here for instructions). Change the BIOS boot order so the USB device option is listed first. Once in the UBCD menu choose the option called 'Parted Magic ....' and then choose the first option. This will launch the Linux-based distro Parted Magic.


  4. Once there click on the File Manager icon. This will allow us to transfer files from an external flash drive and between the different partitions. In my case I transferred a lot of pictures from the Windows boot partition to the backup one I created in step 2. I also stored the most important files on another flash drive just in case something went wrong. Once we are done restart the computer and change back the BIOS so we can go to the command prompt again.


  5. Again we type 'Diskpart'


    DISKPART> list disk
    DISKPART> select disk 0 (same as before)
    DISKPART> list partition
    DISKPART> select partition 2 (corrupted VAIO recovery partition in my case)
    DISKPART> delete partition override
    DISKPART> select partition 1 (Windows boot partition from which I already extracted what I wanted, should be the same as the one selected in step 2)
    DISKPART> delete partition
    DISKPART> select partition 3 (System partition, should be about 200 mb)
    DISKPART> delete partition
    DISKPART> create partition primary size=200 (new Windows System partition that will be used to install Windows again)
    DISKPART> format fs=ntfs label="System Reserved"
    DISKPART> active
    DISKPART> create partition primary size=102400 (new Windows boot partition that will be used to install Windows again)
    DISKPART> format fs=ntfs label="Windows 7"
    DISKPART> exit

    So now we should have 3 primary partitions: The backup one, the soon to be Windows System one and the soon to be Windows Boot one. The only one active is the Windows System one. You can check that by selecting it in DISKPART and typing 'detail partition'. Next we restart the computer.


  6. Now insert the Windows install media into the Optical Disk Drive and restart the PC to set the first boot device as the ODD in the BIOS and install Windows 7 to the created "Windows 7" partition. You will want to do a clean install choosing the "Custom (advanced)" not the "Upgrade" option, when you are presented with this "Where do you want ... " dialog box click to choose the created "Windows 7" partition and click next; do not use the installer to format anything.



When we are able to finally access Windows we can move our backed up files to our new Windows boot partition and then delete the backup partition. We can now extend the boot partition to use the newly unallocated space. For that you can use the Disk Management tool that comes with Windows.


That's all, hope it helps.


Sources:
How to Optimize an SSD / HDD When You're Ready to Reinstall the Operating System


The other sources in comments, I'm sorry, I can't post more than 2 links with this reputation. Hopefully someone edits it.


memory - Can I use Kingston KVR16LS114 ram on HP Probook 4420s?

Can I use Kingston KVR16LS114 ram on HP Probook 4420s? Hp specifications says the laptop supports DDR3 PC3-10600 SDRAM (1333 MHz). However,crucial suggests DDR3 PC3-12800. Can anyone help me

Thursday, March 30, 2017

windows 7 - Can a RAID 0 disk/config be rebuilt?



Recently one of the hard drives of one of my RAID 0 configuration gave an error.



What do I do now I'm hoping that I can replace that faulty disk with a new hard drive and that the RAID can rebuild itself. (using Intel Matrix Storage Console) Is this possible? Though I doubt it. Is there anyway that I can rebuild the RAID? or have I lost all the matter on it.




TECH INFO: I have a software raid on an Intel DG965WH motherboard and the current operating system is Windows


Answer



No, RAID 0 does not incorporate any fault tolerance. Your data is now corrupt.



However, if the failed drive is able to somewhat work, you may be able to duplicate its contents onto another drive and reassemble the RAID yourself, or a data recovery firm may be able to recover your files--the latter option will cost you either hundreds or thousands of dollars.



If you want to try the recovery yourself, your replacement drive will need to be at least as big as your bad drive. Put the bad drive and your new drive in a different computer (so you won't mess up your RAID configuration), boot from an Ubuntu Linux Live CD, then type these commands:



sudo bash

fdisk -l


After the second command, make note of which drive is /dev/sda and which is /dev/sdb.



Assuming /dev/sda is the bad drive and /dev/sdb is the new, good drive, run these commands:



dd if=/dev/sda of=/dev/sdb bs=1m



If this fails, try dd_rescue.



Once the drive is fully duplicated, reconnect the new drive into your other computer exactly how the bad drive was connected--if you're lucky, it will boot up as if the RAID never failed, but some of your files will most likely be corrupt.


macos - $PATH issues with OSX Lion

I'm having some issues with running mysql from terminal:



macmini:~ michael$ which mysql
/Applications/XAMPP/xamppfiles/bin/mysql
macmini:~ michael$ mysql

-bash: /usr/local/mysql/bin/mysql: No such file or directory


I had a previous installation at /usr/local/mysql/bin/mysql which no longer exists.



My path variable is as follows:



macmini:~ michael$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/Applications/XAMPP/xamppfiles/bin/:/usr/local/bin:/usr/X11/bin:/usr/local/MacGPG2/bin:/usr/texbin



Dropping to root seems to function correctly:



macmini:~ michael$ sudo bash
Password:
bash-3.2# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66
Server version: 5.1.44 Source distribution


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>


I seem to have found the issue - but I'm not sure how to change or remove this alias



macmini:~ michael$ type -a mysql
mysql is aliased to `/usr/local/mysql/bin/mysql'
mysql is /Applications/XAMPP/xamppfiles/bin/mysql

mysql is /Applications/XAMPP/xamppfiles/bin/mysql

Wednesday, March 29, 2017

linux - Unable to reassemble md raid on drives pulled from ReadyNas Duo v1

I'm toying with a ReadyNAS device that I've recently acquired. It is a SPARC-based box, and it runs linux.




As device is pretty slow, I've pulled one drive out of array, hoping to populate it with files much faster than via Ethernet. However, assembling its MD raid seems impossible to me.



Configuration:




  • /dev/sdb is a device pulled from NAS.

  • /dev/sdb[1-3] partitions are of fd type (linux raid autodetect).

  • Each partition is part of respective /dev/md[0-2] raid1 device.

  • All raid arrays work perfectly when device is plugged to NAS.




Here's what I get:



# mdadm --assemble --scan
mdadm: failed to add /dev/sdb3 to /dev/md/2_0: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md/2_0: Invalid argument
mdadm: failed to add /dev/sdb2 to /dev/md/1_0: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md/1_0: Invalid argument
mdadm: failed to add /dev/sdb1 to /dev/md/0_0: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md/0_0: Invalid argument

mdadm: failed to add /dev/sdb to /dev/md/2: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md/2: Invalid argument
mdadm: No arrays found in config file or automatically

# mdadm -E /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 0.90.03
UUID : 8ae34a5e:c446418f:1245590f:4aa53e2a
Creation Time : Wed Mar 13 09:56:36 2013

Raid Level : raid1
Used Dev Size : 2047936 (2000.27 MiB 2097.09 MB)
Array Size : 2047936 (2000.27 MiB 2097.09 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0

Update Time : Wed Mar 13 10:19:36 2013
State : clean
Active Devices : 2

Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : f7dff982 - expected 5532a626
Events : 91658897063936


Number Major Minor RaidDevice State
this 1 33 1 1 active sync


0 0 22 1 0 active sync
1 1 33 1 1 active sync

# cat /proc/mdstat
Personalities :
Unused devices:


Devices /dev/sdb2 and /dev/sdb3 have same output as above, except: UUID, Used Dev Size, Array Size, Preferred Minor, Checksum and Events, so I've omitted them for clarity.




I've read somewhere that the error above means kernel modules need to be loaded first, but I believe that if I create raid1 array on another pair of disks (while this disk in question is still present), linux would have auto-loaded all necessary modules (correct me if I'm wrong here). And it still doesn't recognize md raid devices.



Attempts to assemble an array by hand yields nothing useful:



# mdadm --assemble /dev/md0 /dev/sdb1
mdadm: failed to add /dev/sdb1 to /dev/md0: Invalid argument
mdadm: /dev/md0 assembled from 0 drives - need all 2 to start it (use --run to insist).


Here mdadm was very clear about what it needs, given that this IS a raid1 array, but as it is one part of mirror copy, it must be able to work on its own:




# mdadm --assemble /dev/md0 /dev/sdb1 --run
mdadm: failed to add /dev/sdb1 to /dev/md0: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md0: Invalid argument


How can I mount these MD raid devices?

make pendrive bootable via command line Ubuntu

I'm trying to burn a .iso image of Ubuntu into a pendrive using command line in Ubuntu but I'm having serious problems.



I'm looking for a tool, which I can invoke from a shell script, something like USB-creator-gtk (which is a GUI and works perfectly but I can't use it from a console cause it has to be automatic without user interaction).



If anyone can point me in the right direction I'll really appreciate it!

Tuesday, March 28, 2017

Linux File system for a 1 TB External Hard drive

I have a 1TB external seagate hard drive that i use it with my dell inspiron 1525 laptop running UBuntu 9.04. I dont intend to share my hdd with anyone, so my laptop is the only comp i will plug it into. Its on NTFS right now, it auto mounts as soon as i plug it in and i can transfer data without worrying about permissions.


But, ntfs-3g takes up a lot of cpu and resources, particularly for long running data transfers of over 20G.
So i want to shift to a native linux file system for my hdd (probably ext4 or ext3 ?).


1) Will there be a significant difference in data transfer rate( <= 26 MBps currently) , cpu usage and system responsiveness with a native file system as opposed to NTFS ?


2) Will auto mounting work or do i have to manually mount it every time.


3) What do i have to do to mask file system permissions or to make sure that
the permissions don't get in the way like in NTFS ?


EDIT:


I don't intend to ever use the drive in windows.

Can I Switch On Asus X555L laptop without battery?

My Asus X555LA laptop switched off after draining battery although I was using it plugged in to AC Power. Now when I try to switch on without plugging to AC, I can't and while plugged in to AC,within 2,3 seconds it switch off. As most of the laptop models work fine without battery, I removed the battery and try to switch on, and it does nothing.In order to troubleshoot I would like to know whether I can run this model without the battery. If can, I can assume the issue is not a dead battery, but laptop's charging circuit.

Windows Vista update - does it erase disk?

I have windows vista and I want to update it to Windows 7. Does this process clean everything I have on my disk (including Vista) and install new Windows 7 ?

windows xp - Unable to format, or access data contents of i-Ball pen drive

Every time I try to access the contents of my pen drive in any PC I see a dialog box with the following error message:



Disk is not formatted



I then give it the order to format the pen drive. However, it's not successful and gives me a dialog box with this error:



Windows was unable to complete the format



After I press OK it then give me this message:



Disk is not formatted.



Then I try to format via DOS prompt and use this command:


format i:/q/fs:fat32

But nothing happens to the disk.


How can I access the data from my pen drive?

Monday, March 27, 2017

Windows 7 - BSOD PROCESS1_INITIALIZATION_FAILED



So.. I tried last known good config, tried booting into Safe mode, tried system restore -- nothing.




I get PROCESS1_INITIALIZATION_FAILED and error code is: 0x0000006B.



Trying to run sfc /scannow in Syste Recovery Options' command prompt. But I get `There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again."



I have and still same problem. I did however do System Restore to like Feb 18 and it worked but now its back again...



Help? My computer is 64-bit and custom built. Thank you.


Answer



This can occur if the Bootcat.cache file is corrupted or the size of the file is different than it was at the last successful start.




The Bootcat.cache file is located at %SystemRoot%\system32\codeintegrity.



Start the computer from a Windows install or repair disk, or perhaps a Linux LiveCD or alike. Delete the Bootcat.cache file, and then restart the computer.



Source


windows 8.1 - How do I prevent my bluetooth headphones from waking my computer from standby?

I have a pair of Bluetooth 4.0 headphones which are paired with both my laptop and my desktop. As soon as I power on the headphones, they will wake any paired device from standby. So if I have my desktop in standby and I want to use the headphones with my laptop, they will wake my desktop from sleep and reconnect to it.


I would like to be able to disable this functionality. If I view the power settings on the Bluetooth module in Device Manager, the option to "Allow this device to wake the computer" is grayed out. This is probably because the Bluetooth adapter in my desktop is powered by USB, and, per Microsoft's implementation of the Bluetooth protocol, the USB root hub and controller handles the power states for connected devices.


However, if I open up the root hub to which the bluetooth module is connected, the option to "Allow this device to wake the computer" is also grayed out. I don't want to disable it here, anyway, since my keyboard is also connected to the same hub and I want to be able to wake my computer from standby with my keyboard.


Using the PowerCFG -lastwake command in a command prompt only tells me that the device that woke the computer was the USB Root Hub (as it should be, per Microsoft's implementation of the Bluetooth protocol). Right now, when I put my computer to sleep, the Bluetooth adapter enters a D2 sleep state. Is there a way to force it into a D3 (off) state when I put my computer in standby? Or a hack in the registry or somewhere that will disable the wake from standby functionality for the Bluetooth adapter?


How do I prevent my computer from waking from standby whenever I power on my Bluetooth headphones?


:Edit:


powercfg -devicequery wake_programmable
HID Keyboard Device
HID-compliant consumer control device (001)
HID Keyboard Device (001)
HID-compliant system controller (001)
HID-compliant consumer control device (004)
HID-compliant system controller (003)
HID-compliant consumer control device (005)
Qualcomm Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.30)
HID-compliant vendor-defined device (006)
HID-compliant vendor-defined device (008)
HID-compliant vendor-defined device (009)
HID-compliant vendor-defined device (010)
HID-compliant mouse (001)
powercfg -devicequery wake_armed
HID Keyboard Device
HID Keyboard Device (001)
HID-compliant mouse (001)

Sunday, March 26, 2017

Missing taskbar buttons on Taskbar in Windows XP




My Windows XP only show Taskbar without taskbar buttons. I can change Task Windows using Alt+Tab Keys. In task Manager, there is show All open windows and task. But Missing taskbar buttons on taskbar.



I've already repaired windows by "second R". But still missing taskbar buttons. If I reinstall windows, then I will lost all software program install on that windows XP. I don't want to reinstall all software program after windows installation.



How do I get the taskbar bottons to show on the taskbar without reinstalling? Other toolbars on taskbar are OK. Only missing task windows-buttons.



Posted by Theo (1 messages posted)



Hi! Whenever you run a program in Windows, there should be a respective taskbar button right? This is for the user to access the running program faster by clicking on it and it will become the active window. My taskbar buttons disappeared. Now I can only use Alt-Tab to switch between programs. Anyone with ideas?


Answer




This is a registry problem - you can use the script below to repair this problem. Copy all the following text and paste into a text file. Save with a .vbs extension and run.



Set WSHShell = WScript.CreateObject("WScript.Shell")

Message = "To work correctly, the script will close" & vbCR
Message = Message & "and restart the Windows Explorer shell." & vbCR
Message = Message & "This will not harm your system." & vbCR & vbCR
Message = Message & "Continue?"

X = MsgBox(Message, vbYesNo, "Notice")


If X = 6 Then

On Error Resume Next

WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2\"
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU\"
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop\"

WshShell.RegDelete "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}\BarSize"


P1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"

WshShell.RegWrite p1 & "NoBandCustomize", 0, "REG_DWORD"
WshShell.RegWrite p1 & "NoMovingBands", 0, "REG_DWORD"
WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"
WshShell.RegWrite p1 & "NoSetTaskbar", 0, "REG_DWORD"
WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"
WshShell.RegWrite p1 & "NoSaveSettings",0,"REG_DWORD"
WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoSetTaskbar",0,"REG_DWORD"
WshShell.RegWrite p1 & "NoActiveDesktop",0,"REG_DWORD"
WshShell.RegWrite p1 & "ClassicShell",0,"REG_DWORD"

p1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"

WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"
WshShell.RegDelete p1 & "NoMovingBands"

p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell"


WshShell.RegWrite p1, "explorer.exe", "REG_SZ"

p1 = "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}\"
WshShell.RegDelete p1 & "BarSize"
WshShell.RegWrite p1, "Media Band", "REG_SZ"

On Error Goto 0

For Each Process in GetObject("winmgmts:"). _

ExecQuery ("select * from Win32_Process where name='explorer.exe'")
Process.terminate(0)
Next

MsgBox "Finished.", 4096, "Done"

Else

MsgBox "No changes were made to your system.", 4096, "User Cancelled"


End If

Windows sometimes doesn't boot after Ubuntu 16.04 dual boot installation

After installing Ubuntu alongside Windows 10 on my computer (Ubuntu on a hard drive, the grub and windows 10 on a NVMe drive), sometimes Windows will not boot all the way, and boots slowly when it does boot. After installing Ubuntu my windows boot screen changed to the windows blue logo and the spinning dots (which are kind of morphed now) The dots will randomly freeze, the screen will go black, and then the logo and the dots come back, and then they go away again to a black screen. Sometimes the black screen will load into my windows sign-in page, but sometimes I just get a lit black screen that I can't interact with at all. It also sounds like my fans go at full speed and my hard drive is spinning super fast when that happens. I usually have to do a hard reset if that happens.


I've tried enabling/disabling secure boot. I've already turned fast boot off. I've already tried running the standard ubuntu Grub boot-repair tool.

Saturday, March 25, 2017

How can I make windows command prompt return a substring from a command ouput



My path is pointed towards a cloud folder (located at various places on my various devices) wherein I have stored a batch file that is supposed to locate itself on the machine, and then make that directory the new working directory of that session.



Locating the file



@echo off No clutter



cls clean slate




Echo Searching Because sometimes it takes a while



dir /b /s myScripts.bat And this outputs the full directory, including the file name.



So my first problem is getting rid of the file name. This is what I've tried:



set stringOne=dir /b /s myScripts.bat



%stringOne:~0, 60%




I found a script for counting the length of a string which I'll use to automatically deduce those values later if it turns out I actually need them.



Problem is I've found that if I lower that number to 10, the dir command is shortened like so:



dir c:\users\myUsername\cloudDrive\scripts, or whatever the case may be,
and instead cmd inputs dir c:\users\m and searches ALL of that recursively.



Again, what I'd like to do is have it show me a modified version of the directory it searched, NOT modify the directory search command. I'll later use the final string produced to set my working directory to, but I'm trying to take this one step at a time so I understand what is happening.




EDIT:
The ultimate goal of the SCRIPT is different from my purpose for writing it. When all is said and done I should be able to type myScripts.bat into cmd, on any computer which I have appended to it's PATH my cloud folder, and it will procure the directory of that cloud folder via means of the dir command, and then change it's working directory to that of the batch file.


Answer



To answer this part:




And this outputs the full directory, including the file name. So my
first problem is getting rid of the file name.





In a batch file you can do



@echo off

:: locate 'myScripts.bat' and save its directory to 'myDir'
:: in case of multiple matches 'myDir' will be set to the last one
set "myDir="
for /f "delims=" %%x in ('dir /b /s myScripts.bat') do set "myDir=%%~dpx"
if not defined myDir echo not found ?? & exit /b 1


:: ready to use
echo myDir = "%myDir%"


To get a better hang of batch files, I recommend that you read the builtin help, starting with set /?, if /?, for /?, call /?.



[ EDIT ] Added "delims=" to handle paths with spaces correctly.


memory - DDR4 RAM vs. DDR3 and EEC vs. Non-EEC


I am about to upgrade my DELL XPS 8900 and add 64GB memory to it, I have found that the montherboard of DELL XPS 8900 does support that kind of capacity.


However I have a hard time picking up the right RAM. DDR4 is supposed to be better than DDR3, but other factors seem to weigh in.


Like some examples shown below, DDR3 is not necessarily cheaper, and appear ECC is a plus factor too: #2, Kinston's DDR3 is more expensive than #1, DDR4 from Curcial, and the #3 is the most expensive, can ECC alone explain the price gap to #1? And do these difference translate into a perceptible performance difference?


From Crucial official site:



  • Crucial 64GB Kit (4 x 16GB): DDR4 PC4-21300 • CL=19 • Dual Ranked
    • x8 based • Unbuffered • NON-ECC • DDR4-2666 • 1.2V •
    $567.99


From newegg.com



  • Kingston 64GB (4 x 16GB) 240-Pin DDR3 SDRAM ECC Registered DDR3
    1600 (PC3 12800) Server Memory Model KVR16LR11D4K4/64 $736.53


From newegg.com



  • Crucial 64GB (4 x 16GB) 288-Pin DDR4 SDRAM ECC DDR4 2133 (PC4
    17000) Server Memory Model CT4K16G4RFD4213 $806.91


Answer



The best RAM depends on your needs/requirements.


DDR 3 is probably not what you want. It's generally slower and significantly more power hungry then DDR4 (40percent is bandied about - probably not too big a deal on a deskop though)


ECC is more expensive because it's a lot more reliable and requires extra chips for reliability and calculation. If you are using it as a server this is probably a good idea - for a gaming rig or workstation it's probably unnecessary. If you are running a ZFS filesystem (if you don't know what it is, you aren't), you really need ECC. ( Unfortunately regular memory can very, very occasionally have a bit flipped due to cosmic radiation (or going faulty) - the question is what is the value of protecting against that - good quality non-ecc memory is still subject to bit flips.


Most desktops would use the cheaper DDR4 memory, most servers the ECC memory, and yes, a good part of the price difference is because it's ECC.


microsoft excel - How to keep references unchanged after sorting

In the following spreadsheet, the references will change after sorting and break the calculations.


enter image description here


Absolute referencing is not an option. The table has to be copied periodically to another sheet and placed it at a different row (the columns are identical). Absolute referencing will break the calculations after copying.


I would like to keep the references unchanged. One idea is to use formulas to maintain references. For example, S75 contains: =T70.
Change it into =(the address of the Count data cell)


What formulas could I use to achieve this?


If no formula could do, I need to resort to macro. Use absolute referencing ($T$70) first. Then run a macro which change all selected cells into relative referencing (T70) every time it needs to be copied. Only the reference of T70 needs to be changed, not any others. I don't know how to code. Could anyone help?


Thanks a lot.

Storing Windows Updates for reuse

At work we update lots of computers using Windows Update. Windows XP and 7 all day long, rarely some Vista.


We do it through a corporate proxy, as connecting them to a domain to build a Wsus server is out of the question, so we download about two gigabytes a day of the very same updates everyday.


I've tried WSUS Offline. It's pretty complete but when it finishes it's common to be still missing hundreds of megabytes of updates, because its intention is not to fully update a system but to install the critical updates, as the developers explain in the forums.


Now I'm trying with Autoupdater. It's far worse, with poor capabilities for non-English Windows XP, but at least it gives the option to install non critical updates in Windows 7. It still misses hundres of megabytes of updates after fully updating the system.


And finally, both doesn't install the driver related updates of Windows 7, so they at most save us a couple of hundreds of megabytes and a reboot (with the associated login to the computer and to the proxy) out of three or four.


So, is it possible to somewhat extract the installed updates in a Windows 7 system and not having to download the same updates again and again at least with machines with the same hardware? Or even better, a generic package with all the updates?

windows - CMD Command Prompt DIR Batch File


  1. I use CMD to create a text file for a directory of directories (ie. 2014 Folder containing folders for each project that year).


  2. Piping the DIR command to create a text file is very useful, but would love to automate the process as much as possible.


  3. I import the text file into Excel to cull the data.


  4. I am curious if there is a way to remove the Header and Footer (along with the folders named <.> and <..> b/c I'm not sure what they even are).


  5. But would like to know if this is possible before the text file hits Excel.


  6. I have come close with my current batch, but it leaves two blank rows at the top; which may not be a big deal, but I would like to know the best way possible.



*It seems this could be a very common situation, I just cannot find a specific batch w/o being to complex for my understanding.


**My current batch file uses this type of approach: DIR, REN (for whatever reason to modify the old file into a new one) and FINDSTR /V "Volume Directory .. bytes" dir01.txt.old > dir01.txt


TITLE Project Folders
DIR S:\"Project Folder 2014\Projects" /T:C /O:-N > S:\MyFolder\dir01.txt
DIR S:\"Project Folder 2014\Projects" /T:W /O:-N > S:\MyFolder\dir02.txt
DIR S:\"Project Folder 2014\Projects" /T:A /O:-N > S:\MyFolder\dir03.txt
S:
CD MyFolder
REN dir01.txt dir01.txt.old
REN dir02.txt dir02.txt.old
REN dir03.txt dir03.txt.old
FINDSTR /V "Volume Directory .. bytes" dir01.txt.old > dir01.txt
FINDSTR /V "Volume Directory .. bytes" dir02.txt.old > dir02.txt
FINDSTR /V "Volume Directory .. bytes" dir03.txt.old > dir03.txt
DEL dir01.txt.old dir02.txt.old dir03.txt.old
PAUSE

***Please advise!


The bare format will not be useful; as I use the date created, modified, and accessed in 3 separate text files to use for tracking the projects


Would this be easier to accomplish in PowerShell?

ubuntu - Getting a laptop, installing Linux and Windows



I ordered a Lenovo laptop, and it has 500GB of hard drive space. It is coming without an OS. I want to install Ubuntu and Windows 7 x64. However, I still want access to shared files, such as my music and videos. What would you suggest for partioning lengths?



The windows machine will be used for games, visual studio and general stuff. Ubuntu will be used for.. well I don't know, I just really want to try linux =) I guess programming in everything except Direct-X stuff (XNA, xbox, etc.)




Also, I could get an external HDD, but I'd prefer to keep it all on the laptop - 500gb should be enough, right?


Answer



To be honest with you, so many people (such as yourself) say they want to "try" another Operating system such as Linux and end up dual booting such as what you are asking, then hardly use it.



Dual Booting is a big step, requires serious thought and planning in advance.



Unless you really know that you are going to be using Linux, I really would not bother.



Unless you know for sure you are going to be doing graphically intensive stuff in Linux, I would personally just install Windows and go for virtualising Linux. This has many benefits - snapshotting being the main one, so as you are learning Linux, you can do what you want without the fear of screwing anything up.




However, if I really can't tempt you to do this, then, whilst Linux can read from NTFS, by far the easiest thing you can do is to have, a ~50GB drive for Linux (Again, if you won't be using it seriously, this should be ample), a ~5GB drive formatted as Fat so you can exchange files and the rest as NTFS for Windows.


printing - How can I visualize the file system usage on Windows?

How can I visualize which folders and files are taking up all of the space on my hard drive?


I'm getting some conflicting reports on the size of hard drive contents. Namely what is and isn't there and what folders are actually using the space.


I need to know which of the files or folders the culprits behind all this hidden bloat. Also there should be a print option to get it on paper.

hard drive - Is it better to have HDDs on standby after a while or not for a 24/7 home office server?




I have a NAS with a WD Server HDD (3 years old, 1TB).


Is it better to have it running all the time, or should I put on the standby time to make the HDD shut down after a while?


It comes out of standby about 10 - 20 times a day, and it makes that weird noise when it wakes up. It did it from day 1 on so I guess its normal.

powershell - Batch Rename all PNG files in folders and subfolders

I am trying to rename all PNG files within several subfolders. See below for my explanation on what I am doing:


What is currently in place:
COMPANY
SERVER1
(Random).png
COMPANY2
SERVER32
(Random).png
What I want:
COMPANY
SERVER1
Company - Server1 - (Date PNG Modified).png
COMPANY2
SERVER32
Company2 - Server32 - (Date PNG Modified).png

How can I accomplish this? The part that I am having trouble with is getting the First and second directory name as well as the date modified that I can stick into the file name.


The current script that i have is below:


@echo off
for /r %%D in (.) do (
for /f "delims=" %%F in ('dir /b /A:-D "%%D\*.png"') do (
echo ren "D:\FinalDir\%%F" "%%~nxD-VirtualBootTest-3-3-18.png"
)) >> "D:\FinalDir\RenameCommands.txt"
FOR /R "D:\OriginalDir" %%i IN (*.png) DO COPY "%%i" "D:\FinalDir"

What this is doing right now is gathering all of the PNG files in all directories in the folder that building a batch file to rename all of the files that it copies out into the FinalDir. The renaming end result will end up looking like SERVER1-VirtualBootTest-3-3-18.png. I cant figure out how to make the date change with the file and add what the directory is two directories above the file.

Friday, March 24, 2017

windows xp - Manual disk 'mirroring'


I have a situation that I have to manually sync one disk to the other and keep the copy as fresh as possible. Any (possibly free) software for it?


OS: Windows XP x86


Answer



If you have WinXP Pro, you could keep the two disks in a RAID 1 array so they are automatically mirrored on a filesystem level.


Edit:


XXCLONE appears to be a simple filesystem cloner that doesn't need to work on a disk I/O level (like by booting a live CD). It seems to be free for whole-disk backups, but has the functionality for faster incremental backups if you pay for the Pro version.


DriveImage XML might be another option.


windows - "Trojan:Script/Cloxer.A!cl", any info on this virus? what does this virus do?



Windows Defender identified and removed a threat on my Win10Pro PC called "Trojan:Script/Cloxer.A!cl". But there is no information on the web on this trojan, searching for this yields little/nothing. The Windows Defender info on this is only that they consider it severe and: This program is dangerous and executes commands from an attacker and the microsoft.com description on this is here.


How can I get more details on what this virus does/did? What are the commands it may have run? Does is try to obtain user names and passwords? Does it find and upload files someplace? Is it a crypto miner? Spyware? DoS zombie? How was my system impacted? Should I totally wipe and re-install? I'd just like to know what this Trojan does/could do so I can gauge the impact of it and I'd like to know the vectors it uses as to how it got on my system.


I do keep my system up to date (on Win10 Pro V 1709 Build 16299.248) and my Defender is up to date and I run it often, but I have no other protection.


UPDATE: On the point that this post may be a duplicate - I disagree and feel this is NOT a dupe. Mainly I am looking for specific details on the Cloxer virus, not how to remove it (but that referenced post is good and a logical next read for viewers of this post).


Answer



It is very likely that nobody knows, except the author (if it is a human). The script was identified by an AI, thus given a meaningless name and providing no information about what the behaviors are. For all we know, it was an AI that created it as well.


Most of these scripts are Adware and don't work well. It may not have infected your computer and only been present in your browser cache or download files. Getting a timestamp and location of where Defender found the virus might give you a sense of how severe the problem is. If the file has been quarantined, it could be examined. A lot of these are in javascript now so we can see exactly what they do.


First thing, though, is change your passwords. In case it was a keyboard logger, it may have those. If you wipe and restore your computer every time a virus lands on it, then that's all you'll ever do. If you had a security clearance and it was a national security issue, you'd already have people doing it for you. Think about your biggest exposure (bank logins, paypal, etc.) and change those passwords. Then try not to worry about the rest.


bios - Windows 10 boot error

I recently created a bootable USB it using Rufus on a Windows 10 laptop in order to install Windows 10 add alongside Ubuntu for a dual boot on my desktop. I created the USB in Fat32 format. My empty partition on my desktop was also Fat32. When I entered my BIOS and booted into the USB, however, I was immediately presented with the following screen:


Windows Boot Manager

Windows failed to start. A recent hardware or software change might be the cause.
To fix the problem:
  1. Insert your Windows installation disc and restart your computer.
  2. Choose your language settings, and then click "Next."
  3. Click "repair your computer."
If you don't have this disc, contact your system administrator or computer
manufacturer for assistance.
  Status: 0xc000000f
  Info: A required device isn't connected or can't be accessed.

I have no idea what this means. However, Rufus was behaving strangely when I created my drive. After it was finished, it presented me with the option to start creating the bootable drive again, and when I realized it was doing this and quit Rufus, it warned me that the drive may not be complete. How can I fix this?

External hard disk not working

I have Seagate 2 TB external Hard drive(Seagate Backup Plus Slim, to be exact). When I connect it to USB 2.0 port or eSATA port, it gets started spinning and beeps 2 times. Then it keep spinning for some time. Then it gets stopped. The light doesn't glow anywhere during the process. The hard drive is just 2 months old. Also I tested it on both Ubuntu and Windows 7 and on different laptops.

Different keycodes for F3 and F4 on external keyboard vs laptop keyboard


I'm using a Debian derivative with xmonad on my laptop (Lenovo X230). I have a docking station and an external keyboard and trackball connected to it. The keyboard is the Kinesis Advantage. Everything was working fine, when suddenly, F3 and F4 stopped working through the external keyboard. Meaning, that the hotkeys I have them mapped to vix xmonad are not responding. However, they still works on laptop directly.


I ran "showkey -k" and mapped out the F keys on both keyboards. Here are the results:


|-----+---------+--------|
| Key | Kinesis | Laptop |
|-----+---------+--------|
| F1 | 59 | 59 |
| F2 | 60 | 60 |
| F3 | 165 | 61 |
| F4 | 164 | 62 |
| F5 | 63 | 63 |
| F6 | 64 | 64 |
|-----+---------+--------|

For some reason, F3 and F4 emit different keycodes when pressed on the external keyboard then on the internal laptop keyboard. I've tried resetting the Kinesis keyboard, but nothing seems to change.


Would anyone happen to have any clue what is going on?


Thank you


Answer



I found someone with a similar problem here.


It seems the Kinesis keyboard has a multimedia setting.



Finally, I found the answer on the Kinesis FAQ. My F3 and F4 keys were behaving like multimedia keys (see manual to configure these). This feature can be disabled by holding = and pressing P for PC (you can also use W for Windows and M for Mac).



So try =+P and see if it's resolved. (or =+W or =+M)


From the FAQ:



9. Function keys not working on USB Advantage Keyboard


It's possible the "Multi Media" features of the keyboard have been
enabled, which changes some of the function keys.


To check, open up some kind of text editor and press and hold the
equals key and tap the letter "s". You should see some text on the
screen. If you see any of the function keys listed inside the brackets
[F3 F4 etc. ] then you know the Multi Media features are active.


Normally, this is turned on by holding down the equals key and tapping
the letter "n."


To disable the Multi Media feature, enter the Instant Configuration
you're currently in.


So for example, if your keyboard is in Windows Mode, select Windows
mode by holding down the equals key and tapping "w" (=w). (=m for mac
mode and =p for PC mode)


This will clear the settings and your function keys should behave as
expected.



windows 7 - Browser links become unresponsive while running Tomcat for several hours

Please bear with me - this problem is somewhat unusual and a bit tricky to describe. My system is Windows 7-64 and I'm running Tomcat 6.0.29.


I run two instances of Tomcat while I am developing on a project. It works fine for the first 6 or 8 hours. At various points, I will stop and Tomcat. If it's left running for "long enough" - a span of time anywhere from 4 to ~10 hours - my browser will become unresponsive to clicking links. I can open a new tab and type a URL or click a bookmark, and nothing happens. I can click links and the browser ignores the click. I can still scroll around and highlight text as if things were normal, but for whatever reason, you can't load anything new into the browser.


Restarting both instances of Tomcat doesn't fix it once it starts. Restarting the browser or running a different browser has no effect. And finally, logging off and logging on again helps a little - you get a few pages to load, with missing CSS or images, and then it happens again - no response. The only remedy is to reboot.


This wouldn't be a huge problem except that I work remotely sometimes, and rebooting requires a physical presence at my PC because of McAfee Endpoint software that requires somebody at the keyboard log in before boot. I have to find one of a few people on the phone who are able to log in for help.


I have a co-worker on the same project with the same problem. We would both really appreciate any help or suggestions.

keyboard shortcuts - Ctrl + Alt + Shift + S hotkey not working in Windows 10 at all (not even in safe mode)

I am using the Romanian (programmers) keyboard in Windows 10 so that I can insert special characters using the AltGr key (or Ctrl+Alt). All of them work EXCEPT for AltGr+Shift+S (that should insert capital S-comma or Ș). From my understanding so far, this is equivalent to Ctrl+Alt+Shift+S. My thought was that some other program had registered the combination and when I press it, it goes to that program instead.


What I have tried so far, unsuccessfully:



  • searching for hotkeys in the registry using nirsoft's RegScanner - nothing found

  • searching for hotkeys using nirsoft's HotKeyList - nothing found

  • searching for hotkeys using a vbs script from a superuser/stackoverflow post (can't remember which, I've read so many topics)

  • closing all user programs one by one with task manager and trying the hotkey to see if I closed the culprit (though this did not work as well as planned, as some services would keep restarting)

  • rebooting in safe mode did not make it work!

  • using autohotkey to insert the character - nothing happens


Basically the combination seems to be dead. I am not even sure if it registers. On Linux it works fine, and on Windows Ctrl+Alt+Shift + other characters works fine. Ctrl+Alt+S also works fine (without the Shift).


I am running out of ideas. I really thought autohotkey would work, but kept it as a last resort.
Strangely enough, autohotkey displayed the following behavior:



  • setting Ctrl+Alt+Shift+S to send the character Ș did nothing

  • setting Ctrl+Alt+Shift+S to do something else (like display a messagebox) did nothing

  • setting some other combination (like Ctrl+Alt+Shift+W) to send the character Ș would actually trigger the hotkey for Ctrl+Alt+Shift+S (so it would display the messagebox I set earlier).

  • setting some other combination to send the unicode for Ș (U+0218) would work!

  • setting Ctrl+Alt+Shift+S to send the unicode for Ș would not work


So for the moment I have it set in autohotkey with Ctrl+Alt+Shift+W since it's above the S on the keyboard, but it's less than ideal. Also, I would really want to find out the cause of this.

windows 7 - My HDD memory is fuller every day

I have a weird problem with Windows 7. It started about 14 months ago. I had 10 GB free space on C on maximum 146 GB. D was okay. Tomorrow, 8 GB free! Next day, 6 GB free until 250 KB free. I cleaned up space somehow and got 3 GB free. Now everyday I have lower and lower free memory. I disabled Windows Update. I think do games write on the disk. I play only LOTR: The Return Of the King. Antivirus is Bitdefender the latest, installed a few days ago. How can I stop filling my hard disk? Programs Files on C is 20 GB but on D 40 GB. I think Windows is filling my HDD with cache and other junk files. How to resolve this?

ubuntu - Installing Linux to external hard drive without burning a CD


I'm at a loss for where my USB sticks/CDs are. I want to install Linux on an external hard drive connected via USB without burning a CD/finding a flash drive.


This seems like it would be relatively simple but I can't seem to make it work. I've tried booting into a VirtualBox VM (4.0.8 with USB passthrough) but it wouldn't recognise the attached USB drive when it was booting from the attached ISO.


I've recently come across this article which explains that grub2 can boot from an iso on the main hard drive, which is frankly easier than creating a new tiny partition to boot off of.


Answer



I suggest you try using UNetbootin.



UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X



That would eliminate the need to use a virtual machine. Basically, you just click through the wizards provided. You choose the Ubuntu distribution, the version, then the ISO file that contains the distribution, and finally the external drive the distribution should be installed on.


enter image description here


Differences between various official Microsoft Windows .iso files


I want to make a bootable USB thumb drive to install Windows on my computer. I don't want to use my old DVD to create an image and then upgrade to SP1, so I decided to download an untouched .iso file that already has SP1 in it. My question is this, is there a difference between these two files files?



en_windows_7_home_premium_with_sp1_x64_dvd_620851.iso



vs



en_windows_7_home_premium_with_sp1_x64_dvd_u_676549.iso



What does dvd_u mean, is it somehow different from plain dvd? Also will these work with my retail Home Premium key or do these work only for thoe with TechNet/MSDN accounts?


Answer



the u version is more recent according to this site
check this for details


Laptop Battery Draining While Plugged In



I have a relatively new (<1yr.) Dell Inspiron 15 laptop, which stays plugged in all the time. It's connected to a flatscreen monitor via HDMI & I keep the lid shut, so that screen's off.



Yesterday I noticed after I shut it down that the 'charging' LED was lit after shutdown, so I turned it back on to see why. The battery was at 98% charge & said it would be 5 minutes before fully charged.




While I was using it throughout the day, it was doing a 'full' antivirus scan, & I was watching Netflix. Nothing draining really.



I don't understand how the battery could have been draining while it was plugged in. Can anybody offer an explanation?



Thanks


Answer



Latest hardwares has this feature where it shuts the power supply to the battery when it is full and recharges it once it reaches a lower point. This is to avoid overcharging (not exactly, due to heating problem and other sort). Can't quite get the name of the feature though. This was a problem during earlier days, that is why people still say don't keep the laptop or mobile always plugged, that it might destroy the battery. But this has long since been solved using this feature. Will post if I find some articles on it.


Thursday, March 23, 2017

64 bit - Windows 7 (x64) memory usage climbs to 90%+ while system is idle?

I have windows 7 with 4GB of RAM. When the system starts from a fresh boot I start with about 33% usage. However, if I walk away with my PC idle for a few hours, or over night, my PC typically climbs to the high 80s or even over 90% usage (once, it got as high as 98%!).


The biggest commit is usually SVCHost.exe at around 500MB. My sidebar.exe process also tends to climb to about the same number.


This is a new development since upgrading to Win7 SP1, and I'm not finding much info about it on the internet. Has anyone else encountered this problem?


Edit
It is causing severe performance issues when I come back to the PC. I have to reboot to get the memory back.


Edit 2:
Tagged as "service-pack". This issue did not occur until SP1 was installed, so I'm wondering if that may be the root cause.

passwords - After installing postgres there is no configuration file. Can I add one?




I am trying to use postgres without user authentication and according to these directions https://dba.stackexchange.com/questions/83164/remove-password-requirement-for-user-postgres



I need a configuration file like




pg_hba.conf
or
postgresql.conf





I did an entire search on my computer and cannot find either of these files but when using the psql command, it still asks for a password and when I put in the user password to login to my computer, it says "password authentication failed..." As supplemental info I uninstalled postgres using homebrew to start all over again but it's still giving me this password trouble. I just want to use postgres with or without a password failure. Am I able to manually create a this configuration files, or maybe they're called something else, or is there another way to get around this password hangup? Please help...


Answer



The configuration files are created when you initialize a PostgreSQL instance by running initdb. Homebrew runs initdb in post-install, and it looks like it's supposed to end up in /usr/local/var/postgres/.


Activating windows 10 with previous windows activation

I have hp omni 10 tablet which came with windows 8.1. I want to clean install windows 10 and want it activated with windows 8.1 license.


I followed this article http://www.howtogeek.com/224342/how-to-clean-install-windows-10/


According to that article i have to first use Microsoft upgrade offer which i did and make sure my windows 10 is activated and it will store my hardware information for activation next time. Then i have to make sure my system is uefi mode and clean install windows without key.. then Microsoft will automatically activate my windows 10 with hardware.


I followed all the steps but my windows is not activated.
It doesn't activate on activating and when i force to activate it with slmgr.vbs /ato it says product key has been blocked


I have not inserted any product key and the product key that is installed it is not my windows 8.1 product key.

Wednesday, March 22, 2017

display - Log Short Burst CPU Usage History Per Process in Windows


Brief:


I want to measure CPU usage of lossless audio compression in Windows. So, I create a batch file to run few codec and want to measure CPU usage of codec from launch until terminated, respectively. The codec run in short burst.


What I need:



  • CPU process log/ history per process per unit of time.


  • CPU process log/ history that can be exported to csv or similar.


  • Not losing any single piece of burst time.



What I have tried:



  • performance monitor = not applicable since perfmon only shows the process, not the program.


  • sysinternal process monitor = great! but, it can't export CPU usage. it has very nice graph in process activity summary, but I have to plot my self.


  • typeperf = nice, filtering process by name. but still too slow.



Thank you.


temporary solved by using typeperf:


typeperf "\Process(MAC)\% Processor Time"

Still figuring out to export to csv and set interval sampling.


sysinternal process monitor by using graph tooltip to get CPU level.


Answer



sysinternal process monitor by using graph tooltip to get CPU level.


How to disable Windows 10 System and Compress Memory feature?

As the title says, how do we disable it?



It maybe promising for low memory devices but not on a 32 Gig Ram, it consumes about 50% of disk access and it slows down other access on local disks.



There were few answers discussed in How to disable Windows 10 memory compression? but it does not work now on Windows 10 Build 1511

active directory - AD Account Got Locked Out

We have a service account in our AD environment (Windows 2003) got locked out frequently.


some background information:



  • Windows 2003 domain

  • the account is set to never expire

  • we never changed the password of this account

  • The interval between each time i unlock the account is totally random.


Sometimes, the account runs normally for a week or two without any problem; while some other time, it locks again one day after i unlock


At first, i thought the account might be used by a process or schedule job or something which has a misconfigured password. I checked security logs on all DCs but found nothing. I tried the Microsoft Account Lockout Tool as well, and no luck as well.


We checked internal network traffic (assuming if the lockout is triggered by a server/endpoint machine), but couldn't find any invalid login attempt using this account.


We have lots of other service accounts in the same AD environment, and none of them are having the same issue.


I'm really running out of clue .... any help is much appreciated!


Thanks a lot!

wireless networking - Cross-platform file-sharing over wifi

My iPhone has a program called Discover that creates a local website that allows me to share files from my phone over wifi and upload files. I have quite a limited download cap, so keeping the traffic within the network is important. I was wondering if there were any cross-platform programs (Mac, Linux, Windows) that allow me to share files between computers in a similar method so that I can avoid the hassle of complicated configuration.

format - Formatting old SSD after cloning to new

I want to delete everything from my older SATA SSD, after I cloned it to a new NVMe. Can You please tell me, what is the easiest and quickest way to do it? I am concerned about the (LNK) "folders" on Windows 7 of the old drive, because they are linked to the folders of the live system.


Instead of that might I be able to format the old drive from the live system, or if I chose to boot up from some boot CD, can I format my old drive without losing something from the NVMe? Or to be 100% safe, shall I put the SATA SSD to a laptop, and with a boot CD shall I format the drive there?


Thank you for the answers!

linux - How to improve the HTML formatting in Evolution mail client

I have a question about viewing HTML emails in the Evolution mail client. Basically, I am receiving some emails that look lovely in Thunderbird but not in Evolution because the HTML rendering of Evolution isn't as advanced.


Here is a screenshot of the difference:


enter image description here


Does anyone know how to improve the HTML rendering of Evolution? e.g. a plugin, tip, code patch, etc...


The closest I've got is to right-click the email, "Save As...", save as a html file, then open in Firefox. Not exactly streamline!


What emails can't it display well? We use the subversion revision control system which is set up to send an email whenever someone commits via svnnotify all nicely coloured via the --handler HTML::ColorDiff -d parameter. When Evolution fails to use the colours, I find it very hard to read the raw diff.

No security updates for .NET 3.5 in Windows 10?


In Windows 10 Pro (November 2014 build) I enabled .NET 3.5 via Windows Features:


enter image description here


Windows downloaded and installed the required components.


I then initiated a Windows Update but, unexpectedly, no updates were found for .NET 3.5. Weird, because in Windows 8.x you get a whole bunch of .NET 3.5 security updates.


Can anyone confirm which of the following is true:



  1. In Windows 10, when you enable .NET 3.5, the components downloaded are already up-to-date and do not require further security updates.


  2. Windows 10 has royally screwed something up again and is not picking up on security updates that it should be.



Answer



The latest security update I can find is from 2014 - before the mainstream release of Windows 10. As such, I'd expect all these are bundled in, and should another release you'll receive it via Windows update.


Recommended Software for Netbook (Windows 7)


Which software is recommended for netbooks?


On my "normal" Windows machine (actually a VM) I use Visual Studio 2008, Delphi 2010 (beginning), Office 2008, and Delphi Prism 2010. But all those seem very heavy for a 1 GB netbook.


Can anyone recommend


a) a programming language/IDE that's really usable on a netbook (in case I travel with it and need some way to write a program or am simply bored (maybe this is a good excuse to learn Ruby)


b) a light-weight word processor/spreadsheet


for my little netbook (Atom N270, 1.6 GHz, 1 GB, 160 GB, Windows 7)?


I can buy software. It doesn't have to be freeware or open source.


Any other recommended software that makes a lot of sense on a 10" netbook?


I am thinking REALbasic might be light-weight enough. I have REALbasic. But I like any excuse to try something new.


Answer



Best lightweight IDE/Text Editor @ Stack Overflow.
Useful software for netbook? @ .


Empty/dump modified memory to pagefile in windows


I use process hacker to clear out a few gigs of ram before loading large files such as 2GB stack traces so that everything does not freeze up for an hour as stuff gets swapped back and forth. However process hacker only empties about 200mb at a time.


Are there any programs or windows APIs that lets me empty a few gigs of modified memory to the pagefile at a time?


Answer



The process hacker author provides the source code. Look into the sourcecode and you can find that memlists.c provides what you want:


command = MemoryFlushModifiedList;
status = NtSetSystemInformation(
SystemMemoryListInformation,
&command,
sizeof(SYSTEM_MEMORY_LIST_COMMAND)
);


Code a simple C CLI tool which runs this command.


Tuesday, March 21, 2017

Batch install Office 2007 KB Updates?


I have over two dozen separate KB updates for Office 2007 with no internet access for Windows Update.


Is there some way I can script or batch install the updates one right after another with no user input?


Answer



I think these are the best options so far:


http://www.wsusoffline.net/


http://technet.microsoft.com/en-us/library/cc178995(office.12).aspx


@echo off
del %temp%\oupdates.txt /q
for /f "delims=-; tokens=1,2,3,4,5" %%i in ('dir /b *kb*.exe') do echo %%j-%%i-%%k-%%l-%%m >> %temp%\oupdates.txt
for /f "delims=-; tokens=1,2,3,4,5" %%i in ('type %temp%\oupdates.txt') do %%j-%%i-%%k-%%l-%%m /log:%temp%\officeupdates.log /passive /norestart

boot - How to Diagnose a Pre-Operating System Load or Hardware Issue



  • How can I find out if my problem is hardware based?

  • If it is, how can I figure out what component is to blame

  • How can I fix other pre-operating system issues?


As an aside, what are all of these components responsible for, and if they break, what can go wrong?


(This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.)


Answer



How can I tell if my problem is because of my hardware?



  1. Does the problem happen before your operating system loads?

  2. Does the problem happen on different operating systems on the same machine?

  3. Do the errors seem like they have no cause (i.e. random crashes every few days/hours, not linked to any particular program running or time spent with the PC on?




How can I figure out which component is to blame?


A very short summary of what happens when components fail



  • Hard Drive: "Missing Operating system" or similar, frequently prompted to run CHKDSK (or similar).

  • RAM: Programs/OS crash for seeming no reason, and with no real pattern.

  • CPU / Heatsink / Power Supply / Outlet: Computer shuts off when doing a lot of work, computer refuses to start at all, or shuts down abruptly.

  • USB drive: Devices plugged in do not get recognized, or they do not get powered.

  • Motherboard: Nothing starts up.


End summary


My computer does not turn on at all


A short-circuit anywhere in the system can cause the power supply to enter over-current shutdown. Therefore disconnect all components except:



  • power supply

  • motherboard

  • CPU

  • CPU fan

  • one memory module (sometimes one module per bank is needed)

  • video card (may be part of the motherboard or processor)

  • power switch and LED

  • PC speaker (the piezo buzzer connected to a four pin connector on the motherboard, not your stereo/surround computer speakers)


If your computer still cannot turn on at all (power supply and CPU fans are not rotating), your problem lies with one (or more) of the following components:



  • Power supply: Your machine is not getting enough power to start. For desktops make sure you have a large enough supply. If the supply seems large enough, it might still be broken. For laptops, make sure it is plugged in, and the charger works.

  • Motherboard: Somewhere on your motherboard there is a fried/broken something. While this is rare, it does happen.

  • BIOS chip: The BIOS chip itself might be fried on the machine. This is extremely rare, but possible.


My computer turns on, beeps, and shuts off


These are called beep codes. Use your manufacturer's website (in the case of a desktop, the motherboard's manufacturer's website) to find out what the beep codes for your particular machine are. Generally, the beep code will tell you exactly what is wrong with the machine (i.e. keyboard not found, hard drive not found, etc). Beep codes will work even if there is no screen (this is their primary advantage to on-screen messages).


My computer turns on, but has some issues:


Step 1: Checking BIOS settings


The very first thing to check is if the problem is actually a BIOS problem as opposed to a hardware problem. In some cases they can appear to be very similar as BIOS runs before boot.


While the way to get into your computer's BIOS settings may vary, generally there is a button you can press before the operating system loads (Delete, F2, F10, F12, End are the most common options) that will bring you into the BIOS setup.


Once there, check to see if any hardware (particularly the hardware that you suspect might be operating incorrectly or not at all) is disabled. If it is, enable it, and see if things work now. If it doesn't read on.


Step 2: Running memory diagnostics


If the RAM has problems, pretty much anything can happen. So the first thing to do is to run a program that will test your memory. Windows 7 has a memory diagnostic built in, but if that is unavailable (windows does not boot, you don't run windows, etc) you can always use Memtest. Just burn it to a CD/USB and boot to the device. If there are memory errors, even when running at specified voltage and speed, you need new RAM. Try swapping out a stick at a time to see which sticks/positions are faulty. If a stick is faulty, just get a new one, and if a position is faulty, you have to decide if you want to get a new motherboard.


Step 3: Running hard drive diagnostics


Make sure the hardware is OK:


There is something called S.M.A.R.T that comes with almost all modern hard drives that is supposed to be able to tell you if your hard drive is going to fail. It does a not so good job at that, but it is better than nothing. To look at the S.M.A.R.T. data use:



  • Windows: you can use wmic followed by diskdrive get status

  • Mac: DiskUtility (off of the mac install disk, or after the OS is booted if that is an option)

  • Unix: You can use SmartMonTools (and see here) for more info. (SmartMontools also has a windows version).


It should be noted that these are just locations of where you can find utilities that can read the S.M.A.R.T data. You can run any of these utilities though, on basically any drive.


Additionally, these programs refer to the host OS, NOT the OS on the drive. The OS on the drive has no baring at all on which one of these tools to use.


Check the file system



  • Windows, get an installation disk, and run chkdsk from that. To do this, select repair, and then after you pick the OS (if any is found) select Command Prompt. Then, type something like chkdsk c: /f (optionally add /r to try and recover some data, /b to try and get some sectors back, /v to see the errors, and /i to speed it up at the cost of not checking everything as stringently).

  • Unix-like systems, you can use fsck(1) (File System ChecK) which is part of all major Unix distros (including mac, FreeBSD, and Linux).


These tools should be able to repair the file systems, if that is indeed the issue.


Step 4: Bootloader


Only use this step if the issue is that you cannot boot into/find your operating system


Super GRUB disk is a great utility that can scour your hard drive and try to find all bootable partitions, and will let you boot to them. Once you have booted, it is important to actually repair the Master Boot Record (MBR).



  • Windows this is possible with a utility called EasyBCD

  • Mac: Use Disk Utility, click on your hard drive (the drive itelf, not the partitions). Move the triangular slider that adjusts the partition back and forth, and the click Apply. The boot infrastructure (either MBR, or EFI) will be recreated. Note: It should warn you that a partition is being changed.

  • Grub (many Linux distros): (taken from here Note change the appropriate references from hd2, hd0, etc to what is appropriate for your setup)



    1. Open a terminal as the root user.

    2. Enter GRUB (we're now are in a command line interface shell for GRUB).

    3. Enter root (hd2,0) (setting the boot drive where most of GRUB, and the system kernel files are).

    4. Enter find (hd2,0)/grub/stage1 (the first file GRUB uses to boot up from). This step may not be necessary, but better safe than sorry.

    5. This gives a list of drives partitions where GRUB could be installed.

    6. Enter setup (hd0) (to install the bootloader to the drive my system BIOS boots up).

    7. Enter quit (to properly exit from the GRUB command line interface shell).


  • FreeBSD: The page here contains extensive instructions for how to restore a bootloader in FreeBSD. The shortened summary though is that if your MBR gets overwritten by some other OS or something else, it can be restored to its plain vanilla state with fdisk -B -b /boot/boot0 device where device is that device that you boot from.



Step 5: Graphics


Only read this step if you have a graphics problem



  • If the problem shows up before your OS boots up, then it is a hardware problem.

  • If before the BIOS it is fine, and after not, it might be a graphics card or driver issue

  • If the problem occurs at random, then it is probably a hardware issue.


Closing notes:


Hopefully, if you have reached the end of this post (I know, its long) you have an idea of what the issue is if it is hardware based or pre-OS problem. If not, feel free to ask a question on that lists more details of your situation.


Related information:
How do I troubleshoot hardware issues related to a computer freeze/crash?
How do I troubleshoot when I have no clue where to start?


Windows 8.1 Laptop; Is there a way for closed lid to cause sleep but not when there is a monitor hooked up?


Is it possible to make a laptop sleep when the lid is closed UNLESS there is an external monitor that is plugged in? Perhaps a registry hack or third party software?


The control panel power settings seem to allow for closing the computer's lid to have different effects when the computer is on battery power vs. plugged in, but there is no option to have the computer sleep when the lid is closed UNLESS it is attached to an external monitor.


When I am at my desk, I use my HDMI monitor and I like to have my laptop shut and tucked away in a corner. Whenever I am not at my desk and I instinctively shut my computer, it's still running.


I imagine this is a reasonably common problem and there is an easy solution, but I've been unable to find it so far.


Any suggestions?


Answer



What I'd do in your place:



  1. Use scripts or shortcuts to switch between active power profiles

  2. Create custom power profile which doesn't sleep when lid closed

  3. Use script to detect HDMI state and run switching scripts accordingly.


All is certainly doable. Not easy, but doable.


Personal advice, though - I wouldn't. sleeping with lid closed is not perfect and too many times I pulled out a laptop from a bag fully powered on. And HOT.
I set up options so hitting power button sends it to sleep, wait it's off and only then I'm packing. I don't want to fry my machine...


boot - stuck after first reboot with UEFI clean install of Windows 10

Install with media from MS MCT Win10pro x64 from a SD-Card slot.
Did a fresh GPT partitioning of 128 GB SSD as from Win10´s choice.

after the first reboot it stucks at the blue windows logo, but before Windows is actually booting (so not safe mode/logging of drivers).



Now the strange thing: When I plug in a USB stick or SD card the installed Windows 10 boots again! not every time but most times.
what the heck??
Any idea? I'm quite lost.



(I must admit that the device is a MBA 2011 which isn't supported by Apple.)



C:\Windows\system32>bcdedit


Windows-Start-Manager
---------------------
Bezeichner {bootmgr}
device partition=\Device\HarddiskVolume2
path \EFI\Microsoft\Boot\bootmgfw.efi
description Windows Boot Manager
locale en-us
inherit {globalsettings}
default {current}
resumeobject {a569a3fb-603c-11e5-9ef2-8784ae1558dd}

displayorder {current}
toolsdisplayorder {memdiag}
timeout 0

Windows-Startladeprogramm
-------------------------
Bezeichner {current}
device partition=C:
path \Windows\system32\winload.efi
description Windows 10

locale en-us
inherit {bootloadersettings}
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \Windows
resumeobject {a569a3fb-603c-11e5-9ef2-8784ae1558dd}
nx OptIn
bootmenupolicy Standard


--------------------------------

DISKPART> list disk

Datenträger ### Status Größe Frei Dyn GPT
--------------- ------------- ------- ------- --- ---
* Datenträger 0 Online 113 GB 0 B *
Datenträger 1 Online 14 GB 0 B

DISKPART> list part


Partition ### Typ Größe Offset
------------- ---------------- ------- -------
Partition 1 Wiederherstellun 450 MB 1024 KB
Partition 2 System 100 MB 451 MB
Partition 3 Reserviert 16 MB 551 MB
Partition 4 Primär 112 GB 567 MB

DISKPART> list vol


Volume ### Bst Bezeichnung DS Typ Größe Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C MacbookC NTFS Partition 112 GB Fehlerfre Startpar
Volume 1 Wiederherst NTFS Partition 450 MB Fehlerfre Versteck
Volume 2 FAT32 Partition 100 MB Fehlerfre System
Volume 3 D Wechselmed 0 B Kein Medi

filesystem corruption - Dying SanDisk Memory Stick Pro Duo


I have a Memory Stick Pro Duo and after attempting to delete the largest file from a Mac the stick has become unusable. I can almost access it. When I put it in my PC I can open/delete/copy/paste/rename/modify one file/folder, then it can't detect the card. If I reinsert the card I can move on to the next file, but this is really annoying and my PSP won't read it at all. The memory card access light will flash for a really long time before it says that every file is corrupted. When I have tried to format it with either the PC, PSP, or a camera that uses a memory stick pro duo, it fails. I've tried with all the different options on windows, I tried formatting it through CMD, but nothing I have tried works. Should I copy every file off one by one or is there a way to fix it?


If there is no way to fix it, can anyone tell me if the Mac was possibly the cause? The problem started after I used a tool on Mac OSX Lion to find the largest file and then tried to use the tool to delete it. The file I tried to delete is still there so it makes me wonder if it was the tool was the cause of the corruption.


Answer



Instead of formatting, try removing the partition and then adding a new one, then format the drive. Gnome Partition Editor is a great tool for this. It can do just about anything partition and filesystem related.


If it still cant be done, the stick is probably defective. Flash media does wear out over time.


memory - Windows 7 32-Bit Usable RAM Waste






I am using Windows 7 32-bit on my laptop, and I have 4gb of physical RAM.


In my system properties, it says that 2.99GB are usable. Does this mean the other 1GB are basically useless or are they being used for other things that do contribute to keeping the computer running smooth?


Answer



Correct. They are basically useless under a 32-bit operating system. Welcome to the x86 legacy that your devices are mapped to the upper end of your 4GB address space and mask it from its intended use.


memory - Windows 10, 'System' process taking massive amounts of RAM Weird Poolmon.exe :(

Since I upgraded to Windows 10, my system has been consuming RAM excessively



I've been reading a bit and determined it's likely a driver leaking memory. So I got myself the Windows Driver Kit and tracked memory usage with poolmon:



However, I don't really know how to proceed from here. This poolmon.exe is very weird. Is the item tagged "APL-Paged" the culprit in this issue? How do I go from there to actually identifying the driver?


I tried some stuff like "C:\Windows\System32\drivers>findstr /s APL ." but it returned no results.


So yeah, any help would be appreciated. Thanks in advance.

filenames - Make every file in a Directory Structure Lowercase (Windows)



I have a legacy directory structure from a desktop application that I'm porting to an Android application, and Android doesn't want the names of the files to have capital letters in them. I had originally decided to suck it up and rename them by hand (about a hundred files), but then I found that Windows was thwarting even those attempts: QuotationMarks.png -> quotationmarks.png doesn't even stick, because Windows is case-insensitive: it doesn't even register it is as a filename change. I'd have to QuotationMarks.png -> quotationmarks2.png -> quotationmarks.png for all files, which I would like to avoid.



So is there some kind of secret power app that will allow to perform this operation batch?


Answer



Command line:




for /F %a in ('dir /L /B') do ren %a %a


batch:



for /F %%a in ('dir /L /B') do rename %%a %%a

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...