This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Imports all GPO exports from an input folder. | |
| .DESCRIPTION | |
| Imports all GPO exports from an input folder and allow for automatic linking to a given Organizational Unit. | |
| .EXAMPLE | |
| .\Import-ExportedPolicies.ps1 -GpoBackupFolder C:\Temp\GPO | |
| Imports all policies that where exported to C:\Temp | |
| .EXAMPLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Resolve-UWMShellFolder { | |
| [CmdletBinding()] | |
| param ( | |
| # Shell Folder Name | |
| [Parameter(Mandatory,ValueFromPipeline)] | |
| [string] | |
| $ShellFolderName | |
| ) | |
| process { | |
| $shellFolderArr = [Environment+SpecialFolder]::GetNames([Environment+SpecialFolder]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Add-NewACE | |
| { | |
| # Fügt einem Objekt eine gewünschte ACE hinzu | |
| param ( | |
| [System.IO.DirectoryInfo]$DirectoryItem, | |
| [String]$User, | |
| [System.Security.AccessControl.FileSystemRights]$AccessRule | |
| ) | |
| $aclObj = Get-Acl $DirectoryItem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Write-Log | |
| { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True)] | |
| [String]$LogFile, | |
| [Parameter(Mandatory=$False)] | |
| [switch]$HiddenLogFile, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [Parameter(Mandatory=$false)] | |
| $logPath = "C:\Code\CreateUser.txt", | |
| [Parameter(Mandatory=$false)] | |
| $csvPath = "C:\Code\ExampleUsers.csv", | |
| [Parameter(Mandatory=$false)] | |
| $homeRoot = "\\$env:computerName\home", | |
| [Parameter(Mandatory=$false)] | |
| $usvRoot = "\\$env:computerName\usv", | |
| [Parameter(Mandatory=$false)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [String]$GpoBackupFolder = "E:\Sources\Security Baseline\Windows-10-RS4-Security-Baseline-FINAL\GPOs", | |
| [String]$DomainName = "decline.lab", | |
| [String]$PilotOU = "OU=Security Baseline 1803,OU=Workstations,DC=decline,DC=lab" | |
| ) | |
| function Get-GpoNameFromReport { | |
| param ( | |
| [Parameter(Mandatory)] | |
| [String]$GpoReportPath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Refresh Kerberos Ticket for machine and update Group Policy | |
| .Description | |
| Refresh Kerberos Ticket for machine and update Group Policy. Group Policy Refresh can be controlled using Switch Parameter | |
| .Example | |
| PS> Refresh-ComputerKerberosTicket -SessionName "LocalSystem" -UpdateGroupPolicy | |
| Remote Kerberos Tickets for LocalSystem and refresh Group Policy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| This script adds branding information to the Windows Registry for OSD scenarios. | |
| .NOTES | |
| Name: Set-OSDBranding.ps1 | |
| AUTHOR: Cornelius Schuchardt, SoftEd Systems GmbH | |
| LASTEDIT: 21.08.2017 | |
| KEYWORDS: ConfigMgr, OSD, Branding, Registry | |
| #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [String]$SecretKey, | |
| [String]$CollectionId, | |
| [String]$ResourceName, | |
| [String]$WebServiceUrl | |
| ) | |
| # Connect to Web Service | |
| try { | |
| $URI = $WebServiceUrl |
OlderNewer