hi i need some powershell commands to perform these tasks
1) Retrieving the list of all servers logged in by user
2) Deleting the corrupted profile folders and registries in all the servers
I assume you mean logged on to the guest OS running on a VM ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I assume you mean logged on to the guest OS running on a VM ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes i need to login and identify the all the list of all servers logged in by user and delete the corrupted profile folders and registries in all the servers
Ok, that means you have to interact with the OS running inside the VM.
There are many ways to do this;
Once you can get something running inside the guest OS, and I skip the WMI method for now, you can use some of the available PowerShell scripts available on the different blogs.
And if you want to use the WMI method, have a look at Use PowerShell to remove local profiles
I hope this will set you on the right path
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference