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 Load-Form | |
{ | |
$Form.Controls.Add($TBComputerName) | |
$Form.Controls.Add($GBComputerName) | |
$Form.Controls.Add($ButtonOK) | |
$Form.Add_Shown({$Form.Activate()}) | |
[void] $Form.ShowDialog() | |
} | |
Function Set-OSDComputerName |
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 Set-IdentityManagementGalAdPermission { | |
<# | |
.Synopsis | |
A function that sets the permissions in Active Directory (AD) required for Microsoft Identity Manager (MIM) to perform Global Address List (GAL) sync operations. | |
.Description | |
This function sets the AD permissions required for MIM to perform GALSync operations. It does this by adding the required new permissions for the GALSync group to at least three places in the AD. | |
The GALSync group requires permissions to AD for the following: |
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 Test-MsolConnection { | |
<# | |
.Synopsis | |
A function that tests the Microsoft Online connection. | |
.Example | |
Test-MsolConnection | |
Tests to see if the Microsoft Online connection is available. |
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 Connect-ExchangeOnline { | |
<# | |
.Synopsis | |
A function that connects to the Exchange online system. | |
.Parameter Credential | |
A credential object with rights to connect to the Exchange server. This parameter is mandatory. | |
.Parameter AllowClobber | |
Boolean value of whether the imported session will clobber existing commands. Defaults to 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 TestMsolConnection { | |
<# | |
.Synopsis | |
A function that tests the Microsoft Online connection. | |
.Description | |
A function that tests the Microsoft Online connection. | |
.Example | |
TestMsolConnection |
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
Register-ArgumentCompleter -CommandName Set-MsolUser -ParameterName UsageLocation -ScriptBlock { | |
Param( | |
$commandName, #The command calling this argument completer. | |
$parameterName, #The parameter currently active for the argument completer. | |
$currentContent, #The current data in the prompt for the parameter specified above. | |
$commandAst, #The full AST for the current command. | |
$fakeBoundParameters #A hashtable of the current parameters on the prompt. | |
) | |
$UsageLocations = @{ |
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 -RunAsAdministrator | |
[CmdletBinding( | |
SupportsShouldProcess = $True, | |
ConfirmImpact = 'High' | |
)] | |
Param( | |
[parameter( | |
Mandatory = $true | |
)] | |
[ValidateScript({ |
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
PUSHD %~dp0 | |
SET _upd=hpqFlash.exe | |
SET bios=%1 | |
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" ( | |
SET _upd=hpqFlash64.exe | |
) | |
"%_upd%" -pBIOSPW.bin -f%bios% -s |
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
PUSHD %~dp0 | |
SET _upd=HPBIOSUPDREC.exe | |
SET bios=%1 | |
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" ( | |
SET _upd=HPBIOSUPDREC64.exe | |
) | |
"%_upd%" -pBIOSPW.bin -f%bios% -s -r |
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
PUSHD %~dp0 | |
SET _bcu=BiosConfigUtility.exe | |
SET config=%1 | |
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" ( | |
SET _bcu=BiosConfigUtility64.exe | |
) | |
"%_bcu%" /nspwdfile:"%~dp0BIOSPW.bin" /set:"%~dp0%config%" /l |
NewerOlder