Jump to content
Mrente413

Automate Power-shell Prompts

Recommended Posts

Hello all,

Im trying to write an automate script that will run the following power-shell script

md c:\\HWID
Set-Location c:\\HWID
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
Install-Script -Name Get-WindowsAutoPilotInfo
Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv

I was wondering what the best way of going about having the Prompts that appear when going through to have [y] or [a] scripted to be input to continue the power shell process

This would be running as admin on multiple machines, will i need to be adding something like /a or -Force to my scripts in Automate.

 

Any help would be appreciated as im fairly new to power shell 🙂

Edited by Mrente413

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...