26 February 2018

Windows Server 2016 Evaluation to Standard

Target Edition : ServerStandard
Target Edition : ServerDatacenter

Dism /online /Set-Edition: /AcceptEula /ProductKey:12345-67890-12345-67890-12345 

Where it is the higher edition that you want to change to. (ServerStandard or ServerDatacenter) Source

18 February 2018

Connect to Windows 2016 HyperV Core with delegated credentials / CredSSP

CredSSP authentication is currently disabled on the local client. You must be running with administrator privileges in order to enable CredSSP

On Win2016 desktop CLIENT

  • Powershell:
  • PS C:\Users\Administrator>start-service winrm
    PS C:\Users\Administrator>Enable-WSManCredSSP -Role client -DelegateComputer *
    PS C:\Users\Administrator>stop-service winrm

  • GPEDIT (as administrator)
  • Local Computer Policy > Computer Configuration > Administrative Templates > System > Credentials Delegation:
    Allow delegating fresh credentials with NTLM-only server authentication
  • Set: "Enabled" and "Add servers to the list"
  • Show: enter "WSMAN/*" as Value
  • Fire up Hyper-V Manager and connect to server only with IP-address and enter as user "[IP Address]\[username]” and set the password.

  • Source

    Migrate Mediawiki installation

    Old server

  • backup existing database - mysql dump
  • copy files folder frp, public_html

  • New Server

  • create new database, with same name/username
  • restore into new database - mysql -u username -p new_database < data-dump.sql source
  • copy files to public_html
  • edit LocalSettings.php: $wgServer - update to new URL
  • New disk for existing VM

    "Disk offline with error – the disk is offline because of a policy set by an administrator"

    After adding a new hard drive to an existing VM, it will show as offline, this can be corrected using the steps below in the diskpart cmd prompt
    san policy=OnlineAll 
    This will result in the following message: Diskpart successfully changed the SAN policy for the current operating system.
    list disk
    Check the number of any offline disks and select them
    select disk 1
    attributes disk clear readonly
    online disk
    The disk will now be available in Disk Management.