forked from helmlingp/WS1UEM_Profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap home drive.xml
19 lines (18 loc) · 1.04 KB
/
map home drive.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<# Install Settings #>
<wap-provisioningdoc id=“c14e8e45-792c-4ec3-88e1-be121d8c33dc” name=“customprofile”>
<characteristic type=“com.airwatch.winrt.powershellcommand” uuid=“7957d046-7765-4422-9e39-6fd5eef38174">
<parm name=“PowershellCommand” value='$user=([adsisearcher]"samaccountname=$env:username").FindOne().GetDirectoryEntry()
$user.HomeDrive
$user.HomeDirectory
New-PSDrive -Name $user.HomeDrive.Replace(':','') -Root $user.HomeDirectory -PSProvider FileSystem -Scope Global -Persist'/>
</characteristic>
</wap-provisioningdoc>
<# Remove Settings #>
<wap-provisioningdoc id=“c14e8e45-792c-4ec3-88e1-be121d8c33dc” name=“customprofile”>
<characteristic type=“com.airwatch.winrt.powershellcommand” uuid=“7957d046-7765-4422-9e39-6fd5eef38174">
<parm name=“PowershellCommand” value='$user=([adsisearcher]"samaccountname=$env:username").FindOne().GetDirectoryEntry()
$user.HomeDrive
$user.HomeDirectory
Remove-PSDrive -Name $user.HomeDrive.Replace(':','') -Confirm'/>
</characteristic>
</wap-provisioningdoc>