I found this post on Reddit and wanted to save the command for my notes.
Running this command in Powershell will give you the PC's currently connected SSID. This is handy for troubleshooting network issues when connected remotely through a PSSession.
Change entry at Computer Configuration > Administrative Templates > System > Specify settings for optional component installation and component repair to “Enabled” and check the box for “Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)”
Run gpupdate in Command Prompt.
Open Settings > Apps > Apps & features > Optional features and click “Add a feature”. Search for and install “RSAT: Active Directory Domain Services and Lightweight Directory Services Tools”
Click on “Devices” and select “Configuration profiles”. Click on “Create profile”. Change Platform to “Windows 10 and later” and the Profile type field to “Settings catalog (preview)”. Click the “Create” button.
Give it a basic name and navigate to the “Configuration settings” page.
Click the “Add settings” button. Double click on the “Local Policies Security Options” entry in the Settings picker pane on the right. Check the box for the option “User Account Control Switch To The Secure Desktop When Prompting For Elevation”. Back on the main settings area to the left, change the dropdown to “Disabled” and click the “Next” button.
Enable the policy to all devices (as needed) and then test.
While most organizations are moving files to cloud-based solutions, I'm working for a client who wants to keep everything in-house. In this environment, some users had a private folder under a previous drive letter mapping, others didn't have anything at all.
I created this quick and dirty Powershell script to automate the cleanup process for existing users.
This script gets all users from AD, sets their HomeDirectory attribute in AD to a fileshare and mounts it on the U: drive, and creates private folders with the correct ACL permissions.
I wrote an AutoHotkey script that inserts commonly used text when a keystroke is pressed.
I had issues using the script with Active Directory Users and Computers. I would press the hotkey, but nothing would happen. This has something to do with how Windows handles UAC. Luckily, AHK has a workaround.
Found out from the AHK FAQ that I needed to rerun the AHK installer, select “Modify” in the installer, and check the box for “Add 'Run with UI Access' to context menus”.
Now, I can run my script and interact with ADUC windows without issues.
This AutoHotkey script improves the way Windows inserts accents to be more MacOS-like. I don't like the way the International keyboard handles, so I wrote this script.
Press the right Shift key with one of the letters a,c,e,i,n,o,u to get those characters with commonly used accent or alternative characters. The left Shift key will capitalize as normal. The Control key can also be used for other characters.
o + right Shift = ó
o + right Shift + left Shift = Ó
o + right Shift + Control = ö
o + right Shift + left Shift + Control = Ö
? + right Shift = ¿
And so on.
; Accent keys, used with Right Shift key
RShift & 4::Send {€}
return
RShift & A::
If GetKeyState("LShift", "P")
Send {Á}
Else Send {á}
return
RShift & C::
If GetKeyState("LShift", "P")
Send {Ç}
Else Send {ç}
return
RShift & E::
If GetKeyState("LShift", "P")
Send {É}
Else Send {é}
return
RShift & I::
If GetKeyState("LShift", "P")
Send {Í}
Else Send {í}
return
RShift & N::
If GetKeyState("LShift", "P")
Send {Ñ}
Else Send {ñ}
return
RShift & O::
If GetKeyState("LShift", "P")
If GetKeyState("Control", "P")
Send {Ö}
Else Send {Ó}
Else If GetKeyState("Control", "P")
Send {ö}
Else Send {ó}
return
RShift & U::
If GetKeyState("LShift", "P")
If GetKeyState("Control", "P")
Send {Ü}
Else Send {Ú}
Else If GetKeyState("Control", "P")
Send {ü}
Else Send {ú}
return
RShift & ?::Send {¿}
return