![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | How to delete a DFS node using Powershell Does anybody know how to delete a dfs node (rather than the file structure it refers to) using Powershell? I had hoped to use the WMI WIN32_DFSNODE but that only appears to have a delete method. I've seen references to NetDfsRemove in the platform SDK, but I'm wary of using this - I'm an admin who scripts, not a developer! Is my only (safer) option to call DFSCMD from PSH? -- Richard Adams MCSE, CNE, etc |
My System Specs![]() |
| | #2 (permalink) |
| | Re: How to delete a DFS node using Powershell Richard Adams wrote: Quote: > Does anybody know how to delete a dfs node (rather than the file structure it > refers to) using Powershell? I had hoped to use the WMI WIN32_DFSNODE but > that only appears to have a delete method. I've seen references to > NetDfsRemove in the platform SDK, but I'm wary of using this - I'm an admin > who scripts, not a developer! Is my only (safer) option to call DFSCMD from > PSH? > from PowerShell, and you're done. I didn't check, but this might be access from .NET, but you're crossing the admin/dev line... Don't reinvent the wheel, use the old command... -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| get child node of selected parent node | .NET General | |||
| Re: Remove XML element from a node | PowerShell | |||
| XML node passed to function | PowerShell | |||
| Removing an XML node | .NET General | |||
| Counting a particular node in a XML file | PowerShell | |||