Zum Hauptinhalt springen

Entsperren Excel Datei und Schutz entfernen in n8n

Entsperrdatei ist ein PDF4me Excel Betrieb in n8n Dieses Tool entfernt den Passwortschutz einer .xlsx-Arbeitsmappe auf drei unabhängigen Ebenen: Dateiverschlüsselung, Arbeitsmappenstruktur und Tabellenblattschutz. Verwenden Sie es, um geschützte Vorlagen zu öffnen, Dateien für automatisierte Datenschreibvorgänge vorzubereiten oder Passwörter vor der Archivierung zu löschen, ohne die Datei öffnen zu müssen. ExcelDie

Was dieser Knoten bewirkt

PDF4me Excel: Datei entsperren entfernt Excel Schutz in einem Schritt. Dabei werden das Öffnungspasswort (Dateiverschlüsselung), die Sperre der Arbeitsmappenstruktur (die das Hinzufügen, Löschen oder Umbenennen von Tabellenblättern verhindert) und optional der Tabellenblattschutz (der die Bearbeitung von Zellen und Formeln verhindert) entfernt. Die von Ihnen angegebenen Passwörter werden als Ausweichpasswörter für alle Ebenen wiederverwendet, sodass für eine mit einem einzigen Passwort gesicherte Arbeitsmappe in der Regel nur ein Feld ausgefüllt werden muss.

Verwandte Blog-Beiträge
Zu dieser Funktion gibt es noch keinen Blogbeitrag – folgt in Kürze.
Schauen Sie sich in der Zwischenzeit im PDF4me-Blog Tutorials und Arbeitsabläufe für alle Plattformen an.
Besuchen Sie den Blog

Authentifizierung Ihres API Anfrage

Jeder PDF4me Knoten in n8n erfordert eine gültige Anmeldeinformationen zum Verbinden mitErstellen oder wählen Sie einen Eintrag aus, der Ihre Daten enthält. PDF4me API Schlüssel, damit der Workflow Entsperranfragen sicher authentifizieren kann.

Wichtige Fakten, die Sie nicht verpassen sollten

Drei Schutzstufen, ein Betrieb
Dateiverschlüsselung, Arbeitsmappenstruktur und Arbeitsblattschutz sind unabhängige Sperrmechanismen in ExcelEine Arbeitsmappe kann jede beliebige Kombination enthalten, und diese Operation verarbeitet alle drei in einem einzigen Durchlauf.
Passwörter greifen auf verschiedene Ebenen zurück.
Jede Ebene wird zunächst ohne Passwort getestet. Wird ein Passwort angegeben, wird dieses auch für die anderen Ebenen verwendet, sodass ein einziges Passwort in der Dateiverschlüsselung oft eine Arbeitsmappe löscht, die durchgehend auf dieselbe Weise gesichert wurde.
Das Freischalten des Arbeitsblatts ist optional.
Die Option „Arbeitsblätter entsperren“ ist standardmäßig deaktiviert. Lassen Sie sie deaktiviert, um nur das Öffnungspasswort und die Struktursperre aufzuheben; aktivieren Sie sie, wenn auch Zellen und Formeln bearbeitbar sein sollen.
Der PDF4me Excel-Knoten in n8n ist auf „Operation: Datei entsperren“ eingestellt. Die Eingabemethode für die Excel-Datei stammt vom vorherigen Knoten (Binärdaten). Der Name der Binärdateneigenschaft ist „data“. Die Felder für das Passwort für die Dateiverschlüsselung und das Passwort für den Arbeitsmappenschutz sind leer. Die Option „Arbeitsblätter entsperren“ ist deaktiviert. Die Kultur ist „en-US“. Der Ausgabedateiname ist „excel_unlocked.xlsx“. Der Name des Quelldokuments ist „myExcelFile.xlsx“. Der Name der Binärdaten für die Ausgabe ist „data“.

PDF4me Excel Entsperren Sie das Bedienfeld „Dateiparameter“ in n8n

Welche Excel Welche Schutzfunktionen werden durch die einzelnen Felder entfernt?

Excel Es bietet Schutz auf drei verschiedenen Ebenen, die leicht verwechselt werden können. Diese Tabelle ordnet jede Ebene den blockierten Elementen und dem entsprechenden Feld zum Aufheben der Blockierung zu.

