-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi
I just tried using your script to wipe some extra profiles off some of my users laptops and initially i had to allow the PS Man through the firewall - when i run the command
Get-RSUserProfile -ComputerName "Laptop1"
i get the listing of the profiles, however when i run the command;
Remove-RSUserProfile -ComputerName "Laptop1" -UserName "User1"
I get the error;
Could not connect to trough WinRM, please check the connection and try again
so just wondering if you know what is missing? The first indication is that it isn't displaying the computer name. I see in the code that its doing this mostly through cim session - not sure if the Get-RSUserProfile uses that as well and if so why its not working for Remove-RSUserProfile.
Let me know if you have any ideas.
PS - small typo - the spelling should be '.. through WinRM'
thanks