שיטות מומלצות למכונות וירטואליות של Windows Server
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Windows
אפשר להשתמש בכמה שיטות מומלצות כדי לבצע אופטימיזציה למכונות Compute Engine שפועלות ב-Microsoft Windows Server. במאמר הזה נסביר איך להשתמש במוצרים אחרים שזמינים ב-Google Cloud כדי להבטיח שהמכונות של Windows יפעלו בצורה אופטימלית מבחינת ביצועים, אבטחה, יתירות וזמינות. מידע נוסף על הגדרה והגדרה של מכונות Windows זמין במאמר Windows Workloads. למכונות Microsoft SQL, אפשר לעיין במאמר שיטות מומלצות ל-SQL Server.
הפעלה או השבתה של תכונות של מערכת ההפעלה Windows Server שלא נדרשות לשירותים שהארגון שלכם מפעיל. תכונות שלא בשימוש צורכות משאבים שאולי אתם לא משתמשים בהם.
אם אתם משתמשים ברישיון תשלום לפי שימוש (PAYG), אתם יכולים להפעיל מכונות חדשות עם גרסת האימג' העדכנית ביותר שמספקות Google Cloudתמונות ציבוריות.
אבטחה
אם אתם משתמשים ב-Windows, כדאי לכם להפעיל תוכנת אנטי-וירוס.
תוכנות זדוניות ווירוסים מהווים סיכון משמעותי לכל מערכת שמחוברת לרשת, ותוכנת אנטי-וירוס היא שלב פשוט של צמצום סיכונים שאפשר להשתמש בו כדי להגן על הנתונים. Microsoft מספקת עצות לגבי תוכנות אנטי-וירוס.
מפעילים קובצי snapshot של VSS רק בנפח נתונים ובמקרים שבהם האפליקציה תואמת ל-VSS. מומלץ להימנע מיצירת קובצי snapshot של VSS בדיסק של מערכת ההפעלה, כי שירות VSS מסמנים את הדיסק הזה כקובץ לקריאה בלבד.
ניהול תיקונים
מוודאים שמערכת ההפעלה של Windows מעודכנת לגרסה האחרונה ושכל עדכוני המערכת ועדכוני האיכות (שנקראים גם 'עדכונים מצטברים' או 'עדכוני איכות מצטברים') מותקנים.
להשתמש בעדכון אוטומטי של Windows במכונה. Microsoft משחררת תיקונים לפחות בכל יום שלישי השני בכל חודש. כדאי שתהיה לכם אסטרטגיה להחלת העדכונים האלה כדי להגן על המערכת מפני באגים ו/או נקודות חולשה ידועות. אם אי אפשר להפעיל מחדש את המכונות באופן אוטומטי, כדאי ליצור משימות תיקון באמצעות VM Manager. כך תוכלו לתזמן עדכונים ולהפעיל מחדש את המכונות בזמן המתאים.
רישום ביומן ומעקב
להפעיל מסכים וירטואליים כדי להבין טוב יותר את המצב הנוכחי של מערכת ההפעלה, ולאפשר לכם להציג את המסוף במקרה שאין גישה למכונה.
כדאי להגדיר את Ops Agent כדי לרכז את היומנים שמוצגים ב-Event Viewer על ידי העברת יומנים בסטרימינג ל-Cloud Logging. כך תוכלו לאחזר את היומנים בקלות רבה יותר ולשמור אותם באופן עקבי יותר.
השלב הזה הוא אופציונלי לחלוטין, אבל מומלץ.
מומלץ להתקין את Ops Agent כדי לעקוב אחרי נתוני המעקב של ביצועי המכונה ולשמור אותם.
כשאתם משתמשים בתוכנות של Microsoft, אתם אחראים להבין את הסכמי הרישיון שלכם עם Microsoft ולציית להם.
במאמרי העזרה בנושא רישיונות Microsoft מפורטות הדרישות והאפשרויות לקבלת רישיון.
חשוב לוודא שסביבת האורח מעודכנת בהתאם לאסטרטגיית העדכונים של Windows.
עדכון סביבת האורח של מכונה של Windows באופן קבוע יבטיח שתשתמשו בגרסה העדכנית והיציבה ביותר של כל ה Google Cloud סוכנים והדריברים הנדרשים.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["התוכן קשה להבנה","hardToUnderstand","thumb-down"],["שגיאות בקוד לדוגמה או במידע","incorrectInformationOrSampleCode","thumb-down"],["חסרים לי פרטים או דוגמאות","missingTheInformationSamplesINeed","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-11 (שעון UTC)."],[[["\u003cp\u003eUtilize supported Windows Server versions, staying informed about their lifecycle and end-of-support dates on Google Cloud, and use the latest Google Cloud public image versions for new instances.\u003c/p\u003e\n"],["\u003cp\u003eImplement security measures, such as using antivirus software, managing user privileges, and adhering to the principle of least privilege, especially when using Active Directory.\u003c/p\u003e\n"],["\u003cp\u003eRegularly review and verify your backup and recovery plan, enable persistent disk snapshots for quick recovery, and apply VSS snapshots only on data volumes of compatible applications.\u003c/p\u003e\n"],["\u003cp\u003eKeep the Windows operating system updated with the latest system and quality patches, potentially using VM Manager to schedule updates and manage instance restarts.\u003c/p\u003e\n"],["\u003cp\u003eEnable virtual displays, stream serial port output to Cloud Logging, centralize logs using the Ops Agent, and keep the guest environment updated with the latest Google Cloud drivers and agents to ensure optimal performance and troubleshooting capabilities.\u003c/p\u003e\n"]]],[],null,["# Best practices for Windows Server VMs\n\nWindows\n\n*** ** * ** ***\n\nYou can apply several best practices to optimize Compute Engine instances\nthat run Microsoft Windows Server. This article describes how you can utilize\nother products available on Google Cloud and to ensure your Windows instances\nare performing optimally in terms of performance, security, redundancy and\navailability. For further information on configuration and setup of Windows\ninstances, see [Windows Workloads](/compute/docs/instances/windows). For\nMicrosoft SQL instances, refer to\n[Best Practices for SQL Server](/compute/docs/instances/sql-server/best-practices).\n\nGeneral Compute Engine best practices\n-------------------------------------\n\n- Understand which [versions of Windows Server](/compute/docs/images/os-details#windows_server) are supported, best suited for your use case, and which versions might be coming up to the [end of Windows Server support on Google Cloud](/compute/docs/instances/windows/end-of-support). Further information can be found at [Lifecycle FAQ from Microsoft](https://learn.microsoft.com/en-us/lifecycle/faq/extended-security-updates).\n- Understand how to correctly [Add a persistent disk to your Windows VM](/compute/docs/disks/format-mount-disk-windows).\n- Enable or disable Windows Server operating system features not required for the services run by your organization, unused features will consume resources you might not be using.\n- Launch new instances with the latest image version provided by Google Cloud public images, if you are using [Pay-as-you-go (PAYG) licence](/compute/docs/licenses/about).\n\nSecurity\n--------\n\n- If you are running Windows, you should be running antivirus software. Malware and software viruses present a significant risk to any system connected to a network, and antivirus software is a simple mitigation step you can use to protect your data. Microsoft provides advice about on [antivirus software](https://support.microsoft.com/en-US/windows-antivirus-software-providers).\n- Understand how to [create new local users](/compute/docs/instances/windows/generating-credentials#create_a_local_user_account) and [grant/revoke Administrator privileges](/compute/docs/instances/windows/generating-credentials#grant_local_users_administrator_privileges) on local accounts to limit critical applications and system files.\n- If you are using Active Directory, make use of [Configuring User Access Control and Permissions](https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/configure/user-access-control) to implement the principle of least privilege for user permissions within the Windows operating system. For further information see [summary of best practices for Active Directory](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn487442(v=ws.11)).\n\nBackup \\& Recovery\n------------------\n\n- Routinely review and verify your backup and recovery strategy.\n- Enable regular [Persistent Disk Snapshots](/compute/docs/disks/snapshots) for a quick recovery from a previous backup if there is a VM failure.\n - Only enable [VSS](https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service) snapshots on data volumes and where the application is VSS compatible. Avoid [creating VSS snapshots](/compute/docs/instances/windows/creating-windows-persistent-disk-snapshot#create-snapshot) on the operating system disk because the VSS service marks this disk as read-only.\n\nPatch Management\n----------------\n\n- Confirm your Windows operating system is updated to the latest version and all system and quality updates (also referred to as \"cumulative updates\" or \"cumulative quality updates\") are installed.\n- Make use of automatic Windows Update on your instance. Microsoft releases patches every second Tuesday of each month at minimum. You should have a strategy for applying these updates to help safeguard the system from known bugs and/or vulnerabilities. If automatic restarts are not an option, consider [creating patch jobs by using VM Manager](/compute/docs/os-patch-management), which can schedule updates and restart your instances at an appropriate time.\n\nLogging and Monitoring\n----------------------\n\n- [Enable virtual displays](/compute/docs/instances/enable-instance-virtual-display) to better understand the current state of the operating system, and to allow you to view the console in case your instance is inaccessible.\n- If your VM instance is stopped, logs from the [serial console](/compute/docs/troubleshooting/troubleshooting-using-serial-console) will no longer be available, to retain these logs you can [stream serial port\n output to Cloud Logging](/compute/docs/troubleshooting/viewing-serial-port-output#enable-stackdriver) and use the output stored to assist with troubleshooting and auditing.\n- Consider configuring the [Ops Agent](/logging/docs/agent/ops-agent) to centralize the logs you see in Event Viewer by [streaming logs to Cloud Logging](/logging/docs/agent/ops-agent/authorization), this allows for easier retrieval of the logs and more consistent retention. This step is completely optional, but recommended.\n- Consider installing the [Ops Agent](/logging/docs/agent/ops-agent) to monitor and retain the monitoring data of your instance performance.\n- Consider [streaming logs from third-party Applications](/logging/docs/agent/ops-agent/third-party).\n\nGoogle related drivers, agents \\& features\n------------------------------------------\n\n- When you use Microsoft software, you are responsible for understanding and complying with any licensing agreements that you might have with Microsoft. To understand the requirements and options for licensing, refer to the [Microsoft Licenses](/compute/docs/instances/windows/ms-licensing) documentation.\n- Keep the guest environment updated in line with your Windows Update strategy. Regularly [updating the guest environment](/compute/docs/images/install-guest-environment#update-guest) of your Windows instance will ensure you are running the latest and most stable version of all necessary Google Cloud agents and drivers."]]