Gerd Ott | 1 Apr 2008 18:22
Picon
Favicon

Re: Ugly perl script to check if packages are installed on a set of workstations.

Hi,
Your report.pl is not ugly, it's pretty pretty!

Works fine for me after adjusting the locations, even if perl -W
(v5.8.8) is saying: "Using a hash as a reference is deprecated".

BTW. If I copy the statusfiles to a share using a wpkg-package like
http://wpkg.org/Viewing_software_installed_on_workstations , I always
get the status *before* the last execution of wpkg.js. Perhaps the
better way ist to define an additional action to execute after wpkg.js.

Greetings,
Gerd

Chris Crow schrieb:
> I was going to wait, and clean up this script, but I don't think I will
> ever come back to it.
> 
> This script needs to be copied to the root of the wpkg share, and it
> evaluates the following locations:
> 
> hosts/*.xml
> packages/*.xml
> profiles/*.xml
> status/*.xml (status is the directory where I copy the wpkg.xml files
> from all of the workstations)
> 
> When you run the script, it will evaluate the list of packages that
> should be installed with the packages that are install on each computer
> in the status directory. It then prints the differences. If the program
(Continue reading)

Stevester | 1 Apr 2008 22:21

Powershell and WPKG


Good Afternoon,

     Has anyone had success with using WPKG and powershell together?

Stevester 
--

-- 
View this message in context: http://www.nabble.com/Powershell-and-WPKG-tp16423429p16423429.html
Sent from the WPKG - Users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Stevester | 1 Apr 2008 22:31

WPKG is a great program: Want to apologize for earlier remarks


Good Afternoon Everyone,

     I wanted to apologize to whomever was offended by the comments i made
earlier about WPKG. I stated WPKG needs improvement, and it really doesn't
need any improvement. The creators of WPKG made a great piece of work.

Stevester
--

-- 
View this message in context: http://www.nabble.com/WPKG-is-a-great-program%3A-Want-to-apologize-for-earlier-remarks-tp16424046p16424046.html
Sent from the WPKG - Users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Tomasz Chmielewski | 1 Apr 2008 22:37
Favicon

Re: WPKG is a great program: Want to apologize for earlier remarks

Stevester schrieb:
> Good Afternoon Everyone,
> 
>      I wanted to apologize to whomever was offended by the comments i made
> earlier about WPKG. I stated WPKG needs improvement, and it really doesn't
> need any improvement. The creators of WPKG made a great piece of work.

This is *exactly* what we are thinking, too.

We were actually thinking of removing some selected features and 
introducing new bugs.

It's not decided yet, so stay tuned.

--

-- 
Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Tomasz Chmielewski | 1 Apr 2008 22:38
Favicon

Re: Powershell and WPKG

Stevester schrieb:
> Good Afternoon,
> 
>      Has anyone had success with using WPKG and powershell together?

What are you trying to achieve?

--

-- 
Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Steve Handy | 1 Apr 2008 22:42

Re: Powershell and WPKG

I am trying to see if WPKG can force a desktop to execute a powershell to perform certain functions such as
establishing local group policy.

-----Original Message-----
From: Tomasz Chmielewski [mailto:mangoo <at> wpkg.org]
Sent: Tuesday, April 01, 2008 3:38 PM
To: Steve Handy
Cc: wpkg-users <at> lists.wpkg.org
Subject: Re: [wpkg-users] Powershell and WPKG

Stevester schrieb:
> Good Afternoon,
>
>      Has anyone had success with using WPKG and powershell together?

What are you trying to achieve?

--

Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Rainer Meier | 1 Apr 2008 23:02
Favicon

Re: Powershell and WPKG

Hi Handy,

Even if you're probably going to ignore me...

Steve Handy wrote:
 > I am trying to see if WPKG can force a desktop to execute a 
powershell > to perform certain functions such as establishing local 
group policy.

If I understood this correctly you're trying to execute a local 
powershell to modify the local group policy.
Basically every local application can be executed by WPKG. Just create a 
new package (XML definition) which includes your commands within the 
install commands.

If you like to execute this script at each synchronization use the 
execute="always" flag within the package header. If not, then use the 
execute="once" flag.

I personally never used any powershell but I used commands like

'cmd /c xcopy...'

so you might use something like

'cmd /c powershell.exe ...'

within the install command to execute the local powershell.

HTH
(Continue reading)

Rainer Meier | 1 Apr 2008 23:02
Favicon

Re: Powershell and WPKG

Hi Steve,

Even if you're probably going to ignore me...

Steve Handy wrote:
 > I am trying to see if WPKG can force a desktop to execute a 
powershell > to perform certain functions such as establishing local 
group policy.

If I understood this correctly you're trying to execute a local 
powershell to modify the local group policy.
Basically every local application can be executed by WPKG. Just create a 
new package (XML definition) which includes your commands within the 
install commands.

If you like to execute this script at each synchronization use the 
execute="always" flag within the package header. If not, then use the 
execute="once" flag.

I personally never used any powershell but I used commands like

'cmd /c xcopy...'

so you might use something like

'cmd /c powershell.exe ...'

within the install command to execute the local powershell.

HTH
(Continue reading)

Tomasz Chmielewski | 1 Apr 2008 23:10
Favicon

Re: Powershell and WPKG

Steve Handy schrieb:
> I am trying to see if WPKG can force a desktop to execute a powershell to perform certain functions such as
establishing local group policy.

WPKG just executes commands you specify.

As long as these command work without user interaction when you start 
them as a privileged user, such as Administrator or SYSTEM, these 
commands should also work when started by WPKG.

It shouldn't matter if it's PowerShell, Perl, Python etc. (as long as 
the appropriate interpreter is installed).

--

-- 
Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
Steve Handy | 1 Apr 2008 23:14

Re: Powershell and WPKG

Thank you

-----Original Message-----
From: Tomasz Chmielewski [mailto:mangoo <at> wpkg.org]
Sent: Tuesday, April 01, 2008 4:11 PM
To: Steve Handy
Cc: wpkg-users <at> lists.wpkg.org
Subject: Re: [wpkg-users] Powershell and WPKG

Steve Handy schrieb:
> I am trying to see if WPKG can force a desktop to execute a powershell to perform certain functions such as
establishing local group policy.

WPKG just executes commands you specify.

As long as these command work without user interaction when you start
them as a privileged user, such as Administrator or SYSTEM, these
commands should also work when started by WPKG.

It shouldn't matter if it's PowerShell, Perl, Python etc. (as long as
the appropriate interpreter is installed).

--

Tomasz Chmielewski
http://wpkg.org
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials

Gmane