![]() ![]() Start-Process -filePath "$systemRoot\system32\icacls.exe" -ArgumentList "`"$systemRoot\Web\Screen`" /grant Administrators:(OI)(CI)F /T" -NoNewWindow -Wait Start-Process -filePath "$systemRoot\system32\takeown.exe" -ArgumentList "/F `"$systemRoot\Web\Screen`" /R /A /D Y" -NoNewWindow -Wait Remove-Item -Path "$programData\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z\*" -Force ![]() Start-Process -filePath "$systemRoot\system32\icacls.exe" -ArgumentList "`"$programData\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly`" /reset /T" -NoNewWindow -Wait Start-Process -filePath "$systemRoot\system32\icacls.exe" -ArgumentList "`"$programData\Microsoft\Windows\SystemData`" /grant Administrators:(OI)(CI)F /T" -NoNewWindow -Wait Start-Process -filePath "$systemRoot\system32\takeown.exe" -ArgumentList "/F `"$programData\Microsoft\Windows\SystemData`" /R /A /D Y" -NoNewWindow -Wait I apply the following during OSD as part of a script that generates "YOURIMAGEPATH" based on an enumerated folder path that contains about 70 source images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |