User Tools

Site Tools


esxi:windows_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
esxi:windows_server [2019/11/07 05:08]
derek
esxi:windows_server [2024/09/22 19:51] (current)
Line 1: Line 1:
 =====Windows Server===== =====Windows Server=====
  
 +====Setup====
   * Install Windows Server 2019 FIXME   * Install Windows Server 2019 FIXME
 +  * In ESXi:
 +    * 2 Cores, 5GB Memory, 50GB+ Hard disk on an NVME controller
 +    * Add a sound card
  
   * Update & Security > For Developers > Developer mode   * Update & Security > For Developers > Developer mode
Line 9: Line 13:
     * View > Small icons     * View > Small icons
     * Move Recycle Bin to corner     * Move Recycle Bin to corner
 +    * Click on the audio icon on the taskbar and then enable the audio service
     * Pin to taskbar:     * Pin to taskbar:
       * Resource monitor       * Resource monitor
       * Command Prompt       * Command Prompt
-      * Ubuntu 18.04 
       * PowerShell       * PowerShell
       * Registry Editor       * Registry Editor
       * Event Viewer       * Event Viewer
 +      * Server Manager
  
   * Explorer Folder options:   * Explorer Folder options:
Line 21: Line 26:
     * Expand to open folder     * Expand to open folder
  
