مقدمة
أصدرت Microsoft نشرة الأمن MS14-025. لمزيد من المعلومات حول هذا التحديث الأمني:
-
المستخدمون المنزليون:
https://www.microsoft.com/security/pc-security/updates.aspxتخطي التفاصيل: تحميل التحديثات الخاصة بكمبيوتر المنزل أو الكمبيوتر المحمول من موقع Microsoft Update:
-
متخصصوا تكنولوجيا المعلومات:
كيفية الحصول على تعليمات ودعم لهذا التحديث الأمني
تعليمات حول تثبيت التحديثات:
دعم Microsoft Update
حلول الأمان لمتخصصي تكنولوجيا المعلومات:
استكشاف أخطاء أمان TechNet والدعم
المساعدة في حماية جهاز الكمبيوتر المستند إلى Windows Windows من الفيروسات والبرامج الضارة:
مركز الأمان والفيروسات الحل
الدعم المحلي حسب البلد:
الدعم الدولي
مزيد من المعلومات
المشكلات المعروفة ومزيد من المعلومات حول هذا التحديث الأمني
تحتوي المقالات التالية على مزيد من المعلومات حول هذا التحديث الأمني فيما يتعلق بإصدارات المنتجات الفردية. قد تحتوي على المواد معلومات المشكلة المعروفة. إذا كانت هذه هي الحالة، توجد مشكلة معروفة في كل ارتباط المقالة.
تفضيلات نهج المجموعة
نظرة عامة
يمكن تخزين بعض "تفضيلات نهج المجموعة" كلمة مرور. إزالة هذه الوظيفة لأنه تم تخزين كلمة المرور احتمالية. توضح هذه المقالة التغييرات واجهة المستخدم وأية حلول متوفرة.
تفضيلات نهج المجموعة التالية لم يعد يسمح بحفظ كلمات المرور وأسماء المستخدمين:
-
تعيينات محرك الأقراص
-
المستخدمون المحليون والمجموعات المحلية
-
المهام المجدولة
-
الخدمات
-
مصادر البيانات
سيؤثر هذا سلوك كائنات نهج مجموعة (GPOs) الموجودة في البيئة الخاصة بك تعتمد على كلمات المرور الموجودة في هذه التفضيلات. كما سوف يمنع إنشاء "تفضيلات نهج المجموعة" الجديد باستخدام هذه الوظيفة.
لتعيينات محرك الأقراص والمستخدمين المحليين والمجموعات وخدمات، قد تكون قادرة على تحقيق أهداف مماثلة من خلال وظيفة أخرى، أكثر أماناً في Windows.
لجدولة المهام ومصادر البيانات، لن تتمكن من تحقيق نفس الأهداف التي كانت متاحة من خلال وظيفة "تفضيلات نهج المجموعة" كلمات مرور غير آمنة.
وحدات السيناريو
تفضيلات نهج المجموعة التالي تتأثر بهذا التغيير. كل التفضيل مغطى بإيجاز ومن ثم بمزيد من التفصيل. بالإضافة إلى ذلك، تعتبر الحلول المتوفرة التي تمكنك من تنفيذ المهام نفسها.
تفضيل المتأثرة |
ينطبق على المستخدم |
ينطبق على الكمبيوتر |
إدارة المستخدمين المحليين |
نعم |
نعم |
محركات الأقراص المعينة |
نعم |
لا |
الخدمات |
لا |
نعم |
المهام المجدولة (أعلى مستوى) |
نعم |
نعم |
المهام المجدولة (المستوى الأدنى) |
نعم |
نعم |
المهام الفورية (أعلى مستوى) |
نعم |
نعم |
المهام الفورية (المستوى الأدنى) |
نعم |
نعم |
مصادر البيانات |
نعم |
نعم |
ملخص للتغييرات
-
تم تعطيل كلمة المرور الحقول في كافة تفضيلات المتأثرة. لا يمكن إنشاء مسؤولي تفضيلات جديدة باستخدام هذه الحقول كلمة المرور.
-
تم تعطيل حقل اسم المستخدم في بعض التفضيلات.
-
لا يمكن تحديث اﻷفضليات القائمة التي تحتوي على كلمة مرور. يمكن أن تكون إلا المحذوفة أو المعوقين، كما هو مناسب لتفضيل معين.
-
لم يتم تغيير سلوك إجراءات الحذف وتعطيل للتفضيلات.
-
عند فتح مسؤول أي تفضيل يحتوي على سمة CPassword، يتلقى المسؤول مربع حوار التحذير التالي لإعلام له أو لها من الإهمال الأخيرة. سيقوم بمحاولة حفظ التغييرات إلى تفضيلات موجودة أو جديدة تتطلب سمة CPassword تشغيل نفس مربع الحوار. حذف فقط وسوف تشغل إجراءات تعطيل مربعات حوار التحذير.
السيناريو 1: إدارة المستخدمين المحليين
تفضيل "الإدارة المستخدم المحلية" استخداماً لإنشاء المسؤولين المحليين الذين لديهم كلمة مرور معروفة على جهاز كمبيوتر. هذه الميزة غير آمنة بسبب الطريقة التي "تفضيلات نهج المجموعة" بتخزين كلمات المرور. لذلك، هذه الوظيفة لم يعد متوفراً. تتأثر تفضيلات التالية:
-
تكوين الكمبيوتر-> لوحة التحكم--> إعدادات المستخدمين المحليين والمجموعات-> جديد--> مستخدم محلي
-
تكوين المستخدم--> لوحة التحكم--> إعدادات المستخدمين المحليين والمجموعات-> جديد--> مستخدم محلي
التغييرات الهامة
الإجراء: إنشاء أو استبداله
-
تم تعطيل حقول اسم المستخدمو كلمة المرورو تأكيد كلمة المرور .
-
يظهر مربع حوار تحذير عند فتح المسؤول أو محاولة حفظ التغييرات تفضيل القائمة الذي يحتوي على كلمة مرور.
الإجراء: التحديث
-
تم تعطيل حقول كلمة المرور و تأكيد كلمة المرور .
-
يظهر مربع حوار تحذير عند فتح المسؤول أو محاولة حفظ التغييرات تفضيل القائمة الذي يحتوي على كلمة مرور.
الإجراء: حذف
-
أي تغيير في السلوك
الحلول
يتوفر البرنامج النصي التالي لأولئك الذين اعتمدوا سابقا على "تفضيلات نهج المجموعة" لتحديد كلمات مرور المسؤول المحلي، كبديل أمن ل CPassword. نسخ وحفظ المحتويات ملف Windows PowerShell جديد ثم قم بتشغيل البرنامج النصي كما هو مشار إليه في الخاصة به. مقطع المثال.
تقدم Microsoft أمثلة برمجية للتوضيح فقط، دون أي ضمان صريح أو ضمني. هذا يتضمن، على سبيل المثال لا الحصر، الضمانات الضمنية الخاصة بالتسويق أو الملاءمة لغرض معين. تفترض هذه المقالة أنك معتاد على لغة البرمجة التي يتم شرحها والأدوات المستخدمة لإنشاء الإجراءات وتصحيحها. يساعد مهندسو الدعم لدى Microsoft شرح وظيفة إجراء محدد. ومع ذلك، لن يقوموا بتعديل هذه الأمثلة لتقديم وظيفة إضافية أو إنشاء إجراءات تستوفي متطلبات محددة.
function Invoke-PasswordRoll
{
<#
.SYNOPSIS
This script can be used to set the local account passwords on remote machines to random passwords. The username/password/server combination will be saved in a CSV file.
The account passwords stored in the CSV file can be encrypted using a password of the administrators choosing to ensure clear-text account passwords aren't written to disk.
The encrypted passwords can be decrypted using another function in this file: ConvertTo-CleartextPassword
Function: Invoke-PasswordRoll
Author: Microsoft
Version: 1.0
.DESCRIPTION
This script can be used to set the local account passwords on remote machines to random passwords. The username/password/server combination will be saved in a CSV file.
The account passwords stored in the CSV file can be encrypted using a password of the administrators choosing to ensure clear-text account passwords aren't written to disk.
The encrypted passwords can be decrypted using another function in this file: ConvertTo-CleartextPassword
.PARAMETER ComputerName
An array of computers to run the script against using PowerShell remoting.
.PARAMETER LocalAccounts
An array of local accounts whose password should be changed.
.PARAMETER TsvFileName
The file to output the username/password/server combinations to.
.PARAMETER EncryptionKey
A password to encrypt the TSV file with. Uses AES encryption. Only the passwords stored in the TSV file will be encrypted, the username and servername will be clear-text.
.PARAMETER PasswordLength
The length of the passwords which will be randomly generated for local accounts.
.PARAMETER NoEncryption
Do not encrypt the account passwords stored in the TSV file. This will result in clear-text passwords being written to disk.
.EXAMPLE
. .\Invoke-PasswordRoll.ps1 #Loads the functions in this script file
Invoke-PasswordRoll -ComputerName (Get-Content computerlist.txt) -LocalAccounts @("administrator","CustomLocalAdmin") -TsvFileName "LocalAdminCredentials.tsv" -EncryptionKey "Password1"
Connects to all the computers stored in the file "computerlist.txt". If the local account "administrator" and/or "CustomLocalAdmin" are present on the system, their password is changed
to a randomly generated password of length 20 (the default). The username/password/server combinations are stored in LocalAdminCredentials.tsv, and the account passwords are AES encrypted using the password "Password1".
.EXAMPLE
. .\Invoke-PasswordRoll.ps1 #Loads the functions in this script file
Invoke-PasswordRoll -ComputerName (Get-Content computerlist.txt) -LocalAccounts @("administrator") -TsvFileName "LocalAdminCredentials.tsv" -NoEncryption -PasswordLength 40
Connects to all the computers stored in the file "computerlist.txt". If the local account "administrator" is present on the system, its password is changed to a random generated
password of length 40. The username/password/server combinations are stored in LocalAdminCredentials.tsv unencrypted.
.NOTES
Requirements:
-PowerShellv2 or above must be installed
-PowerShell remoting must be enabled on all systems the script will be run against
Script behavior:
-If a local account is present on the system, but not specified in the LocalAccounts parameter, the script will write a warning to the screen to alert you to the presence of this local account. The script will continue running when this happens.
-If a local account is specified in the LocalAccounts parameter, but the account does not exist on the computer, nothing will happen (an account will NOT be created).
-The function ConvertTo-CleartextPassword, contained in this file, can be used to decrypt passwords that are stored encrypted in the TSV file.
-If a server specified in ComputerName cannot be connected to, PowerShell will output an error message.
-Microsoft advises companies to regularly roll all local and domain account passwords.
#>
[CmdletBinding(DefaultParameterSetName="Encryption")]
Param(
[Parameter(Mandatory=$true)]
[String[]]
$ComputerName,
[Parameter(Mandatory=$true)]
[String[]]
$LocalAccounts,
[Parameter(Mandatory=$true)]
[String]
$TsvFileName,
[Parameter(ParameterSetName="Encryption", Mandatory=$true)]
[String]
$EncryptionKey,
[Parameter()]
[ValidateRange(20,120)]
[Int]
$PasswordLength = 20,
[Parameter(ParameterSetName="NoEncryption", Mandatory=$true)]
[Switch]
$NoEncryption
)
#Load any needed .net classes
Add-Type -AssemblyName "System.Web" -ErrorAction Stop
#This is the scriptblock that will be executed on every computer specified in ComputerName
$RemoteRollScript = {
Param(
[Parameter(Mandatory=$true, Position=1)]
[String[]]
$Passwords,
[Parameter(Mandatory=$true, Position=2)]
[String[]]
$LocalAccounts,
#This is here so I can record what the server name that the script connected to was, sometimes the DNS records get messed up, it can be nice to have this.
[Parameter(Mandatory=$true, Position=3)]
[String]
$TargettedServerName
)
$LocalUsers = Get-WmiObject Win32_UserAccount -Filter "LocalAccount=true" | Foreach {$_.Name}
#Check if the computer has any local user accounts whose passwords are not going to be rolled by this script
foreach ($User in $LocalUsers)
{
if ($LocalAccounts -inotcontains $User)
{
Write-Warning "Server: '$($TargettedServerName)' has a local account '$($User)' whos password is NOT being changed by this script"
}
}
#For every local account specified that exists on this server, change the password
$PasswordIndex = 0
foreach ($LocalAdmin in $LocalAccounts)
{
$Password = $Passwords[$PasswordIndex]
if ($LocalUsers -icontains $LocalAdmin)
{
try
{
$objUser = [ADSI]"WinNT://localhost/$($LocalAdmin), user"
$objUser.psbase.Invoke("SetPassword", $Password)
$Properties = @{
TargettedServerName = $TargettedServerName
Username = $LocalAdmin
Password = $Password
RealServerName = $env:computername
}
$ReturnData = New-Object PSObject -Property $Properties
Write-Output $ReturnData
}
catch
{
Write-Error "Error changing password for user:$($LocalAdmin) on server:$($TargettedServerName)"
}
}
$PasswordIndex++
}
}
#Generate the password on the client running this script, not on the remote machine. System.Web.Security isn't available in the .NET Client profile. Making this call
# on the client running the script ensures only 1 computer needs the full .NET runtime installed (as opposed to every system having the password rolled).
function Create-RandomPassword
{
Param(
[Parameter(Mandatory=$true)]
[ValidateRange(20,120)]
[Int]
$PasswordLength
)
$Password = [System.Web.Security.Membership]::GeneratePassword($PasswordLength, $PasswordLength / 4)
#This should never fail, but I'm putting a sanity check here anyways
if ($Password.Length -ne $PasswordLength)
{
throw new Exception("Password returned by GeneratePassword is not the same length as required. Required length: $($PasswordLength). Generated length: $($Password.Length)")
}
return $Password
}
#Main functionality - Generate a password and remote in to machines to change the password of local accounts specified
if ($PsCmdlet.ParameterSetName -ieq "Encryption")
{
try
{
$Sha256 = new-object System.Security.Cryptography.SHA256CryptoServiceProvider
$SecureStringKey = $Sha256.ComputeHash([System.Text.UnicodeEncoding]::Unicode.GetBytes($EncryptionKey))
}
catch
{
Write-Error "Error creating TSV encryption key" -ErrorAction Stop
}
}
foreach ($Computer in $ComputerName)
{
#Need to generate 1 password for each account that could be changed
$Passwords = @()
for ($i = 0; $i -lt $LocalAccounts.Length; $i++)
{
$Passwords += Create-RandomPassword -PasswordLength $PasswordLength
}
Write-Output "Connecting to server '$($Computer)' to roll specified local admin passwords"
$Result = Invoke-Command -ScriptBlock $RemoteRollScript -ArgumentList @($Passwords, $LocalAccounts, $Computer) -ComputerName $Computer
#If encryption is being used, encrypt the password with the user supplied key prior to writing to disk
if ($Result -ne $null)
{
if ($PsCmdlet.ParameterSetName -ieq "NoEncryption")
{
$Result | Select-Object Username,Password,TargettedServerName,RealServerName | Export-Csv -Append -Path $TsvFileName -NoTypeInformation
}
else
{
#Filters out $null entries returned
$Result = $Result | Select-Object Username,Password,TargettedServerName,RealServerName
foreach ($Record in $Result)
{
$PasswordSecureString = ConvertTo-SecureString -AsPlainText -Force -String ($Record.Password)
$Record | Add-Member -MemberType NoteProperty -Name EncryptedPassword -Value (ConvertFrom-SecureString -Key $SecureStringKey -SecureString $PasswordSecureString)
$Record.PSObject.Properties.Remove("Password")
$Record | Select-Object Username,EncryptedPassword,TargettedServerName,RealServerName | Export-Csv -Append -Path $TsvFileName -NoTypeInformation
}
}
}
}
}
function ConvertTo-CleartextPassword
{
<#
.SYNOPSIS
This function can be used to decrypt passwords that were stored encrypted by the function Invoke-PasswordRoll.
Function: ConvertTo-CleartextPassword
Author: Microsoft
Version: 1.0
.DESCRIPTION
This function can be used to decrypt passwords that were stored encrypted by the function Invoke-PasswordRoll.
.PARAMETER EncryptedPassword
The encrypted password that was stored in a TSV file.
.PARAMETER EncryptionKey
The password used to do the encryption.
.EXAMPLE
. .\Invoke-PasswordRoll.ps1 #Loads the functions in this script file
ConvertTo-CleartextPassword -EncryptionKey "Password1" -EncryptedPassword 76492d1116743f0423413b16050a5345MgB8AGcAZgBaAHUAaQBwADAAQgB2AGgAcABNADMASwBaAFoAQQBzADEAeABjAEEAPQA9AHwAZgBiAGYAMAA1ADYANgA2ADEANwBkADQAZgAwADMANABjAGUAZQAxAGIAMABiADkANgBiADkAMAA4ADcANwBhADMAYQA3AGYAOABkADcAMQA5ADQAMwBmAGYANQBhADEAYQBjADcANABkADIANgBhADUANwBlADgAMAAyADQANgA1ADIAOQA0AGMAZQA0ADEAMwAzADcANQAyADUANAAzADYAMAA1AGEANgAzADEAMQA5ADAAYwBmADQAZAA2AGQA"
Decrypts the encrypted password which was stored in the TSV file.
#>
Param(
[Parameter(Mandatory=$true)]
[String]
$EncryptedPassword,
[Parameter(Mandatory=$true)]
[String]
$EncryptionKey
)
$Sha256 = new-object System.Security.Cryptography.SHA256CryptoServiceProvider
$SecureStringKey = $Sha256.ComputeHash([System.Text.UnicodeEncoding]::Unicode.GetBytes($EncryptionKey))
[SecureString]$SecureStringPassword = ConvertTo-SecureString -String $EncryptedPassword -Key $SecureStringKey
Write-Output ([System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToCoTaskMemUnicode($SecureStringPassword)))
}
يمكن للمسؤولين إضافة حسابات المسؤول المحلي لأجهزة الكمبيوتر عن طريق إنشاء مجموعة "خدمة active Directory" وإضافتها إلى مجموعة المسؤولين المحليين من خلال "تفضيلات نهج المجموعة"-> مجموعة محلية. هذا الإجراء لا تخزين بيانات الاعتماد. مربع الحوار ما يلي. هذا الحل يتطلب اتصال "خدمات مجال خدمة active Directory" عند تسجيل دخول المستخدم باستخدام بيانات الاعتماد هذه.
السيناريو 2: محركات الأقراص المعينة
يستخدم المسؤولون تعيينات محرك الأقراص لتخصيص مواقع الشبكة للمستخدمين. يتم استخدام ميزة حماية كلمة المرور للتأكد من المخولين الوصول إلى محرك الأقراص. تتأثر تفضيلات التالية:
-
--> تكوين المستخدم Windows إعدادات محرك الأقراص-->-> مخططات جديدة--> محرك الأقراص المعين
التغييرات الهامة
الإجراء: الإنشاء والتحديث، أو استبدالها
-
تم تعطيل حقول اسم المستخدمو كلمة المرورو تأكيد كلمة المرور .
الإجراء: حذف
-
أي تغيير في السلوك
الحلول
بدلاً من استخدام أسلوب كلمة المرور للمصادقة، يمكنك استخدام مستكشف Windows لإدارة أذونات المشاركة وتخصيص حقوق للمستخدمين. يمكنك استخدام كائنات "Active Directory" للتحكم في أذونات للمجلد.
السيناريو 3: الخدمات
يمكنك استخدام خدمات التفضيل لتغيير خصائص الخدمة في مثل هذه طريقة التي يتم تشغيلها في سياق خلاف سياق الأمان الأصلي الخاص بها. تتأثر تفضيلات التالية:
-
تكوين الكمبيوتر-> لوحة التحكم--> إعدادات خدمات-> الجديدة--> الخدمة
التغييرات الهامة
بدء التشغيل: لا تغيير تلقائي أو يدوي
-
تم تعطيل حقول كلمة المرور و تأكيد كلمة المرور .
-
يمكن للمسؤول استخدام حسابات مضمنة فقط.
بدء التشغيل: تعطيل
-
أي تغيير في السلوك
مربع حوار جديد
-
المسؤولون الذين يحاولون استخدام غير مضمنة المستخدمين الذين قاموا بهذا الحساب "التحذير التالي:
الحلول
الخدمات لا تزال تعمل كحساب نظام محلي. ويمكن تغيير أذونات الخدمة كما هو موثق في المقالة التالية في "قاعدة المعارف ل Microsoft":
256345 كيفية إعدادات "تكوين نهج المجموعة" لتعيين أمان خدمات النظام
ملاحظة في حالة عدم وجود الخدمة الذي تريد تكوينه، يجب تكوين الإعدادات على كمبيوتر الذي يحتوي على خدمة قيد التشغيل.
السيناريو 4: المجدولة وفوري المهام (على أعلى مستوى)
تستخدم لتشغيل المهام المجدولة في سياق أمان محدد. لا تتوفر القدرة على تخزين بيانات الاعتماد الخاصة بالمهام المجدولة لتشغيل كمستخدم عشوائية عند المستخدم لم يسجل دخوله. تتأثر تفضيلات التالية. (انتبه التي على بعض الأنظمة الأساسية "على الأقل ويندوز 7" يتم استبداله "نظام التشغيل Windows Vista والإصدارات الأحدث.")
-
تكوين الكمبيوتر-> "إعدادات لوحة التحكم"-> "المهام المجدولة"-> جديد-> "جدولة المهام" (على الأقل ويندوز 7)
-
تكوين الكمبيوتر-> "إعدادات لوحة التحكم"-> "المهام المجدولة"-> جديد-> "المهمة العاجلة" (على الأقل ويندوز 7)
-
تكوين المستخدم "إعدادات لوحة التحكم"-->-> "المهام المجدولة"-> جديد--> "جدولة المهام" (على الأقل ويندوز 7)
-
تكوين المستخدم "إعدادات لوحة التحكم"-->-> "المهام المجدولة"-> جديد--> "المهمة العاجلة" (على الأقل ويندوز 7)
التغييرات الهامة
الإجراء: الإنشاء والتحديث، أو استبدالها
-
عند تحديد خيار التشغيل سواء تم تسجيل دخول مستخدم أم لا ، يطالب مربع حوار لم يعد المسؤول عن وثائق التفويض.
-
يتم تعطيل خانة الاختيار عدم تخزين كلمة المرور . بشكل افتراضي، يتم فحص المربع أيضا.
الإجراء: حذف
أي تغيير في السلوك
الحلول
"المهمة المجدولة (على الأقل ويندوز 7)" و "المهمة العاجلة (الأقل ويندوز 7)" المهام، يمكن للمسؤولين استخدام حسابات مستخدم معين عند تسجيل دخول المستخدم المحدد. أو لهم فقط حق الوصول إلى الموارد المحلية كهذا المستخدم. لا يزال يمكن تشغيل هذه المهام في سياق الخدمة المحلية.
السيناريو 5: المجدولة وفوري المهام (المستوى الأدنى)هذا هو إصدار ذات مستوى منخفض من تفضيلات المستخدم لتشغيل "المهام المجدولة" في سياق أمان الخاص. لا تتوفر القدرة على تخزين بيانات الاعتماد الخاصة بالمهام المجدولة لتشغيل كمستخدم عشوائية عند المستخدم لم يسجل دخوله. تتأثر تفضيلات التالية:
-
تكوين الكمبيوتر-> لوحة التحكم--> إعدادات المهام المجدولة--> الجديدة--> المهام المجدولة
-
تكوين الكمبيوتر-> لوحة التحكم--> إعدادات المهام المجدولة--> الجديدة--> المهمة العاجلة (ويندوز إكس بي)
-
تكوين المستخدم--> لوحة التحكم--> إعدادات المهام المجدولة--> الجديدة--> المهام المجدولة
-
تكوين المستخدم--> لوحة التحكم--> إعدادات المهام المجدولة--> الجديدة--> المهمة العاجلة (ويندوز إكس بي)
التغييرات الهامة
الإجراء: الإنشاء والتحديث، أو استبدالها
-
يتم تعطيل خانة الاختيار تشغيل ك . ولذلك، اسم المستخدمو كلمة المرورو تأكيد كلمة المرور الحقول كافة معطلة.
الإجراء: حذف
أي تغيير في السلوك
الحلول
"المهام المجدولة" والعناصر "المهمة العاجلة (Windows XP)"، يتم تشغيل المهام المجدولة باستخدام الأذونات المتوفرة حاليا للخدمة المحلية.
السيناريو 6: مصادر البيانات
يتم استخدام تفضيل "مصادر البيانات" لربط مصدر بيانات بالكمبيوتر أو المستخدم. هذه الميزة لم يعد يقوم بتخزين بيانات الاعتماد لتمكين الوصول إلى مصادر البيانات المحمية بواسطة كلمة مرور. تتأثر تفضيلات التالية:
-
تكوين الكمبيوتر-> لوحة التحكم--> إعدادات مصادر البيانات
-
تكوين المستخدم--> لوحة التحكم--> إعدادات مصادر البيانات
التغييرات الهامة
الإجراء: الإنشاء والتحديث، أو استبدالها
-
يتم تعطيل حقول اسم المستخدمو كلمة المرورو تأكيد كلمة المرور :
الإجراء: حذف
-
أي تغيير في السلوك
الحلول
تتوفر لم حلول. لم يعد هذا التفضيل بتخزين بيانات الاعتماد للسماح بالوصول إلى مصادر البيانات المحمية بواسطة كلمة مرور.
الإهمال CPassword
إزالة CPassword
البرنامج النصي ل Windows PowerShell المضمنة في مقالة قاعدة معارف Microsoft بالكشف عن ما إذا كان مجال يحتوي على أية "تفضيلات نهج المجموعة" التي قد تستخدم CPassword. إذا تم اكتشاف CPassword XML في تفضيل معين، يتم عرضها في هذه القائمة.
الكشف عن تفضيلات CPassword
يجب تشغيل هذا البرنامج النصي من دليل محلي على وحدة تحكم المجال التي تريد تنظيفها. نسخ وحفظ المحتويات ملف Windows PowerShell جديد وتحديد محرك أقراص النظام وقم بتشغيل البرنامج النصي كما هو مشار إليه في الاستخدام التالي.
<#.SYNOPSIS
Group Policy objects in your domain can have preferences that store passwords for different tasks, such as the following:
1. Data Sources
2. Drive Maps
3. Local Users
4. Scheduled Tasks (both XP and up-level)
5. Services
These passwords are stored in SYSVOL as part of GP preferences and are not secure because of weak encryption (32-byte AES).
Therefore, we recommend that you not deploy such preferences in your domain environment and remove any such existing
preferences. This script is to help administrator find GP Preferences in their domain's SYSVOL that contains passwords.
.DESCRIPTION
This script should be run on a DC or a client computer that is installed with RSAT to print all the preferences that contain
password with information such as GPO, Preference Name, GPEdit path under which this preference is defined.
After you have a list of affected preferences, these preferences can be removed by using the editor in the Group Policy Management Console.
.SYNTAX
Get-SettingsWithCPassword.ps1 [-Path <String>]
.EXAMPLE
Get-SettingsWithCPassword.ps1 -Path %WinDir%\SYSVOL\domain
Get-SettingsWithCPassword.ps1 -Path <GPO Backup Folder Path>
.NOTES
If Group Policy PS module is not found the output will contain GPO GUIDs instead of GPO names. You can either run
this script on a domain controller or rerun the script on the client after you have installed RSAT and
enabled the Group Policy module.
Or, you can use GPO GUIDs to obtain GPO names by using the Get-GPO cmdlet.
.LINK
http://go.microsoft.com/fwlink/?LinkID=390507
#>
#----------------------------------------------------------------------------------------------------------------
# Input parameters
#--------------------------------------------------------------------------------------------------------------
param(
[string]$Path = $(throw "-Path is required.") # Directory path where GPPs are located.
)
#---------------------------------------------------------------------------------------------------------------
$isGPModuleAvailable = $false
$impactedPrefs = { "Groups.xml", "ScheduledTasks.xml","Services.xml", "DataSources.xml", "Drives.xml" }
#----------------------------------------------------------------------------------------------------------------
# import Group olicy module if available
#----------------------------------------------------------------------------------------------------------------
if (-not (Get-Module -name "GroupPolicy"))
{
if (Get-Module -ListAvailable |
Where-Object { $_.Name -ieq "GroupPolicy" })
{
$isGPModuleAvailable = $true
Import-Module "GroupPolicy"
}
else
{
Write-Warning "Unable to import Group Policy module for PowerShell. Therefore, GPO guids will be reported.
Run this script on DC to obtain the GPO names, or use the Get-GPO cmdlet (on DC) to obtain the GPO name from GPO guid."
}
}
else
{
$isGPModuleAvailable = $true
}
Function Enum-SettingsWithCpassword ( [string]$sysvolLocation )
{
# GPMC tree paths
$commonPath = " -> Preferences -> Control Panel Settings -> "
$driveMapPath = " -> Preferences -> Windows Settings -> "
# Recursively obtain all the xml files within the SYVOL location
$impactedXmls = Get-ChildItem $sysvolLocation -Recurse -Filter "*.xml" | Where-Object { $impactedPrefs -cmatch $_.Name }
# Each xml file contains multiple preferences. Iterate through each preference to check whether it
# contains cpassword attribute and display it.
foreach ( $file in $impactedXmls )
{
$fileFullPath = $file.FullName
# Set GPP category. If file is located under Machine folder in SYSVOL
# the setting is defined under computer configuration otherwise the
# setting is a to user configuration
if ( $fileFullPath.Contains("Machine") )
{
$category = "Computer Configuration"
}
elseif ( $fileFullPath.Contains("User") )
{
$category = "User Configuration"
}
else
{
$category = "Unknown"
}
# Obtain file content as XML
try
{
[xml]$xmlFile = get-content $fileFullPath -ErrorAction Continue
}
catch [Exception]{
Write-Host $_.Exception.Message
}
if ($xmlFile -eq $null)
{
continue
}
switch ( $file.BaseName )
{
Groups
{
$gppWithCpassword = $xmlFile.SelectNodes("Groups/User") | where-Object { [String]::IsNullOrEmpty($_.Properties.cpassword) -eq $false }
$preferenceType = "Local Users"
}
ScheduledTasks
{
$gppWithCpassword = $xmlFile.SelectNodes("ScheduledTasks/*") | where-Object { [String]::IsNullOrEmpty($_.Properties.cpassword) -eq $false }
$preferenceType = "Scheduled Tasks"
}
DataSources
{
$gppWithCpassword = $xmlFile.SelectNodes("DataSources/DataSource") | where-Object { [String]::IsNullOrEmpty($_.Properties.cpassword) -eq $false }
$preferenceType = "Data sources"
}
Drives
{
$gppWithCpassword = $xmlFile.SelectNodes("Drives/Drive") | where-Object { [String]::IsNullOrEmpty($_.Properties.cpassword) -eq $false }
$preferenceType = "Drive Maps"
}
Services
{
$gppWithCpassword = $xmlFile.SelectNodes("NTServices/NTService") | where-Object { [String]::IsNullOrEmpty($_.Properties.cpassword) -eq $false }
$preferenceType = "Services"
}
default
{ # clear gppWithCpassword and preferenceType for next item.
try
{
Clear-Variable -Name gppWithCpassword -ErrorAction SilentlyContinue
Clear-Variable -Name preferenceType -ErrorAction SilentlyContinue
}
catch [Exception]{}
}
}
if ($gppWithCpassword -ne $null)
{
# Build GPO name from GUID extracted from filePath
$guidRegex = [regex]"\{(.*)\}"
$match = $guidRegex.match($fileFullPath)
if ($match.Success)
{
$gpoGuid = $match.groups[1].value
$gpoName = $gpoGuid
}
else
{
$gpoName = "Unknown"
}
if($isGPModuleAvailable -eq $true)
{
try
{
$gpoInfo = Get-GPO -Guid $gpoGuid -ErrorAction Continue
$gpoName = $gpoInfo.DisplayName
}
catch [Exception] {
Write-Host $_.Exception.Message
}
}
# display prefrences that contain cpassword
foreach ( $gpp in $gppWithCpassword )
{
if ( $preferenceType -eq "Drive Maps" )
{
$prefLocation = $category + $driveMapPath + $preferenceType
}
else
{
$prefLocation = $category + $commonPath + $preferenceType
}
$obj = New-Object -typeName PSObject
$obj | Add-Member –membertype NoteProperty –name GPOName –value ($gpoName) –passthru |
Add-Member -MemberType NoteProperty -name Preference -value ($gpp.Name) -passthru |
Add-Member -MemberType NoteProperty -name Path -value ($prefLocation)
Write-Output $obj
}
} # end if $gppWithCpassword
} # end foreach $file
} # end functions Enum-PoliciesWithCpassword
#-----------------------------------------------------------------------------------
# Check whether Path is valid. Enumerate all settings that contain cpassword.
#-----------------------------------------------------------------------------------
if (Test-Path $Path )
{
Enum-SettingsWithCpassword $Path
}
else
{
Write-Warning "No such directory: $Path"
}
مثال للاستخدام (يفترض أن النظام محرك الأقراص C)
.\Get-SettingsWithCPassword.ps1 –path “C:\Windows\SYSVOL\domain” | Format-List
ملاحظة: يجب أن تدرك أنه يمكن أيضا توجيه أي كائن نهج مجموعة النسخ الاحتياطي مسار بدلاً من المجال.
إنشاء برنامج نصي الكشف عن قائمة مشابهة لما يلي:
قوائم طويلة، خذ بعين الاعتبار حفظ الإخراج إلى ملف:
.\Get-SettingsWithCPassword.ps1 –path “C:\Windows\SYSVOL\domain” | ConvertTo-Html > gpps.html
إزالة التفضيلات CPassword
وبغية إزالة التفضيلات التي تحتوي على بيانات CPassword، نقترح استخدام وحدة تحكم إدارة نهج المجموعة (GPMC) على وحدة تحكم المجال أو من أحد العملاء بتثبيت "أدوات إدارة ملقم عن بعد". يمكنك إزالة أي تفضيل في خمس خطوات في وحدات التحكم هذه. للقيام بذلك، اتبع الخطوات التالية:
-
في GPMC, افتح التفضيل الذي يحتوي على بيانات CPassword.
-
تغيير الإجراء حذف أو تعطيل، كما هو معمول به للتفضيل.
-
انقر فوق موافق لحفظ التغييرات.
-
انتظر واحد أو اثنين دورات تحديث "نهج المجموعة" السماح بإجراء تغييرات للنشر إلى العملاء.
-
بعد تطبيق التغييرات على كافة الأجهزة العميلة، احذف التفضيل.
-
كرر الخطوات من 1 إلى 5 حسب الحاجة لتنظيف بيئة كاملة. عند إرجاع البرنامج النصي الكشف عن نتائج صفر، تكون قد انتهيت.
اسم الملف |
تجزئة SHA1 |
تجزئة SHA256 |
---|---|---|
Windows6.0-KB2928120-ia64.msu |
B2A74305CB56191774BFCF9FCDEAA983B26DC9A6 |
DCE8C0F9CEB97DBF1F7B9BAF76458B3770EF01C0EDC581621BC8C3B2C7FD14E7 |
Windows6.0-KB2928120-x64.msu |
386457497682A2FB80BC93346D85A9C1BC38FBF7 |
1AF67EB12614F37F4AC327E7B5767AFA085FE676F6E81F0CED95D20393A1D38D |
Windows6.0-KB2928120-x86.msu |
42FF283781CEC9CE34EBF459CA1EFE011D5132C3 |
016D7E9DBBC5E487E397BE0147B590CFBBB5E83795B997894870EC10171E16D4 |
Windows6.1-KB2928120-ia64.msu |
5C2196832EC94B99AAF9B074D3938525B7219690 |
9958FA58134F55487521243AD9740BEE0AC210AC290D45C8322E424B3E5EBF16 |
Windows6.1-KB2928120-x64.msu |
EA5332F4E289DC799611EAB8E3EE2E86B7880A4B |
417A2BA34F8FD367556812197E2395ED40D8B394F9224CDCBE8AB3939795EC2A |
Windows6.1-KB2928120-x86.msu |
7B7B6EE24CD8BE1AB3479F9E1CF9C98982C8BAB1 |
603206D44815EF2DC262016ED13D6569BE13D06E2C6029FB22621027788B8095 |
Windows8-RT-KB2928120-x64.msu |
E18FC05B4CCA0E195E62FF0AE534BA39511A8593 |
FCAED97BF1D61F60802D397350380FADED71AED64435D3E9EAA4C0468D80141E |
Windows8-RT-KB2928120-x86.msu |
A5DFB34F3B9EAD9FA78C67DFC7ACACFA2FBEAC0B |
7F00A72D8A15EB2CA70F7146A8014E39A71CFF5E39596F379ACD883239DABD41 |
Windows8.1-KB2928120-x64.msu |
A07FF14EED24F3241D508C50E869540915134BB4 |
6641B1A9C95A7E4F0D5A247B9F488887AC94550B7F1D7B1198D5BCBA92F7A753 |
Windows8.1-KB2928120-x86.msu |
DE84667EC79CBA2006892452660EB99580D27306 |
468EE4FA3A22DDE61D85FD3A9D0583F504105DF2F8256539051BC0B1EB713E9C |
Windows8.1-KB2961899-x64.msu |
10BAE807DB158978BCD5D8A7862BC6B3EF20038B |
EC26618E23D9278FC1F02CA1F13BB289E1C6C4E0C8DA5D22E1D9CDA0DA8AFF51 |
Windows8.1-KB2961899-x86.msu |
230C64447CC6E4AB3AD7B4D4655B8D8CEFBFBE98 |
E3FAD567AB6CA616E42873D3623A777185BE061232B952938A8846A974FFA7AF |