Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-11 > #18353 > unrolled thread

powershell remove directory confusion

Started byT <T@invalid.invalid>
First post2025-04-08 17:52 -0700
Last post2025-04-08 17:58 -0700
Articles 2 — 1 participant

Back to article view | Back to alt.comp.os.windows-11


Contents

  powershell remove directory confusion T <T@invalid.invalid> - 2025-04-08 17:52 -0700
    Re: powershell remove directory confusion T <T@invalid.invalid> - 2025-04-08 17:58 -0700

#18353 — powershell remove directory confusion

FromT <T@invalid.invalid>
Date2025-04-08 17:52 -0700
Subjectpowershell remove directory confusion
Message-ID<vt4gbo$327ec$1@dont-email.me>
Hi All,

This does not work (uses `--Force`):

PowerShell.exe Remove-Item 
'\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6' -Force

Remove-Item : Cannot remove item 
\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6: An unexpected 
network error occurred.
At line:1 char:1
+ Remove-Item '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6'


But this works (no `--force`):

C:\NtUtil>PowerShell.exe Remove-Item -Path 
"\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6" -Recurse
<no return message and File Manager verifies it is gone>


What the ... ???

Yours in confusion,
-T

[toc] | [next] | [standalone]


#18354

FromT <T@invalid.invalid>
Date2025-04-08 17:58 -0700
Message-ID<vt4gne$327es$1@dont-email.me>
In reply to#18353
On 4/8/25 5:52 PM, T wrote:
> PowerShell.exe Remove-Item '\ 
> \192.168.240.10\oldserver\Backup\MyDocsBackup\backup6' -Force


oops that should have been

PowerShell.exe Remove-Item -Path 
"\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6" -Recurse -Force

[toc] | [prev] | [standalone]


Back to top | Article view | alt.comp.os.windows-11


csiph-web