Thursday, August 17, 2017

windows 7 - Netbook won't boot after using EasyBCD

I have an Asus T91MT netbook on which I used to have Windows 7 Home Premium and Ubuntu 10.10 installed (dual boot).



After trying to upgrade to Ubuntu 11.04, Ubuntu is no longer able to boot, so I tried to uninstall Ubuntu completely and then reinstall it. Following these directions, I tried using EasyBCD to bypass the GRUB2 bootloader so that after uninstalling, it would automatically boot into Windows 7.



However, after doing the "install BCD" step and restarting, I got the following message:




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.


  File: \Boot\BCD

  Status: 0xc0000098

  Info: The Windows Boot Configuration Data file does not contain a valid OS entry.


I'm currently trying to create a USB stick of the Windows Installation disc but in the mean time, I can only boot from a Ubuntu USB stick.



Is there anything I can do from within Ubuntu to fix this? Or does anyone have any other suggestions/solutions?

I have some sort of adware that isn't being detected by anything. What should I do?


This started happening a couple of days ago. It's a small and simple form of adware, but it's incredibly annoying. It linkjacks your results on google. For example, if I search for "jobs", the top result is Monster. But if I click it, I get sent to a random spammy site.


I have Microsoft Security Essentials' realtime protection on. I have run a full system scan with it, Avira, Malbytes, and Spybot. None of them pick up anything. There is nothing suspicious in my task list, and no unknown applications or services are starting up with my computer. I have no extensions for chrome running.


What can I do?


Answer



I would try running a scan for outside the OS in case u have a rootkit that could be hidding it self inside the OS.
Heres a link to AVG free bootable virus scan AVG Rescue CD


You could also try flushing your DNS by running the command "ipconfig /flushdns"


if nether of the to work try a system restore.


Last case scenario Back up, format and reinstall.


batch - For loop where the for variable contains parenthesis

I have a number of files that contain a line that needs to be deleted. These files are contained in subdirectories of a specific directory, and all files of a specific extension need to be iterated through and the line deleted. The problem I have is that the path has brackets and spaces, which seem to prevent the loop from working properly. How do you escape the path?


The code I have currently:


For /R "%ALL_BUT_FIRST%\bin\%1\Scripts" %%G in (*.csx) do (
echo %%G
findstr /V "texttoreplace" "%%G" >"%%G"
)

When not trying to write to the file, findstr outputs to the console the correct result perfectly. It is only writing the file that causes the .bat to fail with the error:


C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5185,5): error MSB3073: The command ""D:\Users[username]\Desktop\Other projects (ie open source ones)\Freee\FrEee.WinForms\post-build.bat" Debug D:\Users[username]\Desktop\Other projects (ie open source ones)\Freee\FrEee.WinForms\" exited with code 1.

Wednesday, August 16, 2017

Irritating auto-changing column types in Windows Explorer in case of audio/video files


I have an empty folder with regular details view. File name, file size, file type columns are shown and I am happy.


Then I put some MP3 or WAV files in. Windows Explorer "kindly" changes the column types. It will show Genre, media length, Album and other metadata tags, but does not show the file size anymore. If I do not like it, I have to manually change the columns back. It is very irritating.


How can I turn this automatic behavior off?


Answer



You have to disable the "Automatic Folder Type Discovery" feature present in Windows Vista and later versions. (This solution is tested on Windows Vista, and probably works on Windows 7 as well. I'm not sure about Windows 8 / 8.1 / 10).


Perform the following steps:


Download this file and double click the REG file inside it.


In case the link goes broken, copy the following lines into a new text file, save it as "resetfolders.reg" and double-click it:


Windows Registry Editor Version 5.00
; Reset and delete all saved folder customizations and settings.
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
; Turn off Vista auto folder type template discovery.
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
; Modify the storage space to 10000 for saving of up to 10000 folder settings.
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell]
"BagMRU Size"=dword:00002710

 1. Reset the folder options:



  • In Windows Explorer, click Organize -> Folder and Search Options -> View tab -> Folder Options -> Reset Folder

    • The above can also be done by removing the registry keys HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags and its subkeys and HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU and its subkeys.


  • go to Folder Options (Organize -> Folder and Search Options) View tab, and make sure the Remember each folder’s view settings is checked.

  • Close the Explorer window after changes to save the settings. Windows Vista will only remember the state of folders of the window is closed.


 2. Disable auto discovery:



  • Start Regedit, navigate to the key HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell and perform the following steps:

  • Right click on Shell in left pane, select New and then click Key.

  • Type Bags to create a key named Bags, and press Enter.

  • Right click on Bags that just been created, select New and then click Key.

  • Type AllFolders to create a sub-key named AllFolders, and and press Enter.

  • Right click on AllFolders that just been created, select New and then click Key.

  • Type Shell to create another subkey named Shell, and then press Enter.

  • Select Shell key that just been created, and then right click on an empty area in the right pane, click on New and then select String Value.

  • Type FolderType as the value name, and press Enter.

  • Right click on the Folder Type and click Modify or simply double click on FolderType.

  • Type NotSpecified as its value data.

  • Click OK.


 3. Increasing the BagMRU Cache Memory Size



  • Run Registry Editor (regedit).

  • Navigate to the following registry key: HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell

  • If there is not a BagMRU Size value, right click on a blank space in the right pane, then select New, and then click DWORD (32-bit) Value. Then, type BagMRU Size as the value name.

  • Double click on BagMRU Size key just created, and then enter 10000 (in decimal base) or 2710 (in hexadecimal base) as its value data.


