Exemple #1
0
def clean_start_menu_programs():
    """
    In order to see this work you'll either have to log off and then back on or
    simply kill explorer.exe and start it again from task manager
    
    """
    regpath = r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count"
    win32registry.DeleteKeyRecursive(regpath)

    regpath = r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count"
    win32registry.DeleteKeyRecursive(regpath)
Exemple #2
0
def office_clean_mrus( ) :


    regpath=r"HKEY_CURRENT_USER\Software\Microsoft\Office"
    if ( not win32registry.KeyExists( regpath ) ) :
        print "Office Key does not exist"
        print "Nothng to clean."
        return

    delete_count = 0            

    value_name = 'value' 
    mru_reg_keys = win32registry.FindSubKeysRecursive( regpath, 'file name mru' )
    mru_reg_values = [ win32registry.join( s, value_name ) for s in mru_reg_keys ]
    
    for mru_reg_key in mru_reg_keys :
        
        values = win32registry.GetValues( mru_reg_key )
        for vn, valuevalue, valuetype in values :
            if ( vn.lower() == value_name ) :
                valuepath = win32registry.join( mru_reg_key, value_name )
                win32registry.DeleteValue( valuepath )

    mru_reg_keys = [ ]
    mru_reg_keys.extend( win32registry.FindSubKeysRecursive( regpath, 'recent file list' ) )
    mru_reg_keys.extend( win32registry.FindSubKeysRecursive( regpath, 'recenttemplatelist' ) )
    mru_reg_keys.extend( win32registry.FindSubKeysRecursive( regpath, 'recentfolderlist' ) )
    mru_reg_keys.extend( win32registry.FindSubKeysRecursive( regpath, 'recent typeface list' ) )

    for mru_reg_key in mru_reg_keys :
        win32registry.DeleteKeyRecursive( mru_reg_key )

    win32registry.DeleteKeyRecursive( 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Internet\Server Cache' )

    regpath=r"HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences"
    win32registry.DeleteKeyValue( regpath, 'LocationMRU' )
def clean_file_save_mru():
    # File Save Dialog
    win32registry.DeleteKeyRecursive(
        r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU"
    )
def clean_fileext_mru():
    win32registry.DeleteKeyRecursive(
        r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts")
def clean_ie_stream_mru():
    win32registry.DeleteKeyRecursive(
        r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU")
Exemple #6
0
def reorder_start_menu_programs():

    regpath = r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder"
    win32registry.DeleteKeyRecursive(regpath)
Exemple #7
0
def clean_media_player_mru():
    win32registry.DeleteKeyRecursive(
        r"HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList")
Exemple #8
0
def clean_recent_docs_mru( ) :
    win32registry.DeleteKeyRecursive( r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" )
def clean_file_open_mru( ) :
    # File Open Dialog
    win32registry.DeleteKeyRecursive( r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" )
Exemple #10
0
def clean_ie_typed_urls():
    win32registry.DeleteKeyRecursive(
        r"HKCU\Software\Microsoft\Internet Explorer\TypedURLs")
def clean_start_menu_run_mru( ) :

    regpath = r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"
    win32registry.DeleteKeyRecursive( regpath )
def clean_mapped_network_drives_mru(  ) :

    # Mapped Network Drives
    win32registry.DeleteKeyRecursive( r"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" )