?
Solved

A script that Changes Local policy settings

Posted on 2009-07-15
4
Medium Priority
?
456 Views
Last Modified: 2013-11-09
A script that Changes Local policy settings
I need to disjoin some computers from the Domain,
I did disjoin some, but noticed by default after they are disjoined I can not browse to them using \\Ipaddress\C$.
The issue was when they get disjoined from the domain to workgroup, the Settings in Local policy "Network access: Sharing and security model for local accounts" switches to "Guest only: Local users authenticate as Guest."

is there any script to run agains workstations that can reset this policy to "Classic: Local users authenticate as themselves." ???

Because when It's set to "Classic: Local users authenticate as themselves.", I can browse to the computer I can do other things too, lie rejoining it to the domain through a script from a remote machine.

Thanks
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 66

Expert Comment

by:johnb6767
ID: 24866740
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\" /v forceguest /t reg_dword /v 0x0
Try that one.....
0
 

Author Comment

by:jskfan
ID: 24910618
lhow am I gonna run it against remote computers.
If I use PSEXEC tool , I am not sure it's gonna work since the taget computer will need credentials
and if the policy is "Guest only: Local users authenticate as Guest." on the remote computer then it will not accept the credentials that I sued to run PSEXEC.
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 2000 total points
ID: 24911590
Using explicit credentials might...... Is the admin psw the same across the board?
psexec @C:\PCNames.txt -u Administrator -p P@$$W0rD reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\" /v forceguest /t reg_dword /v 0x0
Did it work on the local machine as a test?
0
 

Author Closing Comment

by:jskfan
ID: 31603759
I will try it sometime and see if it works..
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question