Difference between revisions of "Windows one-liners"

From Ever changing code
Jump to navigation Jump to search
(Created page with "= Install Telnet client = Tested: Windows 7 pkgmgr /iu:"TelnetClient"")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Windows shares =
net use
net use p: "\\server\folder" /persistent:no
net use p: /delete
= Install Telnet client =
= Install Telnet client =
Tested: Windows 7
Tested: Windows 7, Windows 8.1
  pkgmgr /iu:"TelnetClient"
  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: <tt>AACB077B</tt> and recovery password: <tt>121229-122012-091718-217177-480717-072177-477442-410227</tt>
[[Category:Windows]]

Latest revision as of 23:18, 5 December 2015

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