FriendsOfMDT / PSD

PowerShell Deployment
MIT License
525 stars 83 forks source link

"Run Command Line" as different user #161

Open jimbeam128 opened 4 months ago

jimbeam128 commented 4 months ago

Hello,

I don´t know to who I should contact, therefore I try here.

I try to run a command line task in a task sequence with supplied credentials.

This is the specification of the task (just for test): Command line: c:\windows\system32\cmd.exe /c ping 127.0.0.1 Start in: c:\windows\system32

Credentials: Username in Format \ Password: the correct password...

I already tried the following:

Run this task in PSD Task Sequence without credentials and there it works... Run this task in a classic (VBS) Task Sequence and there it works without an issue...

Here some output from the smsts.log

logextract.txt

By the way:

Is there any possibility to run a PSD task sequence in an installed windows - just like with MDT "vbs"? With vbs it was possible to run it like this cscript.exe \scripts\litetouch.vbs

Is there any equivalent with PSD?