מבוא
Microsoft פרסמה את עלון אבטחה MS14-025. כדי ללמוד עוד אודות עלון אבטחה זה:
-
משתמשים ביתיים:
https://www.microsoft.com/security/pc-security/updates.aspxדלג על הפרטים: הורד את העדכונים עבור המחשב הביתי או המחשב הנייד שלך מאתר האינטרנט Microsoft Update כעת:
-
מומחי IT:
כיצד להשיג עזרה ותמיכה עבור עדכון אבטחה זה
עזרה בהתקנת עדכונים:
תמיכה עבור Microsoft Update
פתרונות אבטחה עבור מומחי IT:
פתרון בעיות האבטחה TechNet ותמיכה
עזרה בהגנה על המחשב מבוסס Windows Windows מפני וירוסים ותוכנות זדוניות:
פתרון וירוס ומרכז האבטחה
תמיכה מקומית בהתאם למדינה שלך:
תמיכה בינלאומית
מידע נוסף
בעיות ידועות ומידע נוסף אודות עדכון אבטחה זה
המאמרים הבאים מכילים מידע נוסף אודות עדכון אבטחה זה כפי שהוא מתייחס אליה גירסאות מוצר בודד. המאמרים עשוי להכיל מידע אודות בעיות ידועות. אם זהו המקרה, בעיה מוכרת רשום תחת כל קישור למאמר.
העדפות מדיניות קבוצתית
מבט כולל
העדפות מדיניות קבוצתית מסוימות באפשרותך לאחסן סיסמה. פונקציונליות זו מוסר מאחר הסיסמה אוחסנה ייענו. מאמר זה מתאר את השינויים ממשק המשתמש ואת כל הדרכים לעקיפת הבעיה זמינים.
העדפות מדיניות קבוצתית הבאה עוד תאפשר שמירת סיסמאות ושמות משתמש:
-
מפות כונן
-
משתמשים וקבוצות מקומיים
-
משימות מתוזמנות
-
שירותים
-
מקורות נתונים
הדבר ישפיע על אופן הפעולה של כל קיימים אובייקטים של מדיניות קבוצתית (Gpo) בסביבה שלך המסתמכים על סיסמאות כלולים בהעדפות אלה. הוא ימנע גם יצירת העדפות מדיניות קבוצתית חדשה על-ידי שימוש בפונקציונליות זו.
עבור כונן מפות, משתמשים מקומיים ו קבוצות ושירותים, ייתכן שתוכל להשיג מטרות דומות באמצעות פונקציונליות אחרים, אבטחתו ב- Windows.
עבור משימות מתוזמנות ומקורות נתונים, לא תהיה אפשרות להשיג את המטרות באותו שהיו זמינים באמצעות הפונקציונליות לא מאובטחים של סיסמאות העדפות מדיניות קבוצתית.
תרחישים
העדפות מדיניות קבוצתית הבאות הן מושפעות משינוי זה. כל העדפה מכוסה לזמן קצר ולאחר מכן בפירוט רב יותר. בנוסף, דרכים לעקיפת הבעיה מסופקים המאפשרים לך לבצע את אותן משימות.
העדפת המושפעת |
חל על המשתמש |
חל על מחשב |
ניהול משתמשים מקומיים |
כן |
כן |
כוננים ממופים |
כן |
לא |
שירותים |
לא |
כן |
משימות מתוזמנות (מרמה) |
כן |
כן |
משימות מתוזמנות (ברמה נמוכה) |
כן |
כן |
משימות מיידית (מרמה) |
כן |
כן |
משימות מיידית (ברמה נמוכה) |
כן |
כן |
מקורות נתונים |
כן |
כן |
סיכום של שינויים
-
שדות סיסמה כל ההעדפות המושפעים אינם זמינים. מנהלי מערכת אין אפשרות ליצור העדפות חדשים באמצעות שדות אלה סיסמה.
-
בשדה שם משתמש אינה זמינה בהעדפות מסוימות.
-
אין אפשרות לעדכן את העדפות הקיים המכילים סיסמה. הן יכולות להיות רק שנמחקו או לא זמין, בהתאם להעדפה ספציפיים.
-
אופן הפעולה עבור פעולות מחיקה והפוך לא השתנו עבור ההעדפות.
-
כאשר מנהל פותח כל העדפה המכילה את תכונת CPassword, המנהל מקבל תיבת הדו-שיח של האזהרה הבאה כדי ליידע הביטול האחרונים שלו. נסיונות לשמור שינויים בהעדפות חדש או קיים הדורשים את התכונה CPassword שמפיקים את אותה תיבת דו-שיח. למחוק רק ואת פעולות ביטול לא שמפיקים תיבות דו-שיח של אזהרות.
תרחיש 1: ניהול משתמשים מקומיים
העדפות ניהול משתמשים מקומיים משמש לעתים קרובות כדי ליצור מנהלים מקומיים בעלי סיסמה מוכרות במחשב. תכונה זו אינה מאובטחת בשל האופן העדפות מדיניות קבוצתית מאחסנת סיסמאות. לכן, פונקציונליות זו אינו זמין עוד. הן מושפעות מההעדפות הבאות:
-
תצורת מחשב לוח הבקרה -> הגדרות -> משתמשים מקומיים ו קבוצות -> חדש -> משתמש מקומי
-
תצורת משתמש לוח הבקרה -> הגדרות -> משתמשים מקומיים ו קבוצות -> חדש -> משתמש מקומי
שינויים חשובים
פעולה: ליצור או להחליף
-
שדות שם משתמש, סיסמה, וסיסמה אשר אינן זמינות.
-
תיבת הדו-שיח של האזהרה מופיע כאשר מנהל המערכת פותח או מנסה לשמור שינויים כלשהם העדפה קיים המכיל סיסמה.
פעולה: עדכון
-
השדות סיסמה ואשר סיסמה אינם זמינים.
-
תיבת הדו-שיח של האזהרה מופיע כאשר מנהל המערכת פותח או מנסה לשמור שינויים כלשהם העדפה קיים המכיל סיסמה.
פעולה: מחיקה
-
אין שינוי בהתנהגות
דרכים לעקיפת הבעיה
עבור אלה שלא בעבר התבססה על העדפות המדיניות הקבוצתית עבור הגדרת סיסמאות מנהל מערכת מקומי, קובץ ה-script הבא מסופק כחלופה מאובטח כדי CPassword. העתק ו לשמור את התוכן לקובץ Windows PowerShell חדש ולאחר מכן הפעל את קובץ ה-script כמצוין ב שלו. מקטע דוגמה.
מיקרוסופט מציעה דוגמאות תכנות לצורך ההדגמה בלבד, ללא אחריות, בין מפורשת ובין משתמעת. זה כולל, אך אינו מוגבל ל, אחריות מכללא לגבי סחירות או התאמה למטרה מסוימת. מאמר זה מבוסס על ההנחה שאתה מכיר את שפת התכנות המודגמת ובקי בהפעלת הכלים המשמשים ליצירת פרוצדורות ולניפוי שגיאות. מהנדסי התמיכה של 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 ואת הוספתה לקבוצה Administrators המקומית דרך העדפות מדיניות קבוצתית -> קבוצה מקומית. פעולה זו תאחסן במטמון אישורים. תיבת הדו-שיח נראית כך: דרך זו לעקיפת הבעיה דרוש חיבור ל- Active Directory Domain Services, כאשר המשתמש מתחבר באמצעות אישורים אלה.
תרחיש 2: כוננים ממופים
מנהלי מערכת להשתמש במפות כונן להקצות מיקומי רשת למשתמשים. תכונת הגנת סיסמה משמש כדי להבטיח גישה מורשה לכונן. הן מושפעות מההעדפות הבאות:
-
תצורת משתמש Windows -> הגדרות -> כונן מפות -> חדש -> כונן ממופה
שינויים חשובים
פעולה: יצירה, עדכון, או להחליף
-
שדות שם משתמש, סיסמה, ו אשר סיסמה אינם זמינים.
פעולה: מחיקה
-
אין שינוי בהתנהגות
דרכים לעקיפת הבעיה
במקום להשתמש בשיטת הסיסמה עבור אימות, באפשרותך להשתמש בסייר Windows כדי לנהל הרשאות שיתוף ולהקצות הרשאות למשתמשים. באפשרותך להשתמש אובייקטים של Active Directory כדי הרשאות שליטה אל התיקיה.
תרחיש 3: שירותים
באפשרותך להשתמש העדפה שירותים כדי לשנות מאפייני שירות באופן כזה האופן שבו הם פועלים בהקשר שונה הקשר האבטחה המקורי שלהם. הן מושפעות מההעדפות הבאות:
-
תצורת מחשב לוח הבקרה -> הגדרות -> שירותים -> חדש -> שירות
שינויים חשובים
הפעלה: ללא שינוי, אוטומטי או ידני
-
השדות סיסמהואשר סיסמה אינם זמינים.
-
מנהל המערכת יכול להשתמש רק חשבונות מוכללים.
הפעלה: ביטול
-
אין שינוי בהתנהגות
תיבת דו-שיח חדשה
-
מנהלים שינסו להשתמש שאינו בנוי-המשתמשים עבור חשבון זה"מקבל את האזהרה הבאה:
דרכים לעקיפת הבעיה
שירותים עדיין יכולים לפעול כחשבון מערכת מקומית. הרשאות שירות יכול להשתנות כפי שמתועד במאמר הבא מתוך מאגר הידע Microsoft Knowledge Base:
256345 כיצד הגדרות קביעת תצורה של מדיניות קבוצתית כדי להגדיר אבטחה עבור שירותי מערכת
הערה אם השירות שברצונך להגדיר אינו קיים, עליך להגדיר את ההגדרות במחשב שבו מותקן שירות מפעיל.
תרחיש 4: מתוזמנת מיידי ומשימות (מרמה)
אלה משמשות כדי להפעיל משימות מתוזמנות בהקשר אבטחה ספציפיות. היכולת לאחסן את האישורים עבור משימות מתוזמנות להפעלת כמשתמש שרירותי בעת שהמשתמש אינו מחובר אינו זמין עוד. העדפות הבאות הן מושפעות. (שים לב כי בפלטפורמות מסוימים, "לפחות Windows 7" מוחלף "Windows Vista וגירסאות מתקדמות יותר.")
-
תצורת מחשב -> הגדרות לוח הבקרה -> משימות מתוזמנות -> חדש -> משימה מתוזמנת (לפחות Windows 7)
-
תצורת מחשב -> הגדרות לוח הבקרה -> משימות מתוזמנות -> חדש -> פעילות מיידית (לפחות Windows 7)
-
תצורת משתמש -> הגדרות לוח הבקרה -> משימות מתוזמנות -> חדש -> משימה מתוזמנת (לפחות Windows 7)
-
תצורת משתמש -> הגדרות לוח הבקרה -> משימות מתוזמנות -> חדש -> פעילות מיידית (לפחות Windows 7)
שינויים חשובים
פעולה: יצירה, עדכון, או להחליף
-
בעת בחירת האפשרות הפעל בין אם המשתמש מחובר ובין אם לא , תיבת דו השיח מבקשת עוד מנהל המערכת לקבלת אישורים.
-
תיבת הסימון אל תאחסן סיסמה אינה זמינה. כברירת מחדל, תיבת גם נבדק.
פעולה: מחיקה
אין שינוי בהתנהגות
דרכים לעקיפת הבעיה
עבור "המשימות המתוזמנות (לפחות Windows 7)" ו- "פעילות מיידית (לפחות Windows 7)" משימות, מנהלי מערכת יכולים להשתמש חשבונות משתמשים ספציפיים כאשר המשתמש הנתון הוא מחובר. לחלופין, באפשרותך רק יש להם גישה למשאבים מקומיים כמו אותו משתמש. משימות אלה עדיין יכולים לפעול בהקשר של שירות מקומי.
תרחיש 5: מתוזמנת מיידי ומשימות (ברמה נמוכה)זוהי הגירסה ברמה נמוכה של העדפות המשמש להפעלת משימות מתוזמנות בהקשר אבטחה ספציפיות. היכולת לאחסן את האישורים עבור משימות מתוזמנות להפעלת כמשתמש שרירותי בעת שהמשתמש אינו מחובר אינו זמין עוד. הן מושפעות מההעדפות הבאות:
-
תצורת מחשב לוח הבקרה -> הגדרות -> משימות מתוזמנות -> חדש -> משימה מתוזמנת
-
תצורת מחשב לוח הבקרה -> הגדרות -> משימות מתוזמנות -> חדש -> פעילות מיידית (Windows XP)
-
תצורת משתמש לוח הבקרה -> הגדרות -> משימות מתוזמנות -> חדש -> משימה מתוזמנת
-
תצורת משתמש לוח הבקרה -> הגדרות -> משימות מתוזמנות -> חדש -> פעילות מיידית (Windows XP)
שינויים חשובים
פעולה: יצירה, עדכון, או להחליף
-
תיבת הסימון הפעל כ אינו זמין. לכן, השדות שם משתמש, סיסמה, וסיסמה לאשר כל מושבתים.
פעולה: מחיקה
אין שינוי בהתנהגות
דרכים לעקיפת הבעיה
עבור "משימה מתוזמנת" ופריטים "פעילות מיידית (Windows XP)", המשימות המתוזמנות מופעלות באמצעות ההרשאות הזמינות כעת שירות מקומי.
תרחיש 6: מקורות נתונים
העדפת מקורות נתונים משמש כדי לשייך מקור נתונים מחשב או משתמש. תכונה זו כבר אינו מאחסן את האישורים כדי לאפשר גישה למקורות נתונים המוגנים באמצעות סיסמה. הן מושפעות מההעדפות הבאות:
-
תצורת מחשב לוח הבקרה -> הגדרות -> מקורות נתונים
-
תצורת משתמש לוח הבקרה -> הגדרות -> מקורות נתונים
שינויים חשובים
פעולה: יצירה, עדכון, או להחליף
-
שדות שם משתמש, סיסמה, וסיסמה אשר אינן זמינות:
פעולה: מחיקה
-
אין שינוי בהתנהגות
דרכים לעקיפת הבעיה
דרכים לעקיפת הבעיה לא יהיו זמינות. העדפה זו מאחסנת עוד אישורים כדי לאפשר גישה למקורות נתונים המוגנים באמצעות סיסמה.
הביטול של CPassword
הסרת CPassword
ה-script Windows PowerShell הכלול במאמר מתוך מאגר הידע Microsoft Knowledge Base זה מגלה אם תחום מכיל כל העדפות מדיניות קבוצתית שעשויים להשתמש CPassword. אם זוהה CPassword XML העדפה נתון, הוא מוצג ברשימה זו.
זיהוי העדפות CPassword
יש להפעיל קובץ script זה מתוך ספריה מקומית בבקר קבוצת המחשבים שברצונך לנקות. העתק ושמור את התוכן לקובץ Windows PowerShell חדש, לקבוע את כונן המערכת שלך ולאחר מכן הפעל קובץ ה-script כמצוין בהשימוש הבא.
<#.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
הערה שים לב כי ניתן גם לייעד כל GPO גיבוי עבור הנתיב במקום תחום.
קובץ ה-script של זיהוי מפיק רשימה הדומה להודעה הבאה:
עבור רשימות ארוכים יותר, שקול לשמור את הפלט לקובץ:
.\Get-SettingsWithCPassword.ps1 –path “C:\Windows\SYSVOL\domain” | ConvertTo-Html > gpps.html
הסרת העדפות CPassword
כדי להסיר את העדפות המכילים נתונים CPassword, אנו מציעים להשתמש במסוף ניהול המדיניות הקבוצתית (GPMC) בבקר התחום או מלקוח מרוחק שרת מותקנים כלי הניהול. באפשרותך להסיר כל העדפה חמישה שלבים במסופים אלה. לשם כך, בצע את הפעולות הבאות:
-
ב- GPMC, פתח את העדפת המכיל נתונים CPassword.
-
לשנות את הפעולה כדי למחוק או לבטל, כפי שמתאים ההעדפות.
-
לחץ על אישור כדי לשמור את השינויים שלך.
-
המתן מחזורי רענון מדיניות קבוצתית אחת או שתיים לאפשר את השינויים מהורה אל לקוחות.
-
לאחר השינויים מוחלים על כל הלקוחות, מחק את ההעדפות.
-
חזור על שלבים 1 עד 5 לפי הצורך כדי לנקות את הסביבה כולה. כאשר קובץ ה-script של זיהוי מחזירה אפס תוצאות, סיימת.
שם קובץ |
SHA1 hash |
קוד hash של 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 |