Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{if .Root}}(Admin) {{end}}{{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
@dbarkwell
dbarkwell / wincore-shellps.ps1
Created February 17, 2019 15:50
Windows Server Core Set PowerShell Shell
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" -Name Shell -Value "powershell.exe"
Restart-Computer -Force
1. Boot it from USB/DVD
2. Transfer the entire stick to your drive:
2.1. “sudo bash”
2.2. “dd if=/dev/sdb of=/dev/sda bs=1M”
3. Reboot without the stick, should boot from internal HDD_
3.1 “reboot”
4. Resize the Partition:
4.1. “sudo bash”
4.2. “fdisk /dev/sda”
4.3. print partitions with “p”

Keybase proof

I hereby claim:

  • I am dbarkwell on github.
  • I am dbarkwell (https://keybase.io/dbarkwell) on keybase.
  • I have a public key whose fingerprint is 126B EB45 03B6 9C44 BBA5 581A BF91 7952 C279 2E0E

To claim this, I am signing this object: