Kaseya Community

Script for turning off simple file sharing

  • Does anyone have a script that will turn off simple file sharing on windows XP sp2 machines?

    Thanks for your assistance!

    Legacy Forum Name: Script for turning off simple file sharing,
    Legacy Posted By Username: jrule@cforward.com
  • Here you go...

    Script Name: Disable Simple File Sharing
    Script Description: Disables simple file sharing on Windows XP via setting the registry key discussed in MSKB #290403.

    IF True
    THEN
    Set Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\ForceGuest
    Parameter 2 : 0
    Parameter 3 : REG_DWORD
    OS Type : 8
    Write Script Log Entry
    Parameter 1 : Simple file sharing has been disabled on #vAgentConfiguration.machName#.#vAgentConfiguration.groupName#. The PC is now rebooting.
    OS Type : 8
    Reboot
    OS Type : 8
    ELSE



    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: arobar
  • Do you really need to reboot for this to take effect?

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: Resistance2Fly
  • Ah, no, sorry. I had it doing the reboot step and then took it out (but obviously I didn't correct the script log text).

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: arobar