Archive for the ‘General’ Category

Win10 printers keep coming back, not deleting

Saturday, July 3rd, 2021

The only solution for me was:

    • Downloading PSTools
    • Running CMD as administrator
    • Run the command psexec -i -s c:\windows\regedit.exe (make sure you don’t have regedit open already, otherwise it gives an error)
    • Delete all keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SWD\PRINTENUM which contained the printer name that keeps coming back.

You have to use the PStools option, because otherwise you will get an access denied error when deleting the regkeys.

https://serverfault.com/questions/604161/deleted-printers-keeps-coming-back-and-multiply

https://docs.microsoft.com/en-us/sysinternals/downloads/pstools

Calm your emotions

Wednesday, April 14th, 2021

https://psyche.co/guides/how-to-calm-your-emotions-with-dialectical-behaviour-therapy

  • One of the first steps in regulating emotions is being able to accurately put a label on your emotion (‘name it to tame it’). This helps to increase your awareness of how you experience your emotions so you get to know them better.
  • Self-validation, or accepting your emotions, is soothing, and prevents extra emotional pain from arising.
  • Sometimes you need to calm down your body a bit before you get re-regulated. Doing a forward bend or paced breathing (counting your exhale so it’s longer than your inhale) are great ways to get your emotions a little quieter so you can figure out what to do next.
  • To reduce the intensity of an emotion, ‘acting opposite’ to what the emotion tells us to do – literally doing the reverse of what we feel compelled to do – can help.

 

Monarch Butterfly Garden

Saturday, March 27th, 2021

https://www.somonarchs.org/milkweed

https://klamathsiskiyouseeds.com/?s=milkweed&post_type=product

https://monarchbutterflygarden.net/7-spring-planting-secrets-growing-milkweed/

https://blogs.oregonstate.edu/pollinationpodcast/2018/02/12/tom-landis/

https://monarchbutterflygarden.net/stop-milkweed-pests-ruining-milkweed-monarchs/#JB

https://monarchbutterflygarden.net/control-aphids-milkweed-plants/

https://monarchbutterflygarden.net/how-to-start-monarch-butterfly-garden/

 

OneDrive repair reset and powershell get sharepoint recycle list and export user recycle bin to csv

Tuesday, March 9th, 2021

Reset onedrive on a computer

Run

 

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

wait

run

%localappdata%\Microsoft\OneDrive\onedrive.exe

powershell get sharepoint recycle list

(Get-SPSite -Identity "[your site collection URL]").RecycleBin | Export-CSV -Path "[file path and name]"

export user recycle bin to csv

https://social.technet.microsoft.com/Forums/en-US/437381fc-e7e7-4bfa-9488-a23cbcfe825a/get-the-recycle-bin-items-which-has-been-deleted-for-past-10-days-and-has-to-be-exported-to-excel?forum=sharepointgeneralprevious

$url="http://sp"

$deleteFrom = -10

$report = "$($dir)\DeletedRecycleBinItems.csv"

New-Item $report -type file -Force | Out-Null

Add-Content $report "Name, Title, Deleted by, Deleted date, Path, File Guid"

$dateNow = Get-Date

$dateDiff = $dateNow.AddDays($deleteFrom)

$site = Get-SPsite $url

$site.Recyclebin | where { $_.deleteddate -ge $dateDiff} | foreach{ Add-Content $report "$($_.LeafName),$($_.Title),$($_.deletedbyname),$($_.deleteddate),$($_.Dirname),$($_.Id)"

}

Windows 10 preserve mapped drives

Tuesday, March 2nd, 2021

net use /p:yes

https://support.elliott.com/knowledgebase/articles/1818058-mapped-drives-disappear-after-logoff-or-reboot