(Get-PSReadlineOption).HistorySavePath
or
Get-Content (Get-PSReadlineOption).HistorySavePath | more
or
notepad (Get-PSReadlineOption).HistorySavePath
(Get-PSReadlineOption).HistorySavePath
or
Get-Content (Get-PSReadlineOption).HistorySavePath | more
or
notepad (Get-PSReadlineOption).HistorySavePath
openssl pkcs12 -export -out cert.pfx -inkey private.key -in cert.crt -certfile CACert.crt
List Checkpoint, Configuration and Snapshot File Locations:
get-vm | select id,name,*location | ft -AutoSize
List the HardDrives attached into the Virtual Machines
get-vm | Get-VMHardDiskDrive | sort Path | select vmname,Path
To list saved credentials:
cmdkey /list:TERMSRV/*
To delete a saved credential:
cmdkey /delete:TERMSRV/<targetNameOrIp>
To add a credential that will actually work with CG turned on:
cmdkey /generic:TERMSRV/<targetNameOrIp> /user:<username> /pass:<password>
Cmdkey
| Edition | AVMA key |
|---|---|
| Datacenter | H3RNG-8C32Q-Q8FRX-6TDXV-WMBMW |
| Standard | TNK62-RXVTB-4P47B-2D623-4GF74 |
| Essentials | 2CTP7-NHT64-BP62M-FV6GG-HFV28 |
| Edition | AVMA key |
|---|---|
| Datacenter | H3RNG-8C32Q-Q8FRX-6TDXV-WMBMW |
| Standard | TNK62-RXVTB-4P47B-2D623-4GF74 |
| Edition | AVMA key |
|---|---|
| Datacenter | TMJ3Y-NTRTM-FJYXT-T22BY-CWG3J |
| Standard | C3RCX-M6NRP-6CXC9-TW2F2-4RHYD |
| Edition | AVMA key |
|---|---|
| Datacenter | TMJ3Y-NTRTM-FJYXT-T22BY-CWG3J |
| Standard | C3RCX-M6NRP-6CXC9-TW2F2-4RHYD |
| Essentials | B4YNW-62DX9-W8V6M-82649-MHBKQ |
| Edition | AVMA key |
|---|---|
| Datacenter | Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW |
| Standard | DBGBW-NPF86-BJVTX-K3WKJ-MTB6V |
| Essentials | K2XGM-NMBT3-2R6Q8-WF2FK-P36R2 |