Quantcast
Channel: Microsoft Intune
Viewing all articles
Browse latest Browse all 1216

RunAs command to apply restrictions to a local account

$
0
0

I am trying to use a RunAs command that will be wrapped in an Intunewinapp that will apply restrictions to a local account. Currently I am able to create the account during the OOBE process of AutoPilot, then I need to log into that newly created local account so the registry hive is created. Then I immediately log out and log into the System account and that completes the deployment of the restrictions. I am trying to use a RunAs command to further automate this process, so it runs in System without having to log in and out. I will be deploying this on several thousand machines, hence the reason for the additional automation. Here is what I have so far, but it is not working -

runas /profile /user:domainname\systemaccount REG ADD "HKEY_USERS\Student\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoChangingLockScreen" /t...


Viewing all articles
Browse latest Browse all 1216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>