Computer

Microsoft Windows Server

search

Microsoft Windows Server

  • Precautions
  • Non-Medical
  1. Not for Medical Care
  2. The author uses several software packages and programming languages to develop FPnotebook content
  3. For convenience, a dozen pages in FPNotebook are dedicated to quick notes on content creation
  • Technique
  • Remote-Desktop Shortcuts
  1. Cycle through applications
    1. Alt-PageUp
    2. Alt-PageDown
  2. Start Menu
    1. Alt-Home
  3. Windows Task Manager (and Lock, sign-out, change a password)
    1. Ctrl-Alt-End
  4. References
    1. ShortCutWorld
      1. http://www.shortcutworld.com/en/win/Windows-Remote-Desktop.html
  • Management
  • Set-up VMware
  1. Preparation
    1. Install VMware Player (if not already installed)
    2. Download ISO files for Windows Version (e.g. Server 2012r2, Server 2016, win10x64 enterprise)
  2. Create the new server
    1. Create new server in VMware
    2. Set VMWare setting - CD/DVD path to the downloaded ISO file (or choose to assign later)
    3. Set VMware setting - Network adapter to Bridged (automatic)
  3. Windows Install
    1. Allow VMware to install Windows version
  4. Install VMware tools
    1. Change VMWare setting - CD/DVD path to Auto detect
    2. Install VMWare Tools (from menu options)
  • Management
  • Set-up Hyper-V (alternative to VM-Ware)
  1. Get the ethernet adapters on the system
    1. Get-NetAdapter
    2. $net = Get-NetAdapter -Name 'MySelectedAdapter'
  2. Create a switch
    1. New-VMSwitch -Name "MyExternalSwitch" -AllowManagementOS $True -NetAdapterName $net.Name
  3. Create a VM with disk
    1. $VMName = 'TESTVM'
    2. $Switch = 'External VM Switch'
    3. $InstallMedia = 'C:\Users\Administrator\Desktop\en_windows_10_enterprise_x64_dvd_6851151.iso'
    4. New-VM -Name $VMName -MemoryStartupBytes 2GB -Generation 2 -NewVHDPath
      1. "F:\Virtual Machines\$VMName\$VMName.vhdx" -NewVHDSizeBytes 60GB -Path "D:\Virtual Machines\$VMName" -SwitchName $Switch
  4. Create a DVD drive for installation media
    1. Add-VMScsiController -VMName $VMName
    2. Add-VMDvdDrive -VMName $VMName -ControllerNumber 1 -ControllerLocation 0 -Path $InstallMedia
    3. $DVDDrive = Get-VMDvdDrive -VMName $VMName
    4. Set-VMFirmware -VMName $VMName -FirstBootDevice $DVDDrive
  5. Allowing file copy to HyperV from the host machine
    1. On VM
      1. Set up a public folder (e.g. C:\Users\Administrator\Desktop\public)
      2. Properties => Sharing => Advanced Sharing
        1. Share this folder
        2. Permissions => Everyone - Full Control
    2. In HyperV Manager
      1. Settings => Integration Services => Enable (check) Guest Services
  6. Hyper-V Management
    1. Get-VM | Out-GridView
      1. Displays all VMs in a dialog with table
    2. Get-VM | where {$_.State -eq 'off'} | Start-VM
      1. Start all virtual machines that are off
    3. Get-VM | where {$_.State -eq 'Running'} | Stop-VM
      1. Shut down all the VM servers that are Running
  7. Help
    1. Get-Help Get-VM
    2. Get-Command -Module hyper-v | Out-GridView
  8. Resources
    1. https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network
  • Management
  • Set-up Powershell
  1. Rename-Computer
    1. Rename-Computer -NewName MYNAME
    2. Restart Computer
  2. Assign Timezone
    1. Tzutil.exe /s "Central Standard Time"
  3. Assign IP Address
    1. Get-NetAdapter -name Ethernet0 Rename-NetAdapter -newName MYETHERNET
    2. New-netIPAddress -IPAddress 192.168.95.90 -PrefixLength 24 -DefaultGateway 192.168.95.2 -InterfaceAlias MYETHERNET
      1. Default gateway and IP Address in this case are private for local use only (192.168.95...)
      2. PrefixLength is the same as Subnet Mask of 255.255.255.0
  4. Assign DNS Server
    1. Set-DnsClientServerAddress -interfaceAlias MYETHERNET -ServerAddress 192.168.95.50
  5. Add computer to domain
    1. Add-computer -DomainName MYDOMAIN.PRIV -Credential (Get-Credential)
  6. Add Roles and Role features (as well as feature)
    1. Get-WindowsFeature -ComputerName myOtherServer.domain.edu
    2. Get-WindowsFeature | where-object 'installed' -eq $true
    3. Add-WindowsFeature -ComputerName myOtherServer.domain.edu -Name DNS -IncludeManagementTools
  7. References
    1. Bender (2016) Windows Server Admin Fundamentals Using Powershell, Pluralsight
  • Management
  • Set-Up GUI
  1. Power Management
    1. Control panel: Hardware - Power options
    2. Power plan defaults to Balanced
    3. Set to "High Performance" if high loads, high latency or certain purposes (Database Server)
  2. Internet Explorer
    1. Disable Enhanced security configuration (for administrators)
    2. In Server Manager, Local Server, in properties (top panel), second column
      1. Click IE Enhanced Security and turn "off" for administrators
  3. Microsoft Internet Information Services
    1. See Microsoft Internet Information Services for set-up
  4. Microsoft Sql Server
    1. See Microsoft Sql Server for installation
  5. Filezilla
    1. https://filezilla-project.org/download.php?type=server
    2. Improved FTP Access to the server
    3. Set up for SSL (generate SSL certificate using Filezilla)
  6. Web Deploy
    1. Install using Web Platform Installer
    2. Allows for Visual Studio publishing applications
    3. In powershell, start services
      1. Start-Service WMSvc
      2. Start-Service MsDepSvc