Skip to content

Instantly share code, notes, and snippets.

View DeploymentMX's full-sized avatar

Jesus Octavio Rodriguez de Santiago DeploymentMX

View GitHub Profile
@DeploymentMX
DeploymentMX / Agente Intel Endpoint Management Assistant
Last active July 28, 2020 16:32
Agente Intel Endpoint Management Assistant
Switch EMA Agent: EMAAgent.exe -fullinstall
********************************************
set-executionpolicy bypass
New-item -path C:\temp2 –type directory
$system = 'C:\windows\system32\'
$route = 'C:\temp2\'
{
"kind": "androidenterprise#managedConfiguration",
"productId": "app:com.microsoft.launcher",
"managedProperty": [
{
"key": "com.microsoft.launcher.Search.SearchBar.Placement",
"valueString": "Top"
},
{
"key": "com.microsoft.launcher.Search.SearchBar.Placement.UserChangeAllowed",
set-executionpolicy bypass
if (Test-Path "$($Env:Appdata)\Microsoft\Teams\Backgrounds\Uploads") {
#Remove-Item -path "$($Env:Appdata)\Microsoft\Teams\Backgrounds\Uploads\*.*"
New-item -path C:\temp –type directory
.\azcopy copy 'https://deploymentmx.blob.core.windows.net/token/azcopy.exe' 'C:\temp\'
.\azcopy copy 'https://deploymentmx.blob.core.windows.net/token/background.jpg' 'C:\temp\'
$route = 'C:\temp\'
#In colaboration with Damien Van R. Syst And Deploy and DeploymentMX
$Current_Folder = split-path $MyInvocation.MyCommand.Path
$SystemRoot = $env:SystemRoot
$Log_File = "C:\Windows\Debug\Install_CCM_Client.log"
Function Write_Log
{
param(
$Message_Type,
$Message
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<Manufacturer>Microsoft</Manufacturer>
<Model>Dell</Model>
<SupportAppURL>https://blogs.itpro.es/octaviordz</SupportAppURL>
<SupportHours>7:00a.m. a 9:00 p.m.</SupportHours>
<SupportURL>https://blogs.itpro.es/octaviordz</SupportURL>
$Network_Share_Folder = "\\dc1\AutopilotCSVs\"
$Folder = "C:\AutopilotCSVs"
$Exported_File = "C:\AutopilotCSVs\$env:computername.csv"
$Complete_User_Name = "deployment.mx\Administrator"
$Get_ExportHash_Status = $False
$Mapped_Drive_Status = $False
If(!(test-path $Folder))
{
Write-Host "
##########################################################################
# *** User State Migration Script *** #
# ====================================================================== #
# #
# Select a option bellow: #
# [1] Run Backup of User State (ScanState) #
# [2] Run Restore of User State (LoadState) #
# [3] Exit Script #
# #