Category Archives : Uncategorized

Restore from Recoverable Items, deleted deleted items.

Get the count for all deleted, deleted items from past 2 days

Get-RecoverableItems USERNAME-ResultSize Unlimited -FilterStartTime (get-date).adddays(-2) -FilterItemType IPM.Note | select Identity,Subject,LastmodifiedTime | Measure-Object

Do the restore based off the count above:

Get-RecoverableItems kelly -ResultSize Unlimited -FilterStartTime (get-date).adddays(-2) -FilterItemType IPM.Note | select Identity,Subject,LastmodifiedTime | Restore-RecoverableItems

Windows 10 – Fix Boot

diskpart
sel disk 0
list vol

Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system. Assign a drive letter to it that is not already in use.):

sel vol <number of volume>
assign letter=<drive letter>:
exit

Sometimes fails:
cd /d <drive letter>:\EFI\Microsoft\Boot\
bootrec /FixBoot
 
ren BCD BCD.old


Boot letter below is letter from one assigned above for EFI partition

Pre-1709:
bcdboot c:\Windows /l en-us /s <boot letter>: All

Post-1709:
bcdboot c:\Windows /s <boot letter>: /f UEFI
 

WordPress – fix canonical URL

This goes into functions.php

CHECK YOUR QUOTES WHEN PASTING

function gallery_canonical($url) {
return site_url($_SERVER[‘REQUEST_URI’]);
}

add_filter( ‘wpseo_canonical’, ‘gallery_canonical’ );

add_filter( ‘wpseo_opengraph_url’, ‘gallery_canonical’ );

Alternate version:

function gallery_canonical($url) {
return site_url($_SERVER[‘REQUEST_URI’]);
}

add_action(‘init’, function() {
add_filter(‘wpseo_canonical’ , ‘gallery_canonical’, 10,1);
add_filter( ‘wpseo_opengraph_url’, ‘gallery_canonical’ );

});

« Previous PageNext Page »
Back to Top