Hey spiceheads, having an issue with a script to deploy an agent on servers. Here's what I have so far:
Powershell
$list=get-content-Path"C:\scripts\agentmachines.txt"invoke-command-ComputerName$list-ScriptBlock{Start-Transcript-Path"c:\logs\log.txt"-Append$localip=((ipconfig|findstr[0-9].\.)[0]).Split()[-1]|out-stringStart-Process-filepath'\\path\to\install.exe'-ArgumentList"/s /v /qn argument1=1 argument2=$localip"$date=get-dateWrite-Host$dateStop-Transcript}
The $localip variable is for an argument
I'm getting the error : This command cannot be run due to the error: Logon failure: the user has not been granted the requested logon type at this computer.
I'm using a Domain admin account to launch the script. This Domain account successfully runs daily and weekly scripts against servers (I'm the new guy...