All posts by Michael Albert

Windows: How to determine the SID of a User or Group

Hi,

Sometimes you need the SID of a user or group. For example if you want to set permissions with icalcs in multilanguage environments. icacls needs as input the group name or the SID. If you want to set permission for the builtin groups you have to specify the group name in the current language of the operating system, i.e. “Users” for en-US and “Benutzer” for de-DE. The better choice is the SID, the SIDs for builtin groups are always the same.
Continue reading Windows: How to determine the SID of a User or Group

Links: A list of virus scanner Live CDs

Hi,

if a virus infection was detected or is just assumed, the best way to found all of them, is to boot from a “Clean” medium to ensure no rootkit hide some importend details from the scanner.

There are a couple of Live CDs for this job.

Microsoft Defender Offline – It used a Windows PE. Has a graphical frontend

Avira Rescue System – Linux based with a graphical frontend

Live Scanner Kaspersky Lab – Linux based with a KDE based Desktop

Dr. Web Live CD – not tested yet

F-Secure Rescue CD – Linux LiveCD – text based

Bitdefender Rescue CD – Linux Live CD with a graphical LXDE Desktop
AVG Rescue CD – Also Linux based but with a menu driven text frontend

Panda Security LiveCD – Linux based and simple to use.

Use multiple of them to get the the best possible result to eliminate all infections!

Michael

Powershell: Active Directory Domain Operations

Hi,

some commands to manage Active Directory Domain Controllers by using the .NET System.DirectoryServices.ActiveDirectory.Domain Class.
Load the assembly

[reflection.assembly]::LoadWithPartialName("System.DirectoryServices.Protocols")|Out-Null

Get a Domain Object with the logon Domain of the current user
Continue reading Powershell: Active Directory Domain Operations

Powershell: How to show a message box

Sometimes while a powershell script is running you want to show a MessageBox with a information or warning to the user. In Windows Powershell no Commandlet exists to show a Message Box.

Nevertheless it is possible by using the .NET Windows.Forms.MessageBox class:-).

First of all load the assembly.

# Load assembly
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")

To show the messagebox call the static function show(“Message Text”)
Continue reading Powershell: How to show a message box

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

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…