Posts for: #windows

Windows TCP Port Test without Telnet

Run the following in powershell Test-NetConnection -ComputerName HOSTNAME -Port PORT Something like the following will be the output. TcpTestSucceeded is the output you should be concerned with. ComputerName : google.com RemoteAddress : 142.250.191.142 RemotePort : 80 InterfaceAlias : Wi-Fi SourceAddress : 192.168.1.5 TcpTestSucceeded : True
MORE →

Win11 a lil’ more Win10

After upgrading to Windows 11 there’s a few things I can’t handle. One is the new taskbar and the other is the right click menu. To fix them you can do the following. To fix the taskbar is using ExplorerPatcher. It might flag as a virus FYI. USE AT YOUR OWN RISK To fix the right click menu open cmd and run reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /d "" /f
MORE →

Local User Win11 Install

By default Windows 11 requires a Microsoft Account to install. To bypass this do the following: Hit Shift + F10 Type oobe\bypassnro and hit enter The computer will reboot
MORE →

Headscale with Windows

This is how to get the Windows client with headscale. I’m happy to finaly get it working. Headscales docs are HERE, but I’m adding some more info since I wasn’t able to get it to work the first time If you’ve already installed tailscale on the machine make sure to delete the C:\Users\<USERNAME>\AppData\Local\Tailscale directory Download the Official Windows Client HERE and install it. You can either do option A or B Option A Manually edit the registry
MORE →

Get toast notifications in windows for gotify

Below is how to recieve toast-notifications for gotify on windows We have to allow powershell scripts run set-executionpolicy remotesigned as admin in powershell Install BurntToast in powershell. Open powershell as admin then type Install-Module -Name BurntToast it will ask some questions just hit yes to all of them Download websocat_win64.exe from Github HERE Below is the script param ($domain="p.domain.com", $token="AAAAAAAA") C:\Users\user\Downloads\websocat_win64.exe "wss://$domain/stream?token=$token" | %{ convertfrom-json $_ } | where-object {$_.
MORE →

Basic InfluxDB CheatSheet

Here is a basic cheatsheet for InfluxDB I’ve learned from playing with the TIG stack How to find the hosts in the series. You run the below command and just go through the list to find the host you want to delete. You can delete with what you know the host is, but his is nice because it will insure there wasn’t a typo WHERE "host" = 'DESKTOP-NAME' Here is how you actually drop the data from the DB that way it’s not displayed in Grafana anymore
MORE →

Download file via powershell

This is extremely useful if you need to download something in Windows via CLI. This is just like wget on LInux. Previously I would use the precompiled wget program on machines, but now that I learned how to use powershell it’s great. mkdir c:\temp cd c:\temp powershell.exe Invoke-WebRequest -Uri LINKTOEXEHERE.EXE -OutFile EXENAMEHERE.EXE rm EXENAMEHERE.EXE
MORE →

Install Duplicati as Windows Service

Here’s how to install Duplicati as a Windows Service Download Duplicati from HERE During install don’t mark Auto Start up option Open CMD as admin Navigate to the installation folder in CMD (this should be the same as long as you left it as default) cd "C:\Program Files\Duplicati 2\" Now we will install the service .\Duplicati.WindowsService.exe install Now restart your computer (this isn’t needed, but it’s a good way to test)
MORE →

Remote shell access to Windows machine on Domain

This seems to be just like connecting via SSH to a Linux machine, but with Windows. I’ve only tested with Windows 10, but it works great. Download PSEX HERE. Extract ZIP wherever (I like to use 7zip). CD to that location via CMD as domain admin (this is assuming domain environment, run CMD as administrator by right clicking, then run as administrator) Run the following .PsExec.exe \PCnameORip cmd.exe You are now in a remote shell You can also use winrs as well
MORE →

Download Win10 iSO

Go to https://www.microsoft.com/en-us/software-download/windows10ISO and use the dev tools F12 on browsers to change device to mobile. Then you should be able to choose the version/lang/type and then you’ll get a direct link from Microsoft.
MORE →

Default user for WSL OS on Windows 10

1. Open a command prompt or PowerShell. (You shouldn’t run as admin since this is based for the specific user). 2. Copy and paste the command below into the command prompt or PowerShell for the .exe file of the WSL distro name (ex: “Debian”) you want to set the default user for, and press Enter. (You can replace root with any user you’d like) [Ubuntu] > ubuntu config --default-user root
MORE →

Skip/hide Windows update on Windows 10

Since Windows 10 has been released there’s no easy way to skip/hide updates you don’t want installed. In Windows 7 it was super easy. I finaly found a way to skip/hide them. You have to download a troubleshooter from Microsoft. HERE is the link. HERE is a direct link, not sure if it changes, but this was used 20200630. I also have a copy HERE.
MORE →

Printers not working after KB4557957 update

I noticed an issue where after updating Windows 10 2004 with KB4557957 some printers were no longer working. BetaNews did a good writeup HERE about the issue. Microsoft released a couple off-schedule patches to fix it. HERE is the BetaNews article about it. In short here are the links for the fix’s with the correct Windows 10 version. Windows 10, version 1909 (KB4567512) Windows 10, version 1903 (KB4567512) Windows 10, version 1809 (KB4567513)
MORE →

Fix Domain Trust Issues

There error comes in many forms one of the forms are “The trust relationship between this workstation and the primary domain failed.” If you’re able to log into the machine as a local admin it’s easy, you just do the following. Use a local administrator account to log on to the computer. Select Start, press and hold (or right-click) Computer > Properties. Select Change settings next to the computer name. On the Computer Name tab, select Change.
MORE →

Windows Service CMD control

These aren’t really tricks, but super useful if you want to change things without interrupting the end user. Find service name since the display name may be different sc query | find “DISPLAY_NAME” sc config "SERVICE_NAME" start=disabled sc stop "SERVICE_NAME"
MORE →

Remote Control Terminal Session Windows Server

I just learned that you can remote control terminal sessions. They call it shadowing. I’ve only done it on Windows Server 2012 r2, but was super easy. You just need to open server manager, go to remote desktop services, then collections, then QuickSessionsCollections. Then you’ll see the connections in the upper right hand corner. Once you find the one you want you right click on the session and hit Shadow. By default this will ask the user to allow, if you want to override that and allows allow you can do the following group policy change.
MORE →

Supermicro X9 Hangs on Windows 10 reboot

This data has been copied from HERE Please follow the steps below: Turn off the system completely, and turn it back on, you should be able to get back into the OS. 2)Download the following driver and extract it: https://downloadcenter.intel.com/download/22655/Intel-Chipset-Device-Software-for-HECI or my link here, this may not be the newest intel_chipset_SPS_MEI_NULL_v1.2.3.2003 Open up Device Manager View » Show hidden devices In the main window, expand System devices and look the device written exactly as “Intel(R) Management Engine Interface”
MORE →

Comments: