I need to deploy an application via PS & SCCM.
I read that this is the correct method, however it' errors out for me.
$scriptpath = $MyInvocation.MyCommand.Path $dir = Split-Path $scriptpath
Error is 'Split-Path : Cannot bind argument to parameter 'Path' because it is null.'
In scripts you have the built in automatic variable $PSScriptRoot pointing to the directory of the script.
You must be logged in to reply to this topic.