Wiki-Quellcode von Shared-PC Modus nachträglich entfernen
Version 4.1 von Jonas Mayer am 2022/05/02 19:40
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | (% style="color:#000000" %)**__Wichtiger Hinweis:__** Die nachfolgenden Kommandos müssen in der PowerShell als (% style="color:#e74c3c" %)**SYSTEM-User**(% style="color:#000000" %) ausgeführt werden. |
![]() |
1.1 | 2 | |
3 | (% style="color:#000000" %)1. Cmd als Administrator öffnen | ||
4 | |||
![]() |
4.1 | 5 | (% style="color:#000000" %)2. Befehl {{code}}psexec -i -s powershell.exe{{/code}} ausführen, um interaktive Powershell-Konsole mit höchsten Privilegien zu starten. |
![]() |
1.1 | 6 | |
7 | |||
![]() |
4.1 | 8 | (% style="color:#000000" %)Nun die nachfolgenden Befehle absenden: |
9 | |||
![]() |
1.1 | 10 | (% class="box" %) |
11 | ((( | ||
![]() |
3.1 | 12 | (% style="color:#16a085" %)### Disable Shared PC Mode## |
13 | |||
![]() |
1.1 | 14 | (% style="color:#000000" %)##$sharedPC = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SharedPC"## |
15 | |||
16 | (% style="color:#000000" %)##$sharedPC.EnableSharedPCMode = $False## | ||
17 | |||
18 | (% style="color:#000000" %)##$sharedPC.SetEduPolicies = $False## | ||
19 | |||
20 | (% style="color:#000000" %)##$sharedPC.EnableAccountManager = $False## | ||
21 | |||
22 | (% style="color:#000000" %)##$sharedPC.AccountModel = 2## | ||
23 | |||
24 | (% style="color:#000000" %)##$sharedPC.DeletionPolicy = ""## | ||
25 | |||
26 | (% style="color:#000000" %)##Set-CimInstance -CimInstance $sharedPC## | ||
27 | ))) | ||
![]() |
3.1 | 28 | |
29 |