Use powershell to disable local Guest account on Windows Servers

Hello,

Can someone help me with the powershell script that will disable the local Guest account on Windows Servers?

Windows server 2008 / 2012 / 2016

Thanks!

Mark
LVL 1
mbudmanAsked:
Who is Participating?
 
mbudmanAuthor Commented:
Actually I did some research and the command I would like to execute is:


Disable-LocalUser -Name "Guest"

One line and quite simple
0
 
aravind ancheWindows/Vmware Commented:
0
 
PberSolutions ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- mbudman (https:#a42405801)
-- dj 3094 (https:#a42405696)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.