Via Slashdot, Microsoft Adds Sysmon To Windows we hear from The Register that, Microsoft actually does something useful, adds Sysmon to Windows. I don’t use Windows much these days but this seems like a sensible decision to me.
Tag Archives: windows
How to Remove Old and Useless Drivers in Windows
I had a problem where I needed to delete a device driver that had been installed so that I could install a replacement. I found How to Remove Old and Useless Drivers in Windows and the process was roughly:
- Win + X: Windows PowerShell (Admin)
- SET DEVMGR_SHOW_NONPRESENT_DEVICES=1
- Win + X: Device Manager
- View -> Show hidden devices
You can then look for the old driver and remove it.
Running notepad.exe as Administrator
Man, back on Windows for my new studio computer ‘verve‘. Needed to figure out how to edit C:\Windows\System32\drivers\etc\hosts and that was certainly more difficult than it needed to be.
In the end I used “Method 3” over here to add an “Open in Notepad (Admin)” item to my shell context menu:
- Open regedit
- Navigate to: HKEY_CLASSES_ROOT\*\shell
- Add a new key ‘runas’ under ‘shell’
- Change (Default) to: Open with Notepad (Admin)
- Add a new key ‘command’ under ‘runas’
- Change (Default) to: notepad %1
Unicode problem in Windows 11
Today via Slashdot: Microsoft Warns of New Windows 11 Problems With Apps Using Unusual Registry Keys.
Unmount all cifs mounts
I had an issue today with ‘df’ and ‘umount’ hanging because of a problem with my Windows (SMB/Samba/CIFS) share. To force unmount I used:
umount -a -t cifs -l
The above command forces all CIFS mounts to unmount immediately.
WinKey+R in KDE
So I found this:
Go into “Global Keyboard Shortcuts”. Under “Run Command Interface” you’ll find ‘Run Command’. Under “KWin” you’ll find a ‘Show Desktop’ entry which is the equivalent of minimize all.
Mounting Windows SMB share from Debian Wheezy
Configuring an SMB mount from my Linux box to my Windows box. This was helpful.
Basically:
# apt-get install cifs-utils
Then create your credentials file:
# cat > /root/amanda.smbpass <<EOF username=jj5 password=SECRET EOF
Then edit /etc/fstab and add:
//amanda.jj5.net/Users /media/amanda cifs defaults,noauto,credentials=/root/amanda.smbpass 0 2
Then create /etc/network/if-up.d/mount-amanda like this:
#!/bin/bash mount /media/amanda
And make sure it’s executable:
# chmod +x /etc/network/if-up.d/mount-amanda
Mounting can also be done from the command-line:
# mount -t cifs -o username=jj5,password=SECRET //amanda.jj5.net/Users /media/amanda
Listing mapped Windows drives using net use
I had a complete mental blank today and couldn’t remember the ‘net use’ windows command to list mapped drives and their sources. I found Managing shared folders from the command line which reminded me!
100% Apache-Compliant REQUEST_URI for IIS and Windows
I had a problem with the REQUEST_URI server variable not being available in my PHP app when running under IIS on Windows. I followed these instructions to fix the problem: 100% Apache-Compliant REQUEST_URI for IIS and Windows.
I had to download and install ISAPI Rewrite 3 and Request_URI for IIS 1.1 which I installed into PHP by editing my php.ini file with this line:
auto_prepend_file = C:\Program Files\PHP\request_uri.inc
Portable Executable 101 – a windows executable walkthrough
Saw this Portable Executable 101 – a windows executable walkthrough today. Pretty cool visualisation.