Showing posts with label Windows 7 Tips. Show all posts
Showing posts with label Windows 7 Tips. Show all posts

Monday, October 22, 2012

Configuring PS3 Media Server with Windows 7 Firewall

If you've installed PS3 Media Server, and you're getting the message "No Renderers were Found" and a great big red "X" on the Status tab, give the following a try. It worked for me.

(NOTE: These instructions are written for those using the Windows 7 Firewall. However, they should work for any other software-based firewall.)

1. Open Windows Firewall control (in Start Menu run box type "WF.msc")

2. You are going to create 2 new rules: 1 inbound and 1 outbound.

3. On the left side, select Inbound Rules. Then, on the right pane, you will see an option for a New Rule. Click it (see below).


4. In the New Inbound Rule Wizard (which should appear), do the following:

  • Choose Program and click Next
  •  Select This Program Path, and enter the path to javaw.exe on your PC (typically \Program files\x86\java\jre6\bin)

  •  Choose Allow the Connection, then Tick Private and Public.
Complete this process by naming the rule something notable (e.g. ! - PS3 Media Server). Repeat the process in Outbound Rules. Now restart PS3 Media Server. Provided everything else is in order, it should now work.

It is important to note that opening javaw.exe to inbound connections from any IP is a security risk. You may wish to limit the scope of these rules to your local subnet. You can do this by double-clicking on the rule, and selecting Scope. Here, you can limit the remote IPs that can connect to javaw.exe to your local subnet (or specific IP addresses, if you choose).

Thursday, March 1, 2012

How to fix TVersity Error "Screenweaver MX was unable to LAUNCH one or more of its main windows"

If the TVersity interface will not load for you, giving the error "Screenweaver MX was unable to LAUNCH one or more of its main windows. The application must close", here's how most will be able to fix it.

This guide applies to Windows 7, Vista and XP.

Steps:

1. Open System Properties (Right-click Computer, select Properties OR type "sysdm.cpl" in the Run box)
2. Select Advanced System Settings
3. Click Advanced Tab
4. Under "Performance", click Settings button
5. Click Data Execution Prevention Tab
6. Select "Turn on DEP for all programs and services except those I select" (see image below)


7. Click Add, and browse to find TVersity.exe (default install location is C:\Program Files (x86)\TVersity\Media Server\web\admin\TVersity.exe).

You might need a restart for the change to take effect. 

If this issue started for you after installing EMET, you might need to do the following first:

1. Run EMET
2. Click Configure System button
3. Change DEP setting to "Application Opt Out" (see image below)



4. Restart, then complete the steps as detailed above.

Monday, October 3, 2011

How to Close Port 445 in Windows 7 / Vista

If you are cautious / paranoid about open ports in Windows, you may have noticed port 445 open.

To close it, log in as an administrator, and do the following:

1. In the run box, type "services.msc" and run the Services console

2. Scroll down to find the service "Server"

3. Right-click "Server" and select Properties

4. Stop the service, and then click the drag-down box in the center, and select Disable.

5. Restart the system.

Keep in mind that any services that depend on the Server service (e.g. Homegroups, print sharing) will fail. Consider creating a System Restore point prior to making the change.

Thursday, June 23, 2011

How to Create Custom / Separate Windows 7 Firewall Policies for Individual Users

How to Create Windows 7 Firewall Policies for Different Users:

For various reasons, you may wish to have an account with strict firewall policies (such as those detailed in this post), and another account with more relaxed policies.

In order to do this, both accounts must be Administrators. This may also work with Vista Firewall, unfortunately I don't currently have a Vista box to test it on. This will not work on Windows Vista.

1. Before doing anything, back up your current firewall policy. Run Windows Firewall with Advanced Security (type firewall in Run box).

2. In the right pane, click Export Policy. Save to c:\, as firewallstd.wfw.

3. Create the policies you wish to implement, and export as c:\firewallstrict.wfw.

4. Create this batch file, and save as c:\firewallstd.bat:

------------------------
netsh advfirewall import c:\firewallstd.wfw
pause
------------------------

5. Create this batch file, as save as c:\firewallstrict.bat:

------------------------
netsh advfirewall import c:\firewallstrict.wfw
pause
------------------------

6. Open Task Scheduler (type task in Run box).

7.  Choose Create a Basic Task.


8. Name this rule as you see fit.



9. For task trigger, select When I Log on.


10. Choose Start a Program.



11. Choose the .BAT file you created earlier. The finishing dialog will appear. Before clicking Finish, tick "Open the Properties dialog for this task when I click Finish".


12. In the resulting window, select Run with Highest Privileges.


Once this is complete, log on to the other account and repeat steps 6 through 12, with the policies you desire for that account. You can remove the "pause" from the batch file if you prefer, but it is helpful to confirm that the policy has properly loaded upon logging in.

Tuesday, May 24, 2011

How To Delete 7-Zip Extraction / Folder History

1. Open the Registry Editor (Start -> regedit.exe) and find the following key:
  • HKEY_CURRENT_USER\Software\7-Zip\Extraction
