Windows page 1 of 34 for 337 posts

Working with some older Cisco ASA devices, I'm trying to access the ASDM interface. The browser isn't giving me luck, so I turned to PowerShell to help me, but I get the following error when trying an Invoke-WebRequest to grab the asdm.jnlp file I need. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Eh, ok. My first thought was to somehow avoid a certificate check but I did not see a native way of doing this with Invoke-WebRequest Continue Reading...

Setting Microsoft Edge Policies in the Registry: A Quick Guide

To set Microsoft Edge policies in the registry, you will need to add the policies to the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge. Here's a step-by-step guide to setting policies in the registry: Open the Registry Editor: Type regedit in the Start menu and press Enter. Go to the Microsoft Edge policies key: In the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge. Create a new key: Right-click on the Continue Reading...

Prefer IPv4 over IPv6 on Windows

Use the following commands to change the preference on Windows to use IPv4 over IPv6. netsh interface ipv6 set prefix ::/96 60 3 netsh interface ipv6 set prefix ::ffff:0:0/96 55 4 Confirm the precedence has changed with the following command: netsh interface ipv6 show prefixpolicies To make this permanent across reboots, issue the following command: reg.exe add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0x20 Continue Reading...

Find files modified in Windows command line

The forfiles command exists to facilitate finding files in a given path and can be used to also find files modified by date. forfiles /P c:\users\techish /S /D +11/01/2022 The above command would recursively (/S) search the path (/P) C:\users\techish for all files modified after the date (/D) of November 1, 2022. Continue Reading...

Outlook 2021 – Minimize to System Tray

To minimize Outlook to the system tray when minimized, you can right-click on the Outlook icon on the taskbar and select Minimize to System Tray. On Windows 11, this option seemed to be missing. So to configure this behavior, the following registry modification can be made. Note: This is for Outlook 2021 (16.0). You may need to adjust if you're using Outlook 2019 (15.0) etc. reg add HKCU\Software\Microsoft\Office\16.0\Outlook\Preferences /v MinToTray /t REG_DWORD /d 1 Continue Reading...

Schedule reboot from command line in Windows

The older at command no longer works for simple scheduling of tasks so now we must use schtasks. To configure a task to run one time, and reboot at 6PM October 13, 2022, I use the following command. schtasks /create /tn "Reboot-Oct13" /tr "shutdown /r /f /t 0" /sc once /st 18:00:00 /sd 10/13/2022 /ru "System" Continue Reading...

Check Windows Servers Activation Status

I needed a quick way to check activation status of Windows Servers in a domain. This is the solution I came up with using PowerShell to run the slmgr.vbs script for output. I'm not great with PowerShell, and I'm sure this can be cleaned up or made more efficient, but this 'hack' worked for me. $computers = get-adcomputer -filter "OperatingSystem -Like '*Windows Server*' -and Enabled -eq 'True'" | select-object name foreach($computer in $computers) { write-host $computer.name Invoke-Command Continue Reading...

Restore Windows 11 Right-Click Context Menu

I'm not a huge fan of the new right-click context menu in Windows 11 because there are some utilities I use that I constantly need to select "Show More Options..." on. To revert the new style right-click context menu to the old style, a simple Registry modification can be made; here's the command line. reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve Sign out of your Windows account and back in, or you can reboot. To revert back to the Continue Reading...

Windows 11 – 0x80070026 Reached the end of the file.

I've been plagued by the following error when copying small files to/from a NAS on my LAN using Windows 11 22H2. 0x80070026 Reached the end of the file. There doesn't seem to be a rhyme or reason to this. It's on a TeraStation Pro II NAS. If I copy large files, no issue. Sometimes I can compress the file on the NAS into a ZIP and then copy it to my system. I don't think its an offline files cache issue: https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/access-offline-files-file-server-removed-from-network Putting Continue Reading...

Window Server 2019 – 1809, 1903, 1909 Servicing Channels

It can get a bit confusing. The below website summarizes the server releases. https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info There are two servicing models for Windows server - a long term servicing channel and a semi annual channel. The Long Term Servicing Channel (LTSC) is like the old server releases of 2008, 2012 etc. They are major releases that are supported for a long time. While they do get security updates, they don't get many (if any) feature Continue Reading...