Windows 11 Openen lukt niet

Als ik op "deze pc" klik zie ik dit staan:

Screenshot_39.png

Als ik daarna op netwerklocaties klik komt er dit tevoorschijn:
Screenshot_40.png


Hoe komt dit? Ik begrijp eigenlijk ook niet goed wat "mediaserver" betekend
 
Ik begrijp niet wat je bedoeld met "andere user", ik ben toch niet veranderd naar iemand anders , het enige dat is veranderd is de pc en die schijf waar nu die foto's opstaan die ik niet kan openen was vroeger de "C" en nu is dit de "E" geworden of is dat waat je bedoeld Aneder user = andere pc ?
 
Open een Powershell console met administrator rechten, en voer bijgevoegd script uit met volgende parameters:
maw, Copy/paste de inhoud in een bestand met de naam "Set-OwnershipAndPermissions.ps1"

Set-OwnershipAndPermissions.ps1 -CurrentUser -Path E:\MijnBestanden

Waarbij het Path verwijst naar de folder of drive waar de ontoegankelijke bestanden staan. Als voorbeeld geef ik hier 'E:\MijnBestanden'
Alle onderliggende folders en bestanden worden aangepast met de rechten van de huidige gebruiker.

Code:
param(
    [Parameter(Mandatory)]
    [string]$Path,

    [Parameter(Mandatory=$false)]
    [string]$Identity,

    [switch]$CurrentUser
)

$adminRole = [Security.Principal.WindowsBuiltInRole] "Administrator"
$currentIdentity = [Security.Principal.WindowsIdentity]::GetCurrent()

if (-not ([Security.Principal.WindowsPrincipal]$currentIdentity).IsInRole($adminRole)) {
    throw 'You do not have Administrator rights'
}

if($CurrentUser) {
    $Identity = $currentIdentity.Name
} elseif([string]::IsNullOrEmpty($Identity)) {
    throw 'No Identity parm provided'
}

try {
    Write-Verbose "[SET ACL: $Identity] $Path"
    
    # Take ownership
    $acl = Get-Acl $Path
    $owner = [System.Security.Principal.NTAccount]::new($Identity)
    $acl.SetOwner($owner)
    Set-Acl -Path $Path -AclObject $acl -ErrorAction Stop

    # Set permissions
    $acl = Get-Acl $Path

    if(Test-Path -Path $Path -PathType Container) {
        $accessRule = [System.Security.AccessControl.FileSystemAccessRule]::new(
            $Identity,
            "FullControl",
            "ContainerInherit,ObjectInherit",
            "None",
            "Allow"
        )
    } else {
        $accessRule = [System.Security.AccessControl.FileSystemAccessRule]::new(
            $Identity,
            "FullControl",
            "None",
            "None",
            "Allow"
        )
    }

    $acl.SetAccessRule($accessRule)
    Set-Acl -Path $Path -AclObject $acl -ErrorAction Stop
}
catch {
    Write-Warning $_
}

# Process subdirectories and files if it's a directory
if(Test-Path -Path $Path -PathType Container) {
    try {
        Get-ChildItem $Path -Force -ErrorAction Stop | ForEach-Object {
            Set-OwnershipAndPermissions -Path $_.FullName -Identity $Identity
        }
    }
    catch {
        Write-Warning "Failed to access contents of $Path"
    }
}
 
Terug
Bovenaan