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