Friday, 7 June 2013

Remove "Network" from the Windows 7 Navigation Pane

How to Add or Remove "Network" from the Windows 7 Navigation Pane



information   Information
This will show you how to add or remove Network in the Windows Explorer Navigation Pane in Windows 7.
warning   Warning
  • You can only do this while logged into an administrator account.
  • This will affect all user account's on the computer.
  • This will also add or remove the default Network desktop icon as well.

EXAMPLE: Network in Navigation Pane 
NOTE: This is the Network group added (default) (left screenshot below) and removed (right screenshot below) from the Navigation Pane.
Network - Add or Remove from Navigation Pane-default.jpgNetwork - Add or Remove from Navigation Pane-removed.jpg


Here's How:
1. Open the Start Menu and type regedit.exe in the search line, then press enter.

2. If prompted by UAC, then click on Yes.

3. In Regedit, go to the location below: (See screenshot below step 4)
Code:
HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder
4. In the left pane of regedit, right click on the ShellFolder key and click on Permissions. (See screenshot below)
Network - Add or Remove from Navigation Pane-step-.jpg 
5. At the top, select the Administrators group. At the bottom, check the Allow box to the right of Full Control and click on OK. (See screenshot below)
Network - Add or Remove from Navigation Pane-step-b.jpg 
6. In the right pane of regedit, right click on Attributes and click on Modify. (See screenshot below)
Network - Add or Remove from Navigation Pane-step-c.jpg
7. To Add Network to the Navigation Pane
NOTE: This is the default setting.
A) Type in b0040064 and click on OK. (see screenshot below)
Network - Add or Remove from Navigation Pane-step-e.jpg
B) Go to step 9.
8. To Remove Network from the Navigation Pane
A) Type in b0940064 and click on OK. (see screenshot below)
Network - Add or Remove from Navigation Pane-step-f.jpg
9. If you have 64-bit Windows 7 Installed
Note   Note
CREDIT TO: Kookster for this addition.

To also add or remove Network from the "Open" and "Save as" type windows as well in 64-bit Windows 7, you will also need to do this step.

If you have a 32-bit Windows 7 installed, then skip this step since doing steps 1 to 7/8 will add or remove Network from the "Open" and "Save as" type windows as well.
A) In Regedit, go to the location below:

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder
B) Repeat steps 4 to 7/8 above.
10. Close regedit.

11. Restart the computer to fully apply.
That's it,

Thursday, 23 May 2013

Windows 7: Printer - Delete the printer driver Manually

Windows XP

  1. Delete the printers before you remove the drivers
    • Start-->Device & Printers-->Delete the printer then on the folder 
  2. Remove the drivers:
    • On Device & Printers folder Click File Menu -->Server Properties-->Drivers tab. Now select the drivers you want to uninstall and click Remove button.


Windows 7

  1. Open Print Management. Print Management is available in Windows 7 like windows server 2008. 
    • Start-->Administrative Tools-->Print Management-->
  2. Remove the Drivers.
    1. In the Print Management, browse to Print Servers-->Drivers
    2. Select the drivers-->Right click-->Remove the driver package.
Windows 7 Command Line
  1. Open command prompt in alleviated mode
  2. type command: printui /s /t2

Thursday, 18 April 2013

Windows 7: Rip Music from CD to MP3 files

We can rip music from CD to MP3 files using windows media player so

  1. Insert the CD into CD drive
  2. Open Windows Media Player
  3. Right click on the media player and select-->Show Menu (CTRL+M)
  4. Go to Tools-->Options-->Rip Music and select the format you want to and the Rip music location
  5. Now Select audio files from CD and click Rip from the windows media player menu bar
  6. Done

Command: Find OS of remote computer


systeminfo /s IP.ADDRESS   worked for me.

systeminfo /s IP.ADDRESS /u UserOnRemotePc

Wednesday, 30 January 2013

Windows 7: Show specific control panel item using GPO


The full path of this node in the Group Policy Management Console is:
  1. User Configuration\Administrative Templates\Control Panel
  2. Click on->Show only specified Control Panel items
    • Click on Add and type the control panel item name. For example: If you want to show mouse control it is named in the control panel as Mouse so just type Mouse in the Add box.


Monday, 10 December 2012

Cannot completly remove printer

  1. A stuck print job in the queue will prevent the printer from being removed. Try running Delete Print Jobs to remove the stuck print job.
  2.  Disconnect the printer.
  3.  Uninstall the printer.
  4.  Restart your computer. Make sure the printer is removed. Manual Printer Driver Removal


Thursday, 15 November 2012

Delete cached copied of user profile Windows 7 using GPO

Method 1:
Add your users to the 'Domain Guests' global group - those users won't leave any profile on your computers.. it works!


Method 2: 
You can configure a Group Policy Object (GPO) to perform the preceding behavior by performing the following steps:
  1. Edit the GPO that you want to modify.
  2. Locate the following section: Computer Configuration \ Administrative Templates \ System \ User Profiles.
  3. Double-click Delete cached copies of roaming profiles (the Group Policy setting).
  4. Click Enabled.
Method 3: 
You can run this script every night to clean up. The check at the start is to exclude certain machines (the ones in lecture theatres)

The next section uses a WMI call to get a list of profiles other than the "special" ones (localsystem etc) and delete them (this is what you see when you go to the control panel and delete profiles)

This will sometimes leave bits behind so the next step is to get a list of folders which shouldn't be deleted by reading the existing profiles from the registry - this list is built in a dictionary. To this is then added things like "public" and "default".

The script then scans c:\users and checks each folder it finds against the dictionary. If the folder isn't listed then it gets deleted (because it doesn't need to be there)

Code:
const HKEY_LOCAL_MACHINE = &H80000002

set oDic=createobject("scripting.dictionary")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
Set oWMIService = GetObject("winmgmts:\\.\root\cimv2")
set oFSO=createobject("scripting.filesystemobject")
set oShell=createobject("wscript.shell")

on error resume next

'are we on an AV machine? if so, quit - leave profiles alone in theatres
if ofso.fileexists("c:\windows\av") then wscript.quit

Set colItems = oWMIService.ExecQuery("Select * from Win32_UserProfile where special=false and loaded=false",,48)
For Each oItem in colItems
  sSid=oItem.SID
  Set oUserProfile = GetObject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2:Win32_UserProfile.SID='" & sSID &"'")
  oUserProfile.Delete_
Next

'now clean up directories not attached to profiles
'and profiles not completely deleted by first step
'build a list of the directories used by profiles

sPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
oReg.EnumKey HKEY_LOCAL_MACHINE, sPath, arrSubKeys
For Each subkey In arrSubKeys
  lRc=oReg.GetStringValue(HKEY_LOCAL_MACHINE, sPath & "\" & subkey ,"ProfileImagePath",sDir)
  sDir=lcase(sDir)
  oDic.add sDir, subkey
Next

'now add the "fixed" profiles

lRc=oReg.GetStringValue(HKEY_LOCAL_MACHINE, sPath ,"ProfilesDirectory",sRoot)
sRoot=lcase(oShell.expandenvironmentstrings(sRoot))
sRoot=sRoot & "\"

oDic.add sRoot & "public","public"
oDic.add sRoot & "all users", "all users"
oDic.add sRoot & "default","default"
oDic.add sRoot & "default user", "default user"


set oFolder=ofso.getfolder("c:\users")
for each oSubFolder in oFolder.subfolders
  sFolder=sRoot & lcase(oSubFolder.name)
  if not(oDic.exists(sFolder)) then
    'orphaned folder so delete it
    ofso.deletefolder sFolder, true
  end if
next