[quote='Erik_Nüßle_|]
danke für die schnelle Antwort. Für den RejectionReport habe ich folgendes durchgeführt:
* alle Dateien in einem Ordner abgespeichert
* anhand der erfolderichen Befehlen die Eingabe vorbereitet
* Powershell als Admin gestartet und die ps1 Datei zum Ausführen entsperrt via Unblock-File (wird sonst durch die ExecutionPolicy verhindert)
* im Powershell zum Speicherort der runtergeladenen Dateien navigiert und diesen Befehl ausgeführt:
.\Get-RejectionReport.ps1 -SMTPHost [Name vom NSP] -ReportRecipient [meine Mail-Adresse] -ReportSender [Mail-Adresse NSP]
Habe sämtliche Varianten der einzelnen Variablen probiert, auch die Optionalen. Erhalte aber immer diese Fehlermeldung:
****
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:148 char:21
+ Sign up
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:190
+ ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:261
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:255
+ ... ogged out) Header, go to Customer stories">Customer stories <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:326
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:231
+ ... ata-ga-click="(Logged out) Header, go to Security">Security <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:302
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:222
+ ... a-click="(Logged out) Header, go to Explore">Explore GitHub <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:293
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:215 char:107
+ ... text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn & con ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError:
) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
****
Ich hoffe mal, der NSP kann sich selber als SMTP-Host verwenden.
Danke und Grüße
Erik
[/quote]
Moin Erik,
in der Regel ist ja das System von dem man das Skript absetzt ja nur die Intranetrolle, diese hat keinen SMTP Dienst. Wenn auf der gleichen Maschine auch eine Gatewayrolle installiert ist, dann musst du im NSP die 127.0.0.1 als eigenen Mailserver eintragen
Viele Grüße
Sören