Hi,
Is there a way to make a variaton of the following scripts to retreive the full name of the owner of a Windows share?
Lets say I would like to know who the owner of this folder is: ServerHiddenShare$User
Example script one works with local folders, but it's not able to look for a network share.
Example 1:
Dim $objSD
$varFolderName = "C:\temp\test"
$oWMIService = ObjGet("winmgmts:")
$oFolderSecuritySettings = $oWMIService.Get("Win32_LogicalFileSecuritySetting='" & $varFolder
See in Set Acl permissions UDF '?do=embed' frameborder='0' data-embedContent>> or
#include-once
#RequireAdmin
Opt("MustDeclareVars",1)
;;Global $aOle32 = DllCall("ole32.dll", "long", "OleInitialize", "PTR", 0)
If Not IsDeclared("arDllCall") Then Global Static $arDllCall
#Region ;**** Token Privileges ****
Global Const $hKernel32DLL = DllOpen("Kernel32.dll")
Global Const $hAdvapi32Dll = DllOpen("AdvApi32.dll")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;