I have a PowerShell script that closes opened shared files on remote server
$User = "user" $PWord = ConvertTo-SecureString -String "pas" -