Code:
powershell -noprofile -command "Get-ChildItem –path “\\AS_Server\Bu.txt” | Foreach-Object {(Get-Content $_) | Out-String | Foreach-Object {$_.Replace('Status=ON','Status=OFF')} | Set-Content $_}"
lasse ich das über batch laufen kommt das:
Code:
Get-ChildItem : Cannot find path 'D:\Tasks\ûpath' because it does not exist.
At line:1 char:14
+ Get-ChildItem <<<< ûpath ô\\AS_Server\Bu.txtö | Forea
ch-Object {(Get-Content $_) | Out-String | Foreach-Object {$_.Replace('Status=ON','Status=OFF')} | Set-Content $_}
+ CategoryInfo : ObjectNotFound: (D:\Tasks\ûpath:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
in der ps console geht es wenn ich "powershell -noprofile -command " weglasse. was ist läuft da schief?
Zuletzt bearbeitet: