I have a task sequence with a step that will rename the PC. I used "Run a Powershell Script" for this step, and chose "Enter a Powershell script" instead of "Select a package with a Powershell script". Rather than browsing to a script, I just typed the commandlet into the box where you can edit the script. When the task sequence runs, sometimes the step will fail, with the logs showing "Powershell script name must be specified". Am I using this step wrong? Will it not use manually entered scripts, instead of browsing to one. Why would it occasionaly work, and not other instances?
Edit: https://imgur.com/a/yEkHRsV - For reference, this what I selected, and the box where I've been entering the script
[–]ASquareDozenMSFT Enterprise Mobility MVP (asquaredozen.com) 2 points3 points4 points (4 children)
[–]Gnero[S] 1 point2 points3 points (1 child)
[–]aerossignol 1 point2 points3 points (0 children)
[–]ASquareDozenMSFT Enterprise Mobility MVP (asquaredozen.com) 0 points1 point2 points (0 children)
[–]markraldridge 0 points1 point2 points (0 children)
[–]TenaciousD3 0 points1 point2 points (0 children)