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
<# | |
This script contains the code that was presented in the blog post: | |
SCSM PowerShell: Getting Started with Service Manager PowerShell | |
For more details on this and other SCSM PowerShell script see the series overview at http://bit.ly/SCSM-PS | |
#> | |
##################################################################################################### | |
# # |
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
# Use to Test AD Credentials | |
function Test-ADCredential { | |
[CmdletBinding()] | |
Param | |
( | |
[string]$UserName, | |
[string]$Password | |
) | |
if (!($UserName) -or !($Password)) { | |
Write-Warning 'Test-ADCredential: Please specify both user name and password' |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Sample Autounattend.xml for Windows 10 media. This has been tested on 1511, 1607, and 1709 - x64 architecture only | |
For more details visit my blog http://blogs.catapultsystems.com/mdowst/archive/2017/12/11/create-zero-touch-windows-10-iso/ --> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | |
<DiskConfiguration> | |
<Disk wcm:action="add"> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> |
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
<# This script contains all of the command shown in my blog post: Create Zero-Touch Windows 10 ISO | |
http://blogs.catapultsystems.com/mdowst/archive/2017/12/11/create-zero-touch-windows-10-iso/ | |
#> | |
$ISO = "E:\Windows.iso" | |
$FolderPath = "E:\Win10_ISO\" | |
################################### | |
# | |
# Prep the ISO Files |
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
# Remember, leave a key empty if there is no value. None will be a string, | |
# not a Python "NoneType" | |
client: | |
hosts: | |
- 127.0.0.1 | |
port: 9200 | |
url_prefix: | |
use_ssl: False | |
certificate: | |
client_cert: |
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
# Remember, leave a key empty if there is no value. None will be a string, | |
# not a Python "NoneType" | |
actions: | |
1: | |
action: close | |
description: close indices | |
options: | |
delete_aliases: False | |
timeout_override: | |
continue_if_exception: 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
Function Search-PSScripts{ | |
<# | |
.SYNOPSIS | |
Use to search the text inside PowerShell scripts for a particular string | |
.PARAMETER SearchString | |
The string to search for inside the script file | |
.PARAMETER Path | |
The folder path to search for PowerShell files in. Default to userprofile if not specified. |
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 Encode-LogAnalyticsQuery{ | |
<# | |
.SYNOPSIS | |
This function is used by the Write-LogAnalyticsURL Function to encode the query string for the URL. | |
.DESCRIPTION | |
This function outputs a compressed Base64 string based in the QueryString value passed to it. | |
.PARAMETER QueryString | |
The query you want to create a URL for. |
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 | |
Use to remove all or past deadlines from WSUS | |
.PARAMETER WsusServer | |
Name of the remote machine running WSUS server. Defaults to localhost. | |
.PARAMETER UseSecureConnection | |
If set to true, uses SSL instead of HTTP. |
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 Out-GridViewCode{ | |
<# | |
.SYNOPSIS | |
Sends output to an interactive table in a separate window. With extended support to display Out-GridView as main window when using VS Code | |
.DESCRIPTION | |
The Out-GridView cmdlet sends the output from a command to a grid view window where the output is displayed in an interactive table. However, when you use VS Code the window appears in the background. Running this wrapper will bring the window to the front. | |
Parameters remain the same as the orginal Out-GridView | |
OlderNewer