С помощью скрипта ниже poweshell
я могу видеть userpath
для всех профилей пользователей.
# Get a list of all user profiles
$users = Get-WmiObject Win32_UserProfile
foreach( $user in $users ) {
# Normalize profile name.
$userPath = (Split-Path $user.LocalPath -Leaf).ToLower()
Write-Host $userPath
}
Как отфильтровать это с конкретными 2 пользователями, скажем user1
и user2