Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб PowerShell Script To Delete Only Account Unknown User Profiles в хорошем качестве

PowerShell Script To Delete Only Account Unknown User Profiles 1 год назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



PowerShell Script To Delete Only Account Unknown User Profiles

ACCOUNT UNKNOWN User Profiles are most likely just chewing up disk space on your computer. They are the profiles from users that have been deleted in Active Directory. If you run an RDS server or have had alot of administrators, you can have a lot of dead profiles on your Windows Server, that you should probably get rid of. In this PowerShell Script, we will delete only the account profiles that are unknown. This will help to keep your system clean and free from old account profiles that you may no longer be using. This script can be used to delete user accounts that are no longer active, old user profiles that have been abandoned by the user, or profiles that are flagged as dead accounts. By using this simple PowerShell Script, you can quickly and easily remove unwanted user profiles from your system! By Khalid Abullahi URTech.ca Get a list of all user profiles on the computer $userProfiles = Get-WmiObject -Class Win32_UserProfile foreach ($profile in $userProfiles) { $userSID = $profile.SID $userAccount = $null Try to get the user account associated with the profile try { $userAccount = [System.Security.Principal.SecurityIdentifier]::new($userSID).Translate([System.Security.Principal.NTAccount]).Value } catch { An exception occurs when the user account doesn't exist } Check if a user account was found if ($userAccount -eq $null) { Delete the user profile Write-Host "Deleting user profile with SID $userSID" Remove-WmiObject -InputObject $profile } } Write-Host "User profiles cleanup completed."

Comments