I tried the following script on a Windows Server 2008 R2 to delete the User Profiles on a Windows 7 client machine.
PS C:\> get-content localcomputer-list.txt | get-userprofile | where {$_.LastUse 'lt (Get-Date).AddDays(-90)}} | remove-userprofile -whatif
It doesn't work.
How do I resolve this?
No comments:
Post a Comment