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
AppDiscovery.log Detects installed Application Deployment Types and if deployed Deployment Types are not installed, this log file will show you why (only for the new style ConfigMgr Applications) | |
AppEnforce.log will show you the actual command-line executed and the resulting exit code for each Deployment Type (only for the new style ConfigMgr Applications) | |
AppIntentEval.log evaluates each Deployment Type’s dependencies and policies (only for the new style ConfigMgr Applications) | |
AssetAdvisor.log inventories all installed software (not 100% sure) | |
CAS.log Content access service, discovers DPs, download sources and maintains local cache | |
CCM32BitLauncher.log logs all command-lines for executed packages (old style ConfigMgr) |
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
#region get Script Directory | |
function Get-ScriptDirectory | |
{ | |
$Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
Split-Path $Invocation.MyCommand.Path | |
} | |
$scriptdir = Get-ScriptDirectory | |
#endregion |
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
#region get Script directory | |
function Get-ScriptDirectory | |
{ | |
$Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
Split-Path $Invocation.MyCommand.Path | |
} | |
$scriptdir = Get-ScriptDirectory | |
#endregion |
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
Function Get-IPAddressBoundary | |
{ | |
<# | |
.Synopsis | |
Gets which Boundary an IP Address belongs to. | |
.DESCRIPTION | |
The Function will iterate over the boundaries and get which particular Boundary that falls in. | |
.EXAMPLE | |
Get-IPAddressBoundary -SiteServer dexsccm -IPAddress 10.1.1.110 |
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
#Load the ConfigurationManager Module | |
Import-Module -Name "$(split-path $Env:SMS_ADMIN_UI_PATH)\ConfigurationManager.psd1" | |
#Change location to my CMSite Provider | |
Cd DEX: | |
#Load the Default Parameter Values for Get-WMIObject cmdlet | |
$PSDefaultParameterValues =@{"get-wmiobject:namespace"="Root\SMS\site_DEX";"get-WMIObject:computername"="DexSCCM"} | |
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
function Get-OffilnePrinter | |
{ | |
[CmdletBinding()] | |
[OutputType([int])] | |
Param | |
( | |
# Param1 help description | |
[Parameter(Mandatory=$true, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true, |
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
# Get the Settings file | |
Get-AzurePublishSettingsFile | |
#Import the file | |
Import-AzurePublishSettingsFile -PublishSettingsFile "C:\Temp\Visual Studio Ultimate with MSDN-7-19-2014-credentials.publishsettings" | |
#Remove the Settings once imported | |
Remove-item "C:\Temp\Visual Studio Ultimate with MSDN-7-19-2014-credentials.publishsettings" |
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
Set-StrictMode -Version latest | |
function Get-PrinterInfo | |
{ | |
[CmdletBinding()] | |
[OutputType([int])] | |
Param | |
( | |
# Specify the ComputerName | |
[Parameter(Mandatory=$true, | |
ValueFromPipelineByPropertyName=$true, |
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
workflow New-TestVM | |
{ | |
param( | |
[parameter(Mandatory)] | |
[String] | |
$AzureSubscriptionName, | |
[parameter(Mandatory)] | |
[String] | |
$ServiceName, |
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
$objWord = New-Object -ComObject word.application | |
$objWord.Visible = $True | |
$objDoc = $objWord.Documents.Open("C:\temp\test.docx") | |
$FindText = "document" | |
foreach ($docrange in $objDoc.Words) | |
{ | |
if ($docrange.Text.Trim() -eq $FindText) |
OlderNewer