(source)


extended desktop - Three displays (1920x1200) with one graphics card

I'm using a Zotac GTS250 with two 1920x1200 28" monitors in extended desktop mode.



I need an additional display, so I'm going to buy one more 1920x1200 28", but since GTS250 doesn't support more than two displays, I need a slight upgrade.




The best solution for me is a new graphics card - I'm thinking of an AMD 6850 XFX 1024MB, with two DVI, one HDMI and one DP. I don't need Eyefinity, I just need three displays with the same maximum resolution of 1920x1200 working in extended desktop mode. However I looked on the AMD website and found out that Eyefinity requires at least one display connected through DP, and there is no information about three displays without Eyefinity. Since my displays are DVI and HDMI only, I need a dongle, which is unavailable in my country and I don't have time to wait for its delivery.



Can I use the 6850 with three 1920x1200 displays, connected via DVI-DVI-HDMI? Is there any alternative solution in this situation (three DVI/HDMI displays)?



A second graphics card is not a solution currently because the second PCI-E port on my motherboard works in 1x mode. Would it be a possible solution to use two different graphics cards to solve my problem? I mean, I actually can buy a new motherboard if there is no chance to connect displays. As I said, DVI-DVI-HDMI.

keyboard - Synergy: how to forward same keystroke to client and ALSO to server?

I've installed synergy on two different machines... now I need to type one key in the server in order to obtain an action both in server and client (i.e. left and right arrows to control two different powerpoint presentation simultanously on the 2 machines).
I've configured the server but when I press the key in the server the action is executed only in the client.
Where is my fault?


Thanks!

windows 8 - Why access denied for user within permitted group?

First let me start off by saying that I'm not an IT expert, and I've just been experimenting a lot lately with sharing and permissions in Windows 8.1. I've reached a point of extreme confusion right now and I can't find anything online.




Since I'm not running a professional edition of Windows 8.1, I've had to use the net LOCALGROUP command in the command prompt to add users to groups etc.



I basically made a LOCALGROUP called HomeSecure, and added two users (AdminOne and AdminTwo) to it. Both of these users are also in the Administrators group and are indeed administrator accounts in Windows. It sounds pointless but it's because I'm attempting to manually simulate HomeGroup functionality, and plan to add non-administrator accounts from other workstations using the net GROUP command instead once I've got the basics.



I have checked, and the commands worked just fine. The administrator accounts are in that group. The confusion comes about when I remove absolutely all user and group permissions (including Everyone) from my C:\Users\AdminOne and C:\Users\AdminTwo folders except Administrators and SYSTEM, then proceed to add allow permissions for the HomeSecure group...



All of the groups I gave Full Control of the folders to. I went into the advanced settings and made sure everything was checked, and even made the HomeSecure group take ownership of the folders. It's also worth mentioning that I made all of the child objects inherit the owners and permissions of these folders.



But even after all of that, I still can't access the above folders from the network using HomeSecure members. I also can't access them straight from C:\ without it prompting me for administrative consent.




Accessing via the network, I get: You do not have permission to access ----- Contact your network administrator to request access.



Accessing via C:\, I get: You currently don't have permission to access this folder. Click continue to permanently get access to this folder.



If I press continue, all that Windows does is add allow permissions for the current user (AdminOne or AdminTwo) which seems redundant because they were already allowed? They were already allowed via the HomeSecure permissions?



Why? Shouldn't AdminOne and AdminTwo be allowed to access both folders normally since they are in the HomeSecure group?

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