Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,267 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using a deployment task sequence to call a Powershell script to install multiple certificates, but it is not installing them.
I am using the following in the Power Shell Script:
Import-Certificate -FilePath "%DeploymentRoot%\Scripts\certs\cert1.cer" -CertStoreLocation Cert:LocalMachine\My
Import-Certificate -FilePath "%DeploymentRoot%\Scripts\certs\cert2.cer" -CertStoreLocation Cert:LocalMachine\My
Import-Certificate -FilePath "%DeploymentRoot%\Scripts\certs\cert3.cer" -CertStoreLocation Cert:LocalMachine\My
```I tested changing to the full path and installs fine on the server.
I tested the following in the PS script, but doesn't seem to work eventhough if I run the same code while in the last stages of the imaging processs does work.
```powershell
Set-ExecutionPolicy Unrestricted
z:
cd Scripts\certs
Import-Certificate -FilePath "cert1.cer" -CertStoreLocation Cert:LocalMachine\My
```I searched the logs in folder C:\windows\temp\Deployment\Logs, but I don't see any filename for that Task Sequence. I did set the task to "Continue on Error".