Start-Job -scriptblock


  • Hi,

    I am trying to create a ps1 file that would have the Start-Job command which would run a stsadm command at the background. In this stsadm command am trying to de-activate a feature. Hence I need to pass arguments to the stsadm.exe file but not been successful.

    This is the way am calling

    Start-Job -scriptblock {'stsadm.exe'} -ArgumentList "-o deactivatefeature <<GUID>>......."

    I think am making a mistake in passing the arguments. Please help.

    2012年2月20日 上午 09:25