I have the script now. but have another requirement. I need to export (append) data to two csv files.
1. If the hostname is not found I need to append the value of $hostname to a csv file named "nohost.csv"
2. Also I would need to append the value of $hostname from which user are successfully...
I would like to delete a couple of local users (NOT domain users) from remote computers. May I know whether the following code would work?
Regarding the invoke command which one I should use?
Any help highly appreciated...
1. Remove-LocalUser -Name $username}
2. Invoke-Command -ComputerName...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.