Jump to content


  • 0
clush

Running Powershell Script in Task Sequence Error

Question

Hi,

 

I am trying to run a powershell script in a task sequence where it takes the mac address and assigns a computer name from a text file. Everytime I run it i get a 0x80004005 error.

 

I have tried both running it as a powershell script as well as run a command line and get the same error. I did create a package of the script as not a program.

 

In the task sequence I pointed it at the package and the script name and I assigned it as bypass. I left the parameters section blank I am not sure if I should have added anything in here such as variables.

 

I have attached the code in a jpeg. Please keep in mind I am not a programmer and I am not sure what they mean by variables.

 

BTW: The was tested and it runs. Only the last couple of lines couldn't be tested as it has to go into a task seq.

 

Thank you...

post-28974-0-21928500-1465914861.jpg

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.