2. Delete the entry "PathHistory".

You'll need to be logged in as a Administrator to make registry changes. As always, consider backing up the registry before making any changes.

Monday, May 16, 2011

How To Block All Internet Traffic / Connections If Not Connected to a VPN

This post will outline a method using the Windows 7 Firewall to block all Internet traffic unless you are connected to your VPN.

This post assumes you have already followed the steps in the earlier post, How to only use the VPN Connection and Block ISP.

If you implement these rules, your system will have no Internet access unless you are connected to your VPN. That is to say, your system will be connected to the Internet, but no traffic can get in or out unless specifically permitted by a separate firewall rule. If a rule allowing an application exists, that application's traffic will still be able to pass through the firewall.

I have used these rules on my system without ill effect (Windows 7 Home Premium 64-bit). Depending on what other applications you use, you will likely have to create additional rules. If you break your system, don't blame me. Always back up before messing with system settings, and take notes as you go.

It is possible this method could still potentially leak data by way of the system process svchost.exe. If you attempt to block svchost.exe, your PC will not be able to communicate with your router/modem, and you really will have blocked all network functionality - i.e. nothing will work.

That being said, I have monitored VPN disconnects using TCPView and spotted no leaks - just all processes (including system processes) engaged in Internet traffic instantly changing from ESTABLISHED to TIME_WAIT, and shortly thereafter vanishing.

Steps:

