Solved

A script that Changes Local policy settings

Posted on 2009-07-15
4
448 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
  • 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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

930 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now