Jump to content

Recommended Posts

Posted

I'm trying to adapt my WPKG packages/scripts/bat files to work on Win7 machines but my automated methods are being halted by WIn7 asking for permissions.

 

Has anyone battled their way through this one - if so hints and tips welcome

 

for instance

        id="office2003"
       name="Microsoft Office 2003"
       revision="1"
       reboot="false"
       notify="false"
       priority="100">
       
       
       

 

Is asking for permission to run pro11.msi

can I wrap something around it to prevent this?

 

regards

Simon

Posted
Are you calling the WPKG script through a scheduled task or something like that? If you are using the WPKG client or WPKG-GP then everything should install with the system account so permissions should be an issue. I've just set up all our software through WPKG-GP and haven't had any permission issues.
Posted (edited)
Is it UAC that is asking for permission or is it a general file permission error? Also just in case you didn't know you can use a remote shell to execute commands on Windows 7 machines as well although by the look of it you will need to add your controlling computer to something called a trusted host list if you are working in a workgroup. Otherwise you just need to run winrm /quickconfig on all the machines once to set it up. Edited by ChrisH
Posted
If the script is running in the context of the user logging in it won't work properly. You'll need to elevate permissions on it and probably trigger it some other way.
Posted
You should run these as machine scripts rather than user logon scripts as they are admin level tasks and will work fine as a machine script.
Posted
You should run these as machine scripts rather than user logon scripts as they are admin level tasks and will work fine as a machine script.

Well, a couple of issues spring to mind, although installing office can be made to run silently, a lot of my others don't (quite a few use auto-it) and I use WPKG as a global program to run all other startup/logon actions such as presenting a dialog to choose your class and map a networked drive appropriately and setting/resetting wallpaper/screensaver etc.

 

What the sort of info I think I need is like the fact that in Win7, I need to create shortcuts to my bat files and set the "run as admin" box checked in advanced tab rather than just run the bat files directly.

 

Or does no-one use scripts nowadays :)

 

Si

Posted

We use scripts, but use WPKG purely for application deployment.

 

Any scripts we want applied to users, such as running bginfo to set the wallpaper, are defined within the "Logon Scripts" section of the GPO's that is applied to users.

Posted
You could set up two WPKG systems, one for running on workstation boot or as a background task for software installs, the other just for triggering user level stuff.
Posted
You could set up two WPKG systems, one for running on workstation boot or as a background task for software installs, the other just for triggering user level stuff.

 

But I'd still be hitting UAC I imagine (unless its just running msiexec that is/will fail on me )

 

Any scripts we want applied to users, such as running bginfo to set the wallpaper, are defined within the "Logon Scripts" section of the GPO's that is applied to users.

 

I don't run my network as a domain - I just use a W2k3 machines as a file/print/dhcp/dns server with a single client logon so WPKG has been my network Swiss Army Knife (I've used it on Win98 clients and I've still got one Win98 file server in operation (Its virtualised BTW )) :) )

 

 

Si

 

Si

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...