SchutzstufeWas es blockiertFeld, das es löscht
File encryptionThe workbook cannot be opened at all without a password. Excel prompts before any content is visible.File Encryption Password
Workbook structureSheets cannot be added, deleted, renamed, moved, hidden, or unhidden, though existing cells stay editable.Workbook Protection Password
Worksheet protectionCells, formulas, and objects on a sheet cannot be edited, though the file opens and the structure is intact.Unlock Worksheets toggle

Welche Parameter benötigt die Entsperrdatei?

Erforderlich: Operation Excel Dateieingabemethode, das zugehörige Eingabefeld und Ausgabedateiname. Die Passwortfelder sind bedingt und werden nur für die im Arbeitsmappenmodell vorhandenen Schutzstufen benötigt. Arbeitsblätter entsperren, Kulturname, Quelldokumentname und Name der Binärdatenausgabe sind optional.

ParameterErforderlichWas es tutBeispiel
OperationRequiredSelects the PDF4me Excel action to run. Choose Unlock File.Unlock File
Excel File Input MethodRequiredHow the workbook reaches the node. From Previous Node (Binary Data) reads it from an upstream item; the dropdown also offers base64 and file URL alternatives.From Previous Node (Binary Data)
Binary Data Property NameConditionalName of the binary property on the incoming n8n item holding the .xlsx workbook. Applies when the input method is binary data. Defaults to data.data
File Encryption PasswordConditionalThe password required to open the workbook. Supply it when the file is encrypted; it is also reused as a fallback against the other protection levels.FilePass123
Workbook Protection PasswordConditionalThe password guarding workbook structure, which prevents sheets being added, deleted, renamed, or moved. Supply it when structure protection is set.StructurePass
Unlock WorksheetsOptionalToggle that extends the run to worksheet-level protection so cells, formulas, and objects become editable. Off by default.true
Culture NameOptionalLocale used while processing the workbook, relevant for locale-sensitive number and date formatting.en-US
Output File NameRequiredFilename for the unlocked workbook the node returns. Include the .xlsx extension.excel_unlocked.xlsx
Source Document NameOptionalReference label for the incoming workbook. Echoed back as originalFileName for tracking; it does not change the output.myExcelFile.xlsx
Output Binary Data NameOptionalName of the binary property the output item exposes. Defaults to data.data

Ausgabefelder

Ein erfolgreicher Lauf bringt eins zurück n8n Gegenstand trägt JSON Metadaten plus die entsperrte Arbeitsmappe als Binärdaten.

FeldTypWas es enthält
successBooleanTrue when protection was removed successfully. Use it to route error-handling branches.
fileNameStringFilename of the unlocked workbook, matching Output File Name.
fileSizeNumberSize of the returned workbook in bytes.
originalFileNameStringThe value supplied in Source Document Name, echoed back for tracking.
messageStringHuman-readable result message for the unlock operation.
Binary (data)BinaryThe unlocked .xlsx under Output Binary Data Name (default data). Pass into Write Binary File, Email, or a cloud-storage upload.

N8N Maßnahmenreaktion

JSON Antwortformat

[
{
"fileName": "excel_unlocked.xlsx",
"fileSize": 14234,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"message": "Excel document unlocked successfully"
}
]

Wie richte ich eine Entsperrdatei ein? n8n?

  1. Füge die PDF4me Excel Fügen Sie den Knoten zu Ihrem Workflow hinzu und legen Sie fest Betrieb Zu EntsperrdateiDie
  2. In Anmeldeinformationen zum Verbinden mit, wählen Sie Ihre PDF4me API Anmeldeinformationen oder erstellen Sie eine mit Ihren API Schlüssel.
  3. Satz Excel Dateieingabemethode Zu Vom vorherigen Knoten (Binärdaten) und setzen Name der Binärdateneigenschaft an das Grundstück, auf dem sich das Arbeitsbuch befindet, normalerweise dataDie
  4. Eingeben Dateiverschlüsselungspasswort wenn zum Öffnen der Arbeitsmappe ein Passwort erforderlich ist.
  5. Eingeben Arbeitsmappenschutzpasswort wenn die Blattstruktur gesperrt ist.
  6. Einschalten Arbeitsblätter freischalten wenn Zellen und Formeln ebenfalls bearbeitbar werden sollen.
  7. Optional einstellbar Kulturname für lokalisierungssensitive Arbeitsmappen.
  8. Satz Name der Ausgabedatei endet mit .xlsx, den Knoten ausführen und die entsperrte Arbeitsmappe weiterleiten.

Typische Konfigurationen

