bonVoyage Posted January 3, 2018 Report post Posted January 3, 2018 I have a MDT Task Sequence that deploys Windows 10. I am trying to set the windows built in local administrator password during the OSD Task Sequence. To make this a bit complex I have an exe that I pass the computer name to, which generates a password. I want to take this and set it as the local admin password. I have tried to set it through PowerShell using the OSD TS Variable: $LocalAdminPass = & .\Password.exe $env:COMPUTERNAME | Out-String $TSEnv = New-Object -COMObject Microsoft.SMS.TSEnvironment $TSEnv.Value("OSDLocalAdminPassword") = "$LocalAdminPass" This does not work. Any suggestions? Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted January 3, 2018 Report post Posted January 3, 2018 did you see this bit ? Specifies the local administrator password. This value is ignored if the Randomly generate the local administrator password and disable the account on all supported platforms option is enabled. Quote Share this post Link to post Share on other sites More sharing options...