1. Open Windows Firewall with Advanced Security (in this guide, start at step #4)

2. Select Inbound Rules. The New Inbound Rule Wizard will appear.

3. Select Custom Rule (see below).


4. Select All Programs.

5. Select Any IP Address, for both Local and Remote.

6. Select Block The Connection (see below).


7. Select Domain and Private, leaving Private and Public unticked (see below)



8. Name your rule and click Finish. Repeat steps 1 through 8 for Outbound Rules.

9.  In the Windows Firewall with Advanced Security window, select Windows Firewall Properties (see below).


10. In the resulting window, choose to block both inbound and outbound traffic for the Domain and Private profiles (see below). You may also want to block outbound traffic on the Public profile as well, but you will need to create specific allow rules for every application that needs Internet access.


You should test your configuration at this point to ensure it is working. Connect to your VPN, start up some downloads, and disconnect. All traffic should die immediately.

Monday, May 2, 2011

How to Disable IPv6 and Teredo in Windows 7

Steps to Disable IPv6 stack and Teredo Tunnelling Protocol in Windows 7

There are privacy issues abounds related to the Windows 7 implementation of IPv6. I won't get into them here, I'm assuming if you're reading this page, you are aware of these issues and wish to disable it.

If you need a desk reference for tweaking Windows 7, consider Windows 7 Tweaks: A Comprehensive Guide. It's a lot better than the O'Reilly Windows 7 book, and it's cheaper too.


(NOTE: You must be logged in as a Administrator to make these changes.)

To Disable IPv6 stack:

1. Open the Registry Editor. (Start -> type "regedit" in search box)
2. Find the following key:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
3. Right-click on "Parameters", and select "New", and then "DWORD (32-bit) value"
4. Enter the following in the resulting window:
  • DisabledComponents
5. Modify the DisabledComponents key by right-clicking it. Enter the following hexadecimal value:
  • 0xffffffff
Upon entering this value, it may display as "0x41ffffff". 

Some web pages say you should enter a "0" here, but that actually will enable IPv6.


To Disable Teredo Tunneling Protocol:

1. Click Start -> Control Panel
2. Click System and Security
3. Click Device Manager (the UAC prompt will appear, click OK)
4. In the Device Manager Windows, click View -> Show Hidden Devices
5. Find the Teredo Tunneling Pseudo-Interface in Network Adapters
6. Right-click Teredo Tunneling Pseudo-Interface, and select Disable.

Tuesday, April 12, 2011

How to Format USB / External Drive (FAT32 / NTFS)

Simply open a command prompt as an Administrator and type the following:

For FAT32:

  • format /FS:FAT32 driveletter:  (e.g. format /FS:FAT32 F:)

For NTFS:

  • format /FS:NTFS driveletter:

All data on the target drive will be erased.

You can also convert a FAT32 drive to NTFS without any data loss with the following command:

  • convert driveletter: /FS:NTFS

NOTE: If you convert from NTFS to FAT32, all data will be erased.

Friday, February 25, 2011

Allow a VPN Connection in Windows 7 Firewall - Ports to Open - Error 809

If you are using Windows 7 Firewall with outbound traffic restrictions, you may run into problems if you attempt to use a VPN service, receiving Error 809. I block all outbound traffic that does not match an existing rule by default, and ran into some trouble attempting to connect to my VPN.

(NOTE: The instructions below assume some familiarity with modifying rules in the Windows 7 Firewall. If you need some further direction, see this guide, and start at step #4.)

To use an L2TP - based VPN, you must create a rule to allow outbound UDP connections on port 1701. You should apply this to the Private and Public profiles (Domain should not be necessary - but if this fails, try Domain as well).

To use a PPTP - based VPN, the same applies, however you must allow TCP port 1723.

To use an IPSec - based VPN, the same applies, however you must allow UDP port 500.

Some router /  protocol combinations may also require that you modify router settings to allow them. My D-Link DIR-625 has a specific "tick-box" to allow certain protocols, such as PPTP. Your best bet if you use a router is to consult your router manual / your router's settings if opening your port locally is not successful.

Wednesday, January 26, 2011

Windows Always Displays Italics - How to Fix Browser Always Displaying Italics - Windows Fonts Bug - Easy Fix.

An Easy Fix if your Browser is always displaying text in italics:

I recently had some problems with Windows 7 not displaying fonts correctly - i.e. fonts were always italicized in web pages (in Firefox, IE and Chrome - tried all three).

After some research I found a fix - copy and paste the following text (in between the dotted lines) into a new text document (e.g. in Notepad), save the file as fontfix.reg (or something similar). Right-click the file and choose Merge.

This works on Windows XP, Vista and Windows 7.

(NOTE: You must be logged in as an Administrator to perform this task.)


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

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Tahoma (TrueType)"="tahoma.ttf"
"Courier New (TrueType)"="cour.ttf"
"Verdana (TrueType)"="verdana.ttf"
"Arial (TrueType)"="arial.ttf"
"Arial Narrow (TrueType)"="arialn.ttf"
"Arial Bold (TrueType)"="arialbd.ttf"
"Lucida Console (TrueType)"="lucon.ttf"
"Trebuched MS (TrueType)"="trebuc.ttf"
"Times New Roman (TrueType)"="times.ttf"
"Marlett (TrueType)"="marlett.ttf"


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

Monday, January 17, 2011

How to Always / Only Use VPN Connection and block ISP - Make Bittorrent only use VPN Connection

VPNs are great for added security when using the Internet - but what about when the VPN drops or disconnects? Unfortunately, if you use Windows (any version), any running application (for example, BitTorrent, your browser) will revert to using your ISP connection, exposing your IP address and opening you up to security and privacy issues. This is of particular concern when using a VPN to secure a public wi-fi spot. Windows will not prevent traffic in the event of a disconnect.

There are many guides found online to prevent this using third-party firewalls such as Comodo, or using a third-party applications such as VPNetMon or VPNCheck (neither of which I know anything about, and cannot speak to their reliability or safety).

This guide will show you how to configure Windows 7 Firewall to block any specified application (I have used Firefox as an example - but you can pick any application, e.g. utorrent or your preferred torrent client) from using your ISP connection, and permit it to connect the the Internet using only the VPN connection. Users who are unfamiliar with the basic aspects of Windows 7 Firewall may wish to consult this guide. Unfortunately, this will not work with the built-in firewall in Windows XP or Vista.

Preliminary Considerations:

1. If you use an antivirus program such as avast! that has a Web Shield / Filter that passes HTTP traffic through an antivirus/malware scan, you may want to consider this post.

2. The IPv6 functionality in Windows 7 can also leak IP information - you may wish to disable it - see the guide here.

3. After you complete the steps in this guide, you may want to consider adding a rule to block all traffic that does not match a rule to the Domain and Private profile. See the guide here.

4. If you want to create these rules for one user account, and maintain less strict rules for another user account, please see this post. 

5. If you are blocking a torrent application such as uTorrent, you'll want to disable uTP, DHT, UPnP, Local Peer Discovery and IPv6.

Steps:

1. Connect to your VPN as you normally would. 

2. Open the Network and Sharing Center - right-click on the Internet connection icon in the taskbar and choose "Open Network and Sharing Center" (see below)


3. You should see (at least) two networks listed under "View Your Active Networks" - your VPN connection and one called "Network" - a.k.a. your ISP Connection. Ensure that your VPN is a "Public Network", and your ISP connection is "Home Network". If you need to change either connection, click it and an option window will appear (see below).



4. Go to the Control Panel and click System and Security (see below).




5. In the resulting window, click Windows Firewall (see below).



6. In the Windows Firewall  window, click Advanced Settings on the left pane (see below).  
Note: You must be logged in as an Adminstrator to make changes to the Firewall Settings.




7. You should see a window titled Windows Firewall with Advanced Security. In this window, click Inbound Rules (see below).




8.  On the right pane, you will see an option for a New Rule. Click it (see below).



9.  In the New Inbound Rule Wizard (which should appear), do the following:

  •  Choose Program and click Next.


    •  Choose the program you wish to block all traffic to except on the VPN connection, and click next.

    •  Choose Block the Connection.

    •  Tick Domain and Private. Make sure Public is left unticked.

      10. Repeat Step 9 for Outbound Rules.

      When all of the above steps are complete, you should test the configuration. Run the application you made the rule for, and test that it is working when the VPN is connected. Start a download, and then disconnect from the VPN. If all is configured properly, the download should die immediately as the firewall will immediately block it from using your ISP-assigned IP address. If you wish to monitor traffic closely, use TCPView.