Skip to content

Instantly share code, notes, and snippets.

View oledid's full-sized avatar
😃
On duty

Ole Morten Didriksen oledid

😃
On duty
View GitHub Profile
@oledid
oledid / ms_description.reg
Last active April 14, 2023 09:07
Show MS_Description in SQL Management Studio (SSMS) designer
Windows Registry Editor Version 5.00
; Please read https://stackoverflow.com/questions/10537610/how-do-i-add-the-description-property-to-the-table-designer-view-in-ssms
; before running this file
[HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\19.0_IsoShell\DataProject]
"SSVPropViewColumnsSQL70"="1,2,6,17;"
"SSVPropViewColumnsSQL80"="1,2,6,17;"
@oledid
oledid / How to fix local account password not synced with connected microsoft account password.md
Last active April 14, 2023 18:11
How to fix local account password not synced with connected microsoft account password

How to fix local account password not synced with connected microsoft account password

May fix rare problems connecting to RDP

Source: Karl Grear1's response here https://answers.microsoft.com/en-us/windows/forum/all/remote-desktop-connection-logon-attempt-failed/9bfe09b6-87dd-41a6-ba62-2b65a6b64bce

If you do not know your local account name run PowerShell or Command Prompt and run the command 'whoami'

Hold down the shift key, and right click on a shortcut of your choice. I used PowerShell, but Notepad or some other small application should work.

@oledid
oledid / turn-off-screen.ps1
Created September 24, 2015 07:15
PowerShell: Turn off computer screen
# Source: http://www.powershellmagazine.com/2013/07/18/pstip-how-to-switch-off-display-with-powershell/
# Turn display off by calling WindowsAPI.
# SendMessage(HWND_BROADCAST,WM_SYSCOMMAND, SC_MONITORPOWER, POWER_OFF)
# HWND_BROADCAST 0xffff
# WM_SYSCOMMAND 0x0112
# SC_MONITORPOWER 0xf170
# POWER_OFF 0x0002