updated Get-UserProfiles func
This commit is contained in:
@@ -764,7 +764,7 @@ Function WriteToFile_UTF8NoBOM {
|
||||
}
|
||||
|
||||
# Function to enumerate all user profile folders
|
||||
Function EnumUserProfiles {
|
||||
Function Get-UserProfiles {
|
||||
$ProfilePath = (Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' -Name ProfilesDirectory)
|
||||
$UserProfilePaths = @()
|
||||
ForEach ( $userProfile in (Get-ChildItem -Path $ProfilePath | Where-Object { $_.PSIsContainer }) ) {
|
||||
|
||||
Reference in New Issue
Block a user