This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

running tasks (ie VBScript) prior to 'Protect Computers' rollout

Hiya,

I've tried to search the board for this, but not found anything.

Is there a way to run tasks before having the Sophos installed? For instance, I need to disable Simple File Sharing on machines before roll out, and since the site is remote (400 miles away) i can't run past every client.

I have a VBS that would do this for me, but I am not sure where this is to be configured.

If it is just a matter of prepping the environment even before kicking off Protect Computers, that'b be fine too, but I like to bundle tasks and automate as much as i can (also for new PC's that come on board)

Thanks!

:32119


This thread was automatically locked due to age.
Parents
  • Hi Christian,


    Assuming you're talking about scripting the disable of SFS:

    strComputer = "."
    
    Set StdOut = WScript.StdOut
    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
    
    strKeyPath = "SYSTEM\CurrentControlSet\control\lsa"
    
    strValueName = "forceguest"
    
    dwValue = 0
    
    oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
    
    MsgBox "SFS Turned off"
    
    Set StdOut = Nothing
    Set oReg = Nothing
    :32551
Reply
  • Hi Christian,


    Assuming you're talking about scripting the disable of SFS:

    strComputer = "."
    
    Set StdOut = WScript.StdOut
    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
    
    strKeyPath = "SYSTEM\CurrentControlSet\control\lsa"
    
    strValueName = "forceguest"
    
    dwValue = 0
    
    oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
    
    MsgBox "SFS Turned off"
    
    Set StdOut = Nothing
    Set oReg = Nothing
    :32551
Children
No Data