F
F
fufar2017-02-27 17:49:50
PowerShell
fufar, 2017-02-27 17:49:50

How to change bitlocker password from console?

Question for backfilling
I want a script that can change the disk password ( bitlocker )
there is a manage-bde -changepassword x command:
but it requires manual password entry and confirmation, I would like to do this automatically by setting the password directly in the script

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2017-11-12
@adressmoeistranici

In C#, value types cannot be null by default. If you declare a variable like
that, it will be equal to 0 when you read it. If you try to do x=null like this, you will get an exception.
To be able to assign null to a variable x, there is a Nullable
type . now, if we do
that, we can easily do x=null;
The type int?is syntactic sugar, a shortened version of the notation Nullable<int>, these two notations are essentially the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question