This file contains 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
<#PSScriptInfo | |
.VERSION 1.7 | |
.GUID b6ad1d8e-263a-46d6-882b-71592d6e166d | |
.AUTHOR Azure Automation Team | |
.COMPANYNAME Microsoft / ITON |
This file contains 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
select | |
SYS.ResourceID, | |
OPSYS.Caption0 [Operating System], | |
sys.Build01 [OS Version], | |
WSLN.Value Version, | |
CASE WSS.Branch | |
WHEN '0' THEN 'Current Branch' | |
WHEN '1' THEN 'Current Branch for Business' | |
WHEN '2' THEN 'Long Term Servicing Branch' |
This file contains 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
#requires -Modules PSParallel | |
param( | |
# Array of computer names to remote check. | |
[Parameter()] | |
[ValidateNotNullOrEmpty] | |
[string[]]$Computers | |
) | |
$WinRMResults = New-Object -TypeName System.Collections.ArrayList |
This file contains 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
# Update DP's for an Application (requires specific name) | |
Import-Module "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1" | |
$App = "" | |
Get-CMApplication -Name $App | Get-CMDeploymentType | ForEach-Object -Process { Update-CMDistributionPoint -ApplicationName $App -DeploymentTypeName $_.LocalizedDisplayName -WhatIf } |
This file contains 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 | |
Takes in a path and returns the groups with traverse rights on each folder. | |
.DESCRIPTION | |
The script takes in a path as a string. It then builds a list of paths to the specific path and checks | |
each of the directories for groups with read rights defined to "this folder only" and then returns an array | |
of groups with an added property for the folder path they exist on. | |
.PARAMETER Path | |
A string representing the path you would like to get traverse groups for. |