Powershell script to schedule daily task error
Don't think PowerShell recognises %computername%
. Have a look at environment variables here.
$env:USERNAME
, $env:USERDOMAIN
$env:COMPUTERNAME
look relevant to your task.
Don't think PowerShell recognises %computername%
. Have a look at environment variables here.
$env:USERNAME
, $env:USERDOMAIN
$env:COMPUTERNAME
look relevant to your task.