Tag Archives: read

Powershell: Convert a string into a securestring and back to plaintext

Hi,

.Net and therefore the powershell has the ability to define a secure string. This means that the string is immediately deleted from memory if it is no longer needed.
Continue reading Powershell: Convert a string into a securestring and back to plaintext

Advertisment to support michlstechblog.info

FritzBox: Get serialnumber

Hi,

wihtin the WebGui its not possible to read the serial number of a Fritzbox.

But its possible by opening the following URL in your favorite Browser

Continue reading FritzBox: Get serialnumber

Homeautomation: Read values from a Luxtronic2 Heatpump to a MQTT broker

Hi,

during automation of my home with OpenHab I had to include my Alpha Innotec Headpump because I want to display some values like temperature, errors…
Continue reading Homeautomation: Read values from a Luxtronic2 Heatpump to a MQTT broker

C#: Get description attribute from an enum value

Hi,

in this post I will show how to read a description attribute of an enum value by reflection. Let us assume we have a enum linke this

public enum MetalBands {
	[DescriptionAttribute("This is Metallica from CA")]
	Metallica,
	[DescriptionAttribute("This is Slayer from CA")]
	Slayer,
	[DescriptionAttribute("This is Overkill from NY")]
	Overkill
};

Continue reading C#: Get description attribute from an enum value

Windows: Error: Cannot read from the source file or disk, Could not find this item. This is no longer locate…

Hi,

difficult Windows issue today. A user had the problem that he could not delete a Folder (C:\Temp\orders) , also renaming or moving is not possible. The same behaviour with the command line tools rmdir, ren and move.
The folder was created from Excel with a vba macro.

Error message: Cannot read from source file or disk
Error message: Cannot read from source file or disk

The error message was: Cannot delete file: Cannot read from the source file or disk.
Continue reading Windows: Error: Cannot read from the source file or disk, Could not find this item. This is no longer locate…