When I run my script I call the xcacls.exe program.
this sets permissions on files that I create.
When the program is ran, I always get:
The publisher could not be verified! Are you sure you want to run this sofware!
and of course I want to run it. But I want this to happen automatic without me hitting the run button.
Can anyone help me with this problam
any sample code this is what I have
If Not objFSO.FolderExists(sFolder) Then
objFSO.CreateFolder(sFolder)
cmd=Chr(34)&"\\server\perm\xcacls.exe"&Chr(34)
arg="\\server1\Home\" & sUser & " /G " & sUser &":F" & " " & " administrators:F" & " " & " user:F" & " " & " user2:F"
Set Sh = Wscript.CreateObject("Wscript.Shell")
Set Shw = Wscript.CreateObject("Wscript.Shell")
Sh.Run cmd&" "&arg,1,False
WScript.Sleep 500
Sh.SendKeys"Y~"
WScript.Sleep 500
Sh.SendKeys "{ENTER}"
Shw.AppActivate "Open File - Security Warning"
WScript.Sleep 300
Shw.SendKeys "{ENTER}"
this sets permissions on files that I create.
When the program is ran, I always get:
The publisher could not be verified! Are you sure you want to run this sofware!
and of course I want to run it. But I want this to happen automatic without me hitting the run button.
Can anyone help me with this problam
any sample code this is what I have
If Not objFSO.FolderExists(sFolder) Then
objFSO.CreateFolder(sFolder)
cmd=Chr(34)&"\\server\perm\xcacls.exe"&Chr(34)
arg="\\server1\Home\" & sUser & " /G " & sUser &":F" & " " & " administrators:F" & " " & " user:F" & " " & " user2:F"
Set Sh = Wscript.CreateObject("Wscript.Shell")
Set Shw = Wscript.CreateObject("Wscript.Shell")
Sh.Run cmd&" "&arg,1,False
WScript.Sleep 500
Sh.SendKeys"Y~"
WScript.Sleep 500
Sh.SendKeys "{ENTER}"
Shw.AppActivate "Open File - Security Warning"
WScript.Sleep 300
Shw.SendKeys "{ENTER}"