Running powershell Not-if statements

Hi Experts,

I am trying to run a few powershell “Not_if” statements and they don’t work
. WIndows works with any statement that would work on Windows command line
but not things that run through powershell( is what I have seen). Can you
tell me if you have experienced and solved this issue?

Thanks

Ranjan

i think, the not_if "" variety would take stuff that can be run in command
line, while the not_if{} variety will take pure ruby stuff that evaluates
into true or false, so you need to model your resource such that it can
be leveraged by either of these two form to make it idempotent.

regards
ranjib

On Mon, Jan 30, 2012 at 2:35 PM, Madhurranjan Mohaan <
maadhuuranjan.m@gmail.com> wrote:

Hi Experts,

I am trying to run a few powershell "Not_if" statements and they don't
work . WIndows works with any statement that would work on Windows command
line but not things that run through powershell( is what I have seen). Can
you tell me if you have experienced and solved this issue?

Thanks

Ranjan