forked from ConfigMgrHydration/Setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNew-HYDConfigMgrConsoleFolderStructure.ps1
More file actions
31 lines (21 loc) · 1.08 KB
/
New-HYDConfigMgrConsoleFolderStructure.ps1
File metadata and controls
31 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<#
************************************************************************************************************************
Created: 2015-03-01
Version: 1.1
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or DeploymentArtist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploymentresearch.com
************************************************************************************************************************
#>
Import-Module $env:SMS_ADMIN_UI_PATH.Replace("\bin\i386","\bin\configurationmanager.psd1")
$SiteCode = Get-PSDrive -PSProvider CMSITE
Set-Location "$($SiteCode.Name):\"
# Create Folders in Device Collections
New-Item -Name 'Limiting Collections' -Path "$($SiteCode.Name):\DeviceCollection"
New-Item -Name 'OSD' -Path "$($SiteCode.Name):\DeviceCollection"
New-Item -Name 'Software' -Path "$($SiteCode.Name):\DeviceCollection"
New-Item -Name 'Software Updates' -Path "$($SiteCode.Name):\\DeviceCollection"
New-Item -Name 'Compliance Settings' -Path "$($SiteCode.Name):\DeviceCollection"