Workflow-BeispieleCommon n8n workflow patterns using Unlock File for Excel.
Entsperren Sie eine geschützte Vorlage, bevor Sie Daten schreiben.
  1. Ein Workflow ruft eine gesperrte Berichtsvorlage ab von SharePointDie
  2. Durch das Entsperren der Datei wird die Struktursperre aufgehoben, sodass neue Blätter hinzugefügt werden können.
  3. PDF4me Excel Mit Add Rows werden die Periodenwerte in die Arbeitsmappe geschrieben.
Passwörter vor der Archivierung löschen
  1. Ein Zeitplan-Trigger sammelt Arbeitsmappen, die zur Langzeitarchivierung anstehen.
  2. Die Funktion „Datei entsperren“ entfernt das Öffnungspasswort, sodass das Archiv später lesbar bleibt.
  3. Die gelöschten Dateien werden im Archiv-Bucket gespeichert.
Make ein maschinenlesbares Lieferantenarbeitsbuch
  1. Ein E-Mail-Trigger empfängt eine geschützte Preisliste von einem Lieferanten.
  2. Die Option „Datei entsperren“ wird zusammen mit der Option „Arbeitsblätter entsperren“ ausgeführt, damit Zellwerte analysiert werden können.
  3. Die Zeilen werden extrahiert und mit einer internen Datenbank synchronisiert.
Entsperren, bearbeiten und dann wieder sichern
  1. Mit „Datei entsperren“ wird der Schutz einer genehmigten Arbeitsmappe entfernt.
  2. Nachgelagerte Knoten aktualisieren die Messwerte und ein Übersichtsblatt.
  3. PDF4me Excel Sicher Excel wendet vor der Weiterverteilung ein neues Passwort an.

Praktische Tipps

Try it with no password first
Structure and worksheet protection are often set without any password. Run the node with the password fields empty before assuming you need one.
One password usually covers all layers
Because supplied passwords are reused as fallbacks, filling in File Encryption Password alone often clears a workbook secured the same way throughout.
Passwords are case-sensitive
A mismatch in capitalisation fails the layer silently rather than erroring loudly, so check case before debugging further.
Leave Unlock Worksheets off unless needed
Removing cell-level protection can expose formulas that were deliberately locked. Enable it only when downstream nodes must edit cells.
Re-secure after editing
Unlocking is usually a middle step. Chain Secure Excel at the end so the redistributed workbook is protected again.
Output File Name needs the .xlsx extension
Omitting it can leave downstream nodes unable to detect the format when writing or emailing the file.

Spickzettel

FeldWert
OperationUnlock File
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
File Encryption Password(only if the file needs a password to open)
Workbook Protection Password(only if the sheet structure is locked)
Unlock Worksheetsoff (on to make cells editable)
Culture Nameen-US
Output File Nameexcel_unlocked.xlsx
Source Document NamemyExcelFile.xlsx
Output Binary Data Namedata
CredentialsPDF4me API credential

Häufig gestellte Fragen

What are the three levels of Excel protection this removes?+
File encryption is the password required to open the file at all. Workbook structure protection stops sheets being added, deleted, renamed, or moved. Worksheet protection stops cells, formulas, and objects being edited. Each level is independent, as described in Microsoft protection and security in Excel.
Do I need to supply a password for every protection level?+
No. Only supply the passwords that apply. The operation first attempts to remove each layer with no password, and where a password is supplied it is also reused as a fallback for the other layers, so a workbook that uses one password throughout usually needs only File Encryption Password filled in.
What does the Unlock Worksheets toggle do?+
It controls whether worksheet-level protection is cleared as part of the run. Leave it off to remove only file encryption and workbook structure protection. Switch it on when cells, formulas, or objects also need to become editable.
Is this the same as cracking an unknown Excel password?+
No. The operation removes protection you are authorised to remove, using passwords you supply or protection that carries no password. It is intended for automating access to your own files, such as unlocking a protected template before a workflow writes data into it.
What is Culture Name for?+
Culture Name sets the locale used while the workbook is processed, for example en-US or de-DE. It matters when a workbook contains locale-sensitive formatting such as decimal separators or date formats. Leaving it at the default uses the standard culture.
What is the difference between Output File Name and Source Document Name?+
Output File Name is the filename of the unlocked workbook the node returns. Source Document Name is a reference label echoed back as originalFileName in the response, useful for tracking. Both can be driven by expressions, following the n8n expressions documentation.

Verwandte Aktionen

Dieselbe Aufgabe auf anderen Plattformen

Hilfe erhalten