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