-  * Install [[https://www.rarlab.com/download.htm|WinRAR]] and classic theme +  * Download [[https://docs.microsoft.com/en-us/sysinternals/downloads/autologon|Sysinternals AutoLogin]] and configure auto login 
-  * Install [[https://www.sublimetext.com/3|Sublime Text 3]] +  * ''Server Manager'' > ''Manage'' > ''Server Manager Properties'' > Enable ''Do not start Server Manager automatically at logon''
- +
-===Veeam:=== +
-Install and configure Veeam Backup & Replication Community Edition using an SMB share as the backup destination. +
- +
-  * Sign up for a quick Veeam account at [[https://www.veeam.com/free-signin.html|Veeam]] +
-  * Download [[https://www.veeam.com/downloads.html|Veeam Backup & Replication Community Edition]] +
-  * Mount the installation image using windows or Use ESXi to mount the installation image to the virtual machine. +
-  * Run the Setup.exe file from the ISO. +
-  * On the splash screen, click the Install tile on the left to launch the Veeam Backup & Replication setup wizard. Alternatively, you can click the Veeam Backup & Replication tile on the right. +
-  * Read and accept the terms in the license agreement. +
-  * Click next to install the Community Edition. +
-  * At the Program Features step of the wizard, keep the default settings. +
-  * At the System Configuration Check step of the wizard, install missing software components and enable missing features, if any. +
-  * At the Default Configuration step of the wizard, specify if you want to use default installation settings or specify installation settings on your own. If you have chosen to use default installations settings, click Install to begin installation. +
-  * Click Finish to close the wizard. +
-  * Close the setup window. +
- +
-Connect the ESX(i) host that will be used as the source and the target for backup and replication: +
-  * Run Veeam Backup & Replication. +
-  * In the authentication window, click Connect. +
-  * In the inventory pane of the Backup Infrastructure view, right-click the Managed servers node and select Add Server+
-  * In the Add Server window, click VMware vSphere to launch the New VMware Server wizard. +
-  * At the Name step of the wizard, specify a DNS name or IP address of the server. +
-  * At the Credentials step of the wizard, specify credentials for the user account with administrator permissions to the added server: click Add on the right of the Credentials field and specify the user name and password to connect to the added server. Click OK, then Finish. +
- +
-Configure two SMB share backup repositories, one for standard backups and one for GFS retention (e.g. \Backups and \BackupsGFS): +
-  * Open the Backup Infrastructure view. +
-  * Right-click the Backup Repositories node in the inventory pane and select Add Backup Repository to launch the New Backup Repository wizard. +
-  * Select Network attached storage. +
-  * At the Name step of the wizard, specify a name for the added backup repository. +
-  * At the Type step of the wizard, select Shared folder. +
-  * Specify a UNC path (including folder) to the shared folder that will be used as a backup repository and enter credentials of an account with administrative privileges on the share. +
-  * At the Repository step of the wizard, click next. +
-  * Click Populate to see how much space is available on the backup repository. +
-  * Follow next steps of the wizard. At the last step of the wizard, click Finish. +
-  * Right click the share > Access permissions > Allow to everyone. +
-  * Repeat for the other share. +
  
-To configure global email notification settings using Gmail: +===Network Drives=== 
-  * From the main menu, select General Options. +  * NoteReplace the ''Arguments'' line in the following with:
-  * Open the E-mail Settings tab. +
-  * Select the Enable e-mail notifications check box. +
-  * In the SMTP server field, enter ''smtp.gmail.com'' +
-  * Click the Advanced button to specify user credentials and connection options: +
-    * Port number: ''465'' +
-    * Leave the connection timeout at ''100000'' +
-    * Select the ''Connect using SSL'' check box. +
-    * Select the ''This SMTP server requires authentication'' check box and add the necessary credentials from the Log on as list (Gmail address and an app specific password from [[https://myaccount.google.com/apppasswords|App Passwords]] (if 2fa is enabled)). +
-  * In the From field, specify the email from which email notifications must be sent (same as login username). +
-  * In the To field, specify the recipient addresses. Use a semicolon to separate multiple addresses. Recipients specified in this field will receive notification about every job managed by the backup server. +
-  * In the Subject field, specify a subject for the sent message. You can use the following variables in the subject (the default message is good):+
 <code> <code>
-%Time% — completion time +/c "net use W: "\\FileServer\Music" & net use X: "\\FileServer\Software" & net use Y: "\\FileServer\Downloads" & net use Z: "\\FileServer\Dereks Backups""
-%JobName% +
-%JobResult% +
-%VmCount% — number of VMs in the job +
-%Issues% — number of VMs in the job that have been processed with the Warning or Failed status+
 </code> </code>
-  * Select Notify on warning and Notify on failure check boxes to receive email notification if a job is not run successfully or with a warning. +> {{page>win:network_drives#setup&noheader}}
-  * Select the Suppress notifications until the last retry check box to receive a notification about the final job status. +
-  * Click Test Message to send a test email.+
  
 +  * Install [[https://www.rarlab.com/download.htm|WinRAR]]:
 +    * Download and open the [[https://www.rarlab.com/themes.htm|48x36 Classic Theme]]
 +    * Copy the licence key file into its install folder
 +    * Settings > Integration > Context menu items:
 +      * Deselect both email options
 +      * Deselect both Open with WinRAR options
 +  * Install [[https://www.sublimetext.com/3|Sublime Text 3]]
  
-Create a Windows Agent Backup Policy (Note: May need to follow [[win:backup]] to allow access to a Windows 10 PC)+  * Install [[https://www.apple.com/itunes/download/win64|iTunes Desktop]]: 
-  On the Home tab, click the Backup Job button and select Windows Computer to launch the New Backup Job wizard. +      Deselect ''Use iTunes as the default player for audio files'' 
-  At the Job Mode step, in the Type field, select Workstation. +      * Deselect ''Automatically update iTunes and other Apple software'' 
-  At the Name stepspecify a name and description for the backup job+      * ''Default iTunes language:'' > ''English (United Kingdom)'' 
-  At the Computers step, select the computer whose data you want to back up+      * Install 
-    * Click Add Individual computer. +      * Agree to restart Windows 
-    * In the Add Computer window, in the Host name or IP address fieldenter a full DNS name or IP address of the computer that you want to add to the job+    * Run iTunes, agree to the licence agreement, agree to sharing details, and then close iTunes 
-    From the Credentials list, click Add on the right to add credentials for the computer, using the COMPUTER\USER format for the username+    Take a snapshot of the ''Music'' share in XPEnology 
-  At the Backup Mode step, select File level backup. +    Delete the ''%USERPROFILE%\Music\iTunes'', and ''%APPDATA%\Apple Computer\MobileSync'' folders 
-  * At the Objects step+    * Run the following in cmd.exe (Change target locations as needed) 
-    * In the Choose directories to backup list, select the ''The following file system objects'' check box. +      ''MKLINK /D "%USERPROFILE%\Music\iTunes" "W:\iTunes"'' 
-    * Click Add and type the path into the Add Object window for each of the following backup paths (Using ''%ProgramFiles%'' or ''%ProgramFiles(x86)%'' depending on the location of WoW and replacing ''<user>'' with the desired user). +      * ''MKLINK /D "%APPDATA%\Apple Computer\MobileSync" "Z:\MobileSync"'' 
-    * Once the folders have been added, click Advanced and specify the exclude masks+    * Run iTunes and verify it is using the wanted library 
-<code+    * Account Sign in 
-# Backup paths +    * Open Task Scheduler and import the [[https://github.com/Archer4499/Configs/blob/master/Server/Windows/Daily%20restart%20iTunes.xml|Daily restart iTunes.xml]] file; which mainly does the following things: 
-%ProgramFiles%\World of Warcraft\_retail_\Interface +      * Triggers: 
-%ProgramFiles%\World of Warcraft\_retail_\Screenshots +        * At log ondelayed by 30 seconds 
-%ProgramFiles%\World of Warcraft\_retail_\WTF +        * Daily at 12:01PM, delayed up to 30 mins 
-%ProgramData% +      * 3 Start a program actions in this order: 
-%Public%\Desktop +        * ''taskkill /im itunes.exe'' (Gracefully shuts iTunes down as long as it's not syncing or a dialog box is up) 
-C:\Users\<user>+        ''timeout /t 20 /nobreak'' (Waits 20 seconds to make sure it shutdown properly) 
 +        * ''C:\Program Files\iTunes\iTunes.exe'' 
 +      Conditions: 
 +        * Start the task only if idle for 5 mins 
 +        * Start only if any network connection is available 
 +  * Setup WiFi sync
 +    * Connect an iPhone via USB to the server 
 +    * ''ESXi'' > ''Windows Server VM'' > ''Edit''''Add other device'' ''USB device'' ''USB Device 1''Select ''Apple iPhone'' > ''Save'' 
 +    * Enter your password into the iPhone to Trust the computer 
 +    * ''iTunes''
 +      * Navigate to the iPhone ''Summary'': 
 +        * ''Backups'' > ''Automatically Back up'' > Select ''This Computer'' > Enable ''Encrypt local backup'' 
 +        * ''Stop'' the backup that is automatically started 
 +        * ''Options'': 
 +          * Enable ''Automatically sync when this iPhone is connected'' 
 +          * Enable ''Sync with this iPhone over Wi-Fi'' 
 +        * ''Apply'' 
 +    * iPhone: 
 +      * Disconnect the iPhone's cable 
 +      * ''Settings'' ''General'' > ''iTunes Wi-Fi Sync'' > ''Start now'' 
 +    * Repeat for any other iPhones/Devices
  
-# Exclude masks +  * Install and set up [[esxi:backup_server|Veeam backup]]
-C:\Users\<user>\AppData\Local\Temp +
-C:\Users\<user>\AppData\Local\Google\Chrome\User Data\Default\Cache +
-C:\Users\<user>\AppData\Local\CrashDumps +
-\%ProgramData%\Microsoft\Network\Downloader +
-\%ProgramData%\Microsoft\Search\Data +
-\%ProgramData%\Microsoft\Windows Defender +
-\%ProgramData%\Microsoft\Windows\WER +
-.tmp +
-.temp +
-</code>+
  
-  * At the Destination step select Veeam backup repository. +  * Shutdown the VM 
-  * At the Backup Server step review and change if necessary the name or IP address of the Veeam backup server on which you configure the Veeam Agent backup job. The specified DNS name or IP address must be accessible from Veeam Agent computers. +  * In ESXI try disabling the ''Lock the guest operating system when the last remote user disconnects'' option for this VM, if this doesn't work try
-  * At the Storage step: +  * ''ESXI'' ''Storage'' ''Datastore Browser'': 
-    * From the Backup repository list, select a backup repository where you want to store created backups. +    * Navigate to this VM 
-    * Set ''Keep backups for'' to 14 days. +    * Download the ''.vmx'' file 
-    * Click Advanced: +    Edit the file to change ''tools.guest.desktop.autolock = "TRUE"'' to ''= "FALSE"'' 
-      * On the Backup tab, select the Create synthetic full backups periodically check box and click Days to schedule synthetic full backups on Friday. +    * Upload the file back to the datastore 
-      * On the Maintenance tab: +  * Start the VM
-        * Select the Perform backup files health check check box  +
-        * Select Weekly on selected days and click Days to schedule the health check on Friday. +
-        * Select the Remove deleted items data after check box and set the number of days to 30. +
-      * In the Storage optimization section, select what type of backup target you plan to use: LAN target or WAN target. +
-  * At the Schedule step: +
-    * Select the ''Daily at'' check box for an appropriate time ''everyday'' +
-    * For the powered off action select ''Backup once powered on'' +
-    * Click Apply. +
-  * Review the settings and click Finish if it is satisfactory. +
- +
- +
-Setup a Backup Copy Job for the Windows agent backup policy to use GFS (Note: GFS will soon be added to the standard backup system [[https://forums.veeam.com/veeam-backup-replication-f2/feature-request-and-review-t25743.html|Veeam Fourms]]): +
-  * On the Home tab, click Backup Copy and select Windows computer backup. +
-  * At the Job step: +
-    * Specify a name and description for the backup job. +
-    * Set Copy every to ''7 Day starting at 12:00 AM'' +
-  At the Objects step of the wizard: +
-    * Click Add and select ''From jobs'' +
-      * Add the jobs that you want to process. +
-    * Click Source: +
-      * Choose the standard backup repository. +
-  * At the Target step: +
-    * From the Backup repository list, select the GFS backup repository. +
-    * Set ''Restore points to keep'' to 2. +
-    * Select the ''Keep the following restore points as full backups for archival purposes'' check box. +
-    * In the fields below, specify the number of intervals for which backups must be retained as: +
-      * 4 weekly +
-      * 6 monthly +
-      * 10 yearly +
-    * Click the ''Schedule'' button to set all the days to Saturday. +
-    * Click Advanced: +
-      * On the ''Maintenance'' tab select the ''Perform backup files health check'' check box and leave the default of the last Saturday of every month. +
-  * At the Data Transfer step leave the default of direct transfer. +
-  * At the Schedule step leave the default of ''Any time'' selected. +
-  * Review the settings and click Finish if it is satisfactory. +
- +
- +
-From: +
-  * [[https://helpcenter.veeam.com/evaluation/backup/vsphere/en]] +
-  * [[https://helpcenter.veeam.com/docs/backup/agents]] +
-  * [[https://helpcenter.veeam.com/docs/backup/vsphere]]+
  
 TODO: TODO:
 +  * Google backup for pictures
   * Install/copy win only utilities   * Install/copy win only utilities
   * WSL?   * WSL?
-  * Possibly map other desired shares 
   * Bulk Rename Utility   * Bulk Rename Utility
   * Install [[https://codecguide.com/download_other.htm#mediainfo|MediaInfo Lite]]   * Install [[https://codecguide.com/download_other.htm#mediainfo|MediaInfo Lite]]
   * Install [[https://www.dbpoweramp.com/dmc.htm|dBpoweramp Music Converter]]   * Install [[https://www.dbpoweramp.com/dmc.htm|dBpoweramp Music Converter]]
   * Install [[https://www.dbpoweramp.com/codec-central-utility.htm|Replay Gain Codec]]   * Install [[https://www.dbpoweramp.com/codec-central-utility.htm|Replay Gain Codec]]
-  * Install [[https://www.fosshub.com/Avidemux.html|Avidemux Win64 Installer]] 
-    * Paste saved config files to ''%APPDATA%\avidemux\'' 
  
-===Ports:===+====Update==== 
 +  * FIXME 
 +  * Install Windows Updates 
 +  * Update iTunes 
 +  * Veeam:{{page>esxi:backup_server#Update&noheader&inline}} 
 + 
 + 
 +====Ports====
 <code> <code>
 433/TCP Windows Admin Center 433/TCP Windows Admin Center
 </code> </code>
- 
esxi/windows_server.1573103286.txt.gz · Last modified: 2024/09/22 19:51 (external edit)