Windows one-liners

From Ever changing code
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Windows shares

net use
net use p: "\\server\folder" /persistent:no
net use p: /delete

Install Telnet client

Tested: Windows 7, Windows 8.1

pkgmgr /iu:"TelnetClient"
dism /online /Enable-Feature /FeatureName:TelnetClient
servermanagercmd -install Telnet-Client

Powershell

Import-Module ServerManager
Add-WindowsFeature telnet-client

Test StarWars

telnet towel.blinkenlights.nl

Bitlocker

Get Bitlocker Password ID

C:\WINDOWS\system32>manage-bde -protectors -get c:
BitLocker Drive Encryption: Configuration Tool version 6.1.7601
Copyright (C) Microsoft Corporation. All rights reserved. 

Volume C: [OSDisk]
All Key Protectors

    TPM:
      ID: {91234B57-E11A-4125-B6CB-AB88AAE57890} 

    Numerical Password:
      ID: {AACB077B-FB22-4B1A-91B1-7C972C107C28}
      Password:
        121229-122012-091718-217177-480717-072177-477442-410227

First 8 characters of password ID is: AACB077B and recovery password: 121229-122012-091718-217177-480717-072177-477442-410227