[wpkg-users] icacls command timing out when run by wpkg

Steve Kersley steve.kersley at keble.ox.ac.uk
Thu Oct 1 19:03:59 CEST 2015


When run by wpkg rather than on the command line, is it run as local system rather than an administrator?  If so, does the system account have permission to the problem files within the user account?

Steve.

-----Original Message-----
From: wpkg-users [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Thomas Wootten
Sent: 01 October 2015 15:08
To: wpkg-users at lists.wpkg.org
Subject: [wpkg-users] icacls command timing out when run by wpkg

I have a problem with an icacls command in one of my packages that times out when run by wpkg. When I run the command manually at the command prompt it has no problems - successfully processes many files, gives an error on a small number which are mainly hidden shortcuts, and returns an %errorlevel% of 0.

This is the full package. It's to set up a network share and ensure that a certain user can read all files and folders in it.

<package id="backup" name="Backup Configuration" revision="1" reboot="postponed" priority="10" >
		<check type="execute" path="%SOFTWARE%\check_backup.cmd" condition="exitcodeequalto" value="0" />
		<install cmd='net share Backup=C:\Users /grant:Admin,read /cache:no' />
		<install cmd='%COMSPEC% /C icacls C:\Users /t /c /remove:d Admin /grant Admin:r >NUL'/>
		<upgrade include="install" />
		<remove cmd='net share Backup /delete' /> </package>

I've tried it with and without redirecting the output to NUL, no difference. The target PCs are running Windows 7 Professional, 32-bit.

Thomas Wootten
IT Technician
East Birmingham Community Forum
-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV) http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
https://lists.wpkg.org/mailman/listinfo/wpkg-users


More information about the wpkg-users mailing list