Wiki-Quellcode von Shared-PC Modus nachträglich entfernen
Version 1.1 von Michael Ecer am 2021/08/29 11:57
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | (% style="color:#000000" %)Hier die Kommandos, um den Shared-PC Modus nachträglich zu deaktivieren. | ||
2 | |||
3 | |||
4 | (% style="color:#000000" %)Hinweis: Muss in der PowerShell als SYSTEM-User ausgeführt werden | ||
5 | |||
6 | (% style="color:#000000" %)1. Cmd als Administrator öffnen | ||
7 | |||
8 | (% style="color:#000000" %)2. psexec -i -s powershell.exe | ||
9 | |||
10 | |||
11 | |||
12 | (% style="color:#000000" %)# Disable | ||
13 | |||
14 | (% class="box" %) | ||
15 | ((( | ||
16 | (% style="color:#000000" %)##$sharedPC = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SharedPC"## | ||
17 | ))) | ||
18 | |||
19 | (% class="box" %) | ||
20 | ((( | ||
21 | (% style="color:#000000" %)##$sharedPC.EnableSharedPCMode = $False## | ||
22 | ))) | ||
23 | |||
24 | (% class="box" %) | ||
25 | ((( | ||
26 | (% style="color:#000000" %)##$sharedPC.SetEduPolicies = $False## | ||
27 | ))) | ||
28 | |||
29 | (% class="box" %) | ||
30 | ((( | ||
31 | (% style="color:#000000" %)##$sharedPC.EnableAccountManager = $False## | ||
32 | ))) | ||
33 | |||
34 | (% class="box" %) | ||
35 | ((( | ||
36 | (% style="color:#000000" %)##$sharedPC.AccountModel = 2## | ||
37 | ))) | ||
38 | |||
39 | (% class="box" %) | ||
40 | ((( | ||
41 | (% style="color:#000000" %)##$sharedPC.DeletionPolicy = ""## | ||
42 | ))) | ||
43 | |||
44 | (% class="box" %) | ||
45 | ((( | ||
46 | (% style="color:#000000" %)##Set-CimInstance -CimInstance $sharedPC## | ||
47 | ))) |