News for hackers. Stuff that matters.
Re:Windows Recovery Environment and Bootable USB Creator in ... by Kwpolska on Saturday July 27, 2024 @04:03AM (#41085137)
"Windows To Go" is the official name for a former Windows feature.

Writing a Batch script of any length, let alone 3085 lines, is completely insane with PowerShell being part of the default install.

Re:Windows Recovery Environment and Bootable USB Creator in ... by maccard on Saturday July 27, 2024 @04:41AM (#41085268)
I write tools for video game studios occasionally. You can’t double click a ps1 script and have it run, and you need to change the execution policy for powershell scripts to run. Those two hurdles for non technical people mean that we still write batch scripts
Re:Windows Recovery Environment and Bootable USB Creator in ... by TiredOfLife on Saturday July 27, 2024 @04:58AM (#41085333)
But you can run .ps1 from .bat that you doubleclick.
Re:Windows Recovery Environment and Bootable USB Creator in ... by kachapopopow on Saturday July 27, 2024 @06:27AM (#41085615)
That still has the same issue. Powershell will refuse to run scripts that are not signed by default.
Re:Windows Recovery Environment and Bootable USB Creator in ... by andy81 on Saturday July 27, 2024 @08:19AM (#41086096)
You can use the -ExecutionPolicy argument to get around that.

It's not a security boundary, just something to stop users accidentally opening an email attachment like they will with bat/vbs.

Re:Windows Recovery Environment and Bootable USB Creator in ... by ffsm8 on Saturday July 27, 2024 @12:23PM (#41087551)
Which is pointless if it's only for powershell.... But hey, security theater is kinda the MO of Microsoft if you think about rotating password policies which have a maximum password length etc
Re:Windows Recovery Environment and Bootable USB Creator in ... by naikrovek on Saturday July 27, 2024 @01:02PM (#41087878)
Sign the powershell script. It’s not that large of a hurdle to get a code signing cert, though it certainly isn’t trivial.
Re:Windows Recovery Environment and Bootable USB Creator in ... by lll-o-lll on Saturday July 27, 2024 @05:23PM (#41089436)
Code signing certs must have the key HSM’d these days. It’s a big hurdle.
Re:Windows Recovery Environment and Bootable USB Creator in ... by gloosx on Monday July 29, 2024 @04:20AM (#41098794)
You have to go through a humilating process to get it as well as pay few hundred $$$ to one of MS street vendors.
Re:Windows Recovery Environment and Bootable USB Creator in ... by naikrovek on Monday July 29, 2024 @09:02AM (#41100134)
you have to prove who you are, yes. I don't know what you mean in the 2nd half of the sentence.
Re:Windows Recovery Environment and Bootable USB Creator in ... by gloosx on Monday August 05, 2024 @05:40AM (#41159530)
lemme explain quickly: you have to prove a lot of different things on paper, not just who you are; in reality this is just a money-milking side-hustle business for Microsoft. The process I had to go through had many different steps but in the end it all just relied on a blind trust between me and vetting team from the first step.
Re:Windows Recovery Environment and Bootable USB Creator in ... by naikrovek on Monday August 05, 2024 @09:13AM (#41161069)
lemme respond quickly: code signing certs are in use by many more than just microsoft. if i want a code signing cert from digicert, microsoft doesn't get any money, digicert does. i can use it for more than just powershell scripts, of course, i can sign anything. they are useful things to have. getting them is a pain in the ass, yes, but it's supposed to be. they want to filter out identity impersonators and do everything they can to issue a cert to a person that is who they say they are. that's the whole point of the cert, so that's why you must show all of that proof.
Re:Windows Recovery Environment and Bootable USB Creator in ... by maccard on Saturday July 27, 2024 @11:11AM (#41087080)
If you are writing a bat wrapper, you might as well write the wrapper in c# at that point (which I do for anything that requires a condition or a loop)
Re:Windows Recovery Environment and Bootable USB Creator in ... by naikrovek on Saturday July 27, 2024 @01:01PM (#41087865)
The threshold you’ve chosen is crazy low, for me.

A condition or a loop? You’re writing everything in C# then. Everything worth writing, anyway.

Re:Windows Recovery Environment and Bootable USB Creator in ... by maccard on Saturday July 27, 2024 @06:17PM (#41089726)
Pretty much, yep. The batch file is just for pre providing arguments and checking awkward error codes from robocopy