SDelete (Microsoft Sysinternals)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

SDelete (Microsoft Sysinternals)

Post by *Fla$her »

hi5 wrote: 2023-10-09, 18:08 UTC cli utility by Microsoft

Code: Select all

Runs on:

    Client: Windows 10 and higher.
    Server: Windows Server 2012 and higher.
    Nano Server: 2016 and higher.
Otherwise, all of Russinovich's programs require registration in the registry.

Moderator message from: white » 2023-10-10, 20:57 UTC

Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: button/user command to securely erase selected files/folders

Post by *Dalai »

Even the current version 2.05 of SDelete still runs on Win7. I've noticed a long time ago that the Sysinternals Tools' OS specifications are not that accurate.
Fla$her wrote: 2023-10-09, 18:39 UTCOtherwise, all of Russinovich's programs require registration in the registry.
If you're referring to the EULA, there's the switch /accepteula (GUI tools) and/or /nobanner (CLI tools); most of them accept both switches.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Dalai wrote: 2023-10-09, 18:55 UTC Even the current version 2.05 of SDelete still runs on Win7.
Is there a version with -nobanner that runs on XP? I have a 1.51 but it without -nobanner.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: button/user command to securely erase selected files/folders

Post by *Dalai »

Fla$her wrote: 2023-10-09, 19:21 UTCIs there a version with -nobanner that runs on XP?
Sure. Version 1.61 still runs on Win2k and version 2.02 runs on WinXP and later. Both of them support /accepteula, although none of them lists this switch when launched with /?. Version 2.02 also supports the -nobanner switch and lists it in its help output. Maybe version 1.51 supports /accepteula, too.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Dalai wrote: 2023-10-09, 19:41 UTCVersion 1.61 still runs on Win2k and version 2.02 runs on WinXP and later.
1.61 found, thanks. Post somewhere 2.02 please.
Dalai wrote: 2023-10-09, 19:41 UTCMaybe version 1.51 supports /accepteula, too.
No, I checked it right away.

I see what the joke is. sdelete -accepteula simply creates a registry parameter HKCU\Software\Sysinternals\SDelete\EulaAccepted = 1, which is equivalent to pressing "Agree" in the dialog. That's, it doesn't save from writing in the register...
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: button/user command to securely erase selected files/folders

Post by *Dalai »

Fla$her wrote: 2023-10-09, 20:50 UTCPost somewhere 2.02 please.
I've found version 2.04 and judging from its import table it should also run on XP. Try this link, but I'm not sure if it works without all its parameters: https://securedl.cdn.chip.de/downloads/9205654/SDelete204.zip

The annoying thing is that no older versions are provided by the Sysinternals site.
sdelete -accepteula simply creates a registry parameter HKCU\Software\Sysinternals\SDelete\EulaAccepted = 1, which is equivalent to pressing "Agree" in the dialog.
Well, that's what all Sysinternals Tools do after Microsoft incorporated them all those years ago. Did you expect anything else?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Dalai wrote: 2023-10-10, 01:08 UTCI've found version 2.04 and judging from its import table it should also run on XP.
Thanks. -nobanner doesn't work, only -accepteula.
Dalai wrote: 2023-10-10, 01:08 UTCDid you expect anything else?
I expected the registration to be ignored. It turns out that the key itself is meaningless for reusability.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: button/user command to securely erase selected files/folders

Post by *Dalai »

Fla$her wrote: 2023-10-10, 03:15 UTC-nobanner doesn't work, only -accepteula.
Yes, I noticed that when reading the meaning of -nobanner - it just suppresses the header with the Copyright message, but it doesn't handle the license agreement.
I expected the registration to be ignored.
Why? So that the tool shows the EULA every time it's started? What kind of program does this?
It turns out that the key itself is meaningless for reusability.
What do you mean? The registry value is read by each of their tools and written when accepting the EULA.

NB: We're slowly getting off topic.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Dalai wrote: 2023-10-10, 11:36 UTCWhy? So that the tool shows the EULA every time it's started?
Ignoring means not showing the window and not making an entry to the registry.
Dalai wrote: 2023-10-10, 11:36 UTCWhat do you mean?
The -accepteula switch is essentially one-time because you don't need to make the same registry entry more than once.
It doesn't make any sense to use it repeatedly with the same program.
Overquoting is evil! 👎
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: button/user command to securely erase selected files/folders

Post by *Gral »

Fla$her wrote: 2023-10-10, 18:02 UTC The -accepteula switch is essentially one-time because you don't need to make the same registry entry more than once.
It doesn't make any sense to use it repeatedly with the same program.
Consider portable usage of the program - this switch is so that you don't have to accept the EULA every time you run it on a new computer.
So it makes sense.
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Gral wrote: 2023-10-10, 18:08 UTCConsider portable usage
What kind of portable use can we talk about when writing to the registry?
Overquoting is evil! 👎
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: button/user command to securely erase selected files/folders

Post by *Gral »

Just when the program does not require installation - I am not a slave to dictionary definitions.
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: button/user command to securely erase selected files/folders

Post by *Fla$her »

Gral wrote: 2023-10-10, 18:35 UTCJust when the program does not require installation
You write about other computers on which such a record may not be required and strictly administrated with appropriate consequences. Traces left in the registry are the key essence of the installation, by which it can be identified.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: button/user command to securely erase selected files/folders

Post by *Dalai »

2Fla$her
Let me give you an example: I use a script that calls SDelete with /accepteula switch within virtual machines - especially ones that don't have VMware Tools installed. SDelete is ran from a network location and on different systems (VMs), so it's kind of portable. If I would have to accept the EULA every time I'd go insane.

If writing to the registry is an indication of installation to you, you shouldn't use a lot of tools. The PE Viewer (2.x) plugin for example writes the HKCU\Software\PEViewer\DontUseTCIni value when it's told to not use lsplugin.ini in its settings. Doesn't sound like an installation to me.

NB: We're really OT now.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: button/user command to securely erase selected files/folders

Post by *Gral »

It is up to the user whether he or she can use a program that behaves this way.
It's not a problem to create, for example, a batch file that deletes the entire Sysinternals branch when you finish.
So if i want to clean, most important for me is to know, what exactly program leaves in the registry.

P.S. It's now offtopic of offtopic
Post Reply