Confirm The item at C:/test/scripts has children and the -recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (defaultis"Y"):
What if: Performing operation "Remove File" on Target "C:/scripts/imapi.vbs". What if: Performing operation "Remove File" on Target "C:/scripts/imapi2.vbs". What if: Performing operation "Remove File" on Target "C:/scripts/methods.vbs". What if: Performing operation "Remove File" on Target "C:/scripts/read-write.vbs ". What if: Performing operation "Remove File" on Target "C:/scripts test.vbs". What if: Performing operation "Remove File" on Target "C:/scripts/winsat.vbs".
除此之外,你可以删除其它的文件和文件夹。举个例子,任命一个show别名来获取这个清除命令:
Remove-Item alias:/show
做一个说明,如这个具体位置:alias:/ 。这是 Windows PowerShell 驱动的标准记号法。驱动字母,然后冒号,然后由一个"/" 。