Wednesday, June 30, 2021

Update Bitlocker recovery password

 CMD prompt (as administrator)

1>

First, get the current password ID (assuming C: drive)

manage-bde c: -protectors -get -type RecoveryPassword


System comes back with a value, in this example it is {C18DE14-177B-4BF2-AEC-798C7B888F5}  

2>

Select/Copy that key and include the parenthesis

3>

Now we delete the current password.  Enter the command below, then paste in the ID key you copied above.

manage-bde c: -protectors -delete -id {YourKeySelectedAbove}


System should come back with a “key protector with ID XXX deleted”

4>

Now create a new key.  This command will generate a new random key

manage-bde c: -protectors -add -rp


System has generated a new numerical password ID and recovery password.  

If on AD, this will update automatically.


Tuesday, June 29, 2021

Ubuntu Live "CD" creation

If you just want to run UBUNTU on a computer boot the downloaded image on a machine via a USB key, Ubutun will prompt if you want to "TRY IT" or "INSTALL IT".   By selecting "TRY IT" it will run from the USB key and let you see the features, doesn't touch the currently installed OS on the computer.

Download and Ubuntu flavor, this one uses Ubuntu Desktop 20.04.2.0 LTS

Now you will want to use an app to install this to a USB key.  I use "RUFUS"

With RUFUS, I've selected the "DEVICE" which is the USB-key in my system.  you'll need an 8 gig one.  This will delete everything on the USB key.
I"ve selected the Ubuntu ISO, and for my example, the partition scheme i've selected is MBR.


Now select START


Rufus application may prompt you about the type of image you want to write, I go with the recommended.


A warning just in case you don't already know that this will delete everything on the USB Key/devcie you selected.




Put the key into a computer and boot from it.
Select "TRY IT" and give it a go.

Wednesday, June 16, 2021

some Powershell commands not all working

 Ran into a problem when running some powershell commands, these were specifically for Microsoft Teams

I kept getting errors running this command

Get-CsOnlineTelephoneNumber -TelephoneNumber 15552129191

Get-CsOnlineSession : Connecting to remote server api.interfaces.records.teams.microsoft.com failed with the following error message : The WinRM client cannot process the request. Basic authentication is currently disabled in the client configuration. Change the client

configuration and try the request again. For more information, see the about_Remote_Troubleshooting Help topic.

At C:\Program Files\WindowsPowerShell\Modules\microsoftteams\2.3.1\net472\SfBORemotePowershellModule.psm1:63 char:22

+     $remoteSession = & (Get-CsOnlineSessionCommand)

+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-CsOnlineSession], PSRemotingTransportException

    + FullyQualifiedErrorId : PSRemotingTransportException,Microsoft.Teams.ConfigApi.Cmdlets.GetCsOnlineSession

Despite authenticating to 365 (via powershell)

PS C:\WINDOWS\system32> install-module microsoftteams

PS C:\WINDOWS\system32> import-module microsoftteams

PS C:\WINDOWS\system32> connect-microsoftteams

Account                            Environment Tenant                               TenantId

-------                            ----------- ------                               --------

adminuser@companyinc.onmicrosoft.com AzureCloud  27151f1b-5172-41f3-a416-21146a11d221 1715cf1b-5571-41f3-a166-21146a1fd120

PS C:\WINDOWS\system32> Get-CsOnlineTelephoneNumber -TelephoneNumber 15552129191

ERROR

My coworker told me they had same problem and had to change a registry entry

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client

DWORD "AllowBasic" = 1



Was able to run successful commands that were failing prior