I
I
icetinte2015-07-17 15:02:58
Windows
icetinte, 2015-07-17 15:02:58

How to automatically create profile folders in Windows?

I start users with a script on the server. How can they automatically generate profiles for them before they first log in to the system?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
icetinte, 2015-07-17
@icetinte

Something like this
$credential = New-Object System.Management.Automation.PsCredential(".\testuser", (ConvertTo-SecureString "[email protected]" -AsPlainText -Force))
start-process whoami -Credential $credential -loaduserprofile - NoNewWindow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question