PowerShell Vault

PowerShell scripts demonstrating some of the functionality of the language. also see: posts — 1,787 scripts — Access Lotus Notes Database with the current Notes credentials.ps1 Add-Decimal.ps1 Add-DomainUserToLocalAdministratorsGroup.ps1 Add-ExtendedFileProperties.ps1 Add-FirewallApplication.ps1 Add-FormatData.ps1 Add-FormatTableIndexParameter.ps1 Add-Hashtable.ps1 Add-ObjectCollector.ps1 Add-RelativePathCapture.ps1 Build-String1.ps1 Change-Extensions.ps1 Clear-CustomEventLog.ps1 Clear-Hashtable.ps1 Clear-Queue.ps1 Clear-Stack.ps1 Clear-Stopwatch.ps1 Clone-Hashtable.ps1 CloneXMLNode.ps1 Collect Processor Information.ps1 ColorCode Process Output.ps1 ColorCoded Service Status.ps1 Compare-DateTime.ps1 Compare-Double.ps1 Read More …

Azure – PowerShell – Update Device Registered User

In Azure, you have the ability to update the registered user of a device. This is how you do it using PowerShell.   Notes Get-AzureADUser Get-AzureADDevice Get-AzureADDeviceRegisteredOwner Add-AzureADDeviceRegisteredOwner Remove-AzureADDeviceRegisteredOwner Get-AzureADDeviceRegisteredOwner Substring method   Further Testing   tags: PowerShell, Azure registered user, change registered user in Azure Intune, MrNetTek

PowerShell – Adding Registry Keys for Group Policy

I created this for configuring GP using PowerShell in Intune. Just pass the relative GP reg settings using Add-RegPolicy: Test locally, Upload to Intune > Device configuration > PowerShell scripts, Assign Group. * Intune demos coming soon…   Notes Template Code   Group Policy Resources Group Policy Settings Reference Spreadsheet Windows 1809 Group Policy Settings Reference Read More …

PowerShell – v7.0.0 (RC 1)

Description PowerShell 7 is intended to become the replacement product for PowerShell Core 6.x products, as well as Windows PowerShell 5.1, which is the last supported Windows PowerShell version. PS7, once it’s officially released, will become the best tool in your scripting arsenal. more… Download PowerShell 7, RC 1 https://github.com/PowerShell/PowerShell/releases/download/v7.0.0-rc.1/PowerShell-7.0.0-rc.1-win-x64.zip   MSI   mirror PowerShell Command to Download & Install PS7 Read More …

Azure – Intune – Deploy Apple iTunes Package

Deploy Apple iTunes using Intune.   Steps Step 1 – Create C:\intune\iTunes folder. Step 2 – Extract and copy iTunes setup files to the C:\intune\iTunes folder. Step 3 – Create _Intune.cmd in iTunes folder containing the following code: cd “%~dp0” msiexec.exe /i “AppleApplicationSupport.msi” /qn /norestart msiexec.exe /i “AppleApplicationSupport64.msi” /qn /norestart msiexec.exe /i “AppleMobileDeviceSupport64.msi” /qn /norestart msiexec.exe /i “Bonjour64.msi” /qn /norestart Read More …

Azure – Intune – Deploy Skype Package

Deploy Skype for Windows using Intune.   Steps Step 1 – Create C:\intune\Skype folder.   Step 2 – Copy Skype setup EXE to the C:\intune\Skype folder.   Step 3 – Create _Intune.cmd in Skype folder containing the following code: cd “%~dp0” taskkill /f /im Skype.exe timeout /t 2 start “” Skype.exe /VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH -ms timeout /t 60 Read More …

Intune – Deploy Acrobat Reader Package

Deploy Adobe Acrobat Reader using Intune.   Steps Step 1 – Create C:\intune\AcrobatReader folder.   Step 2 – Download Enterprise Acrobat Reader, and create custom transform. Copy contents of enterprise EXE to the C:\intune\AcrobatReader folder.   Step 3 – Create _Intune.cmd in AcrobatReader folder using the following code: cd “%~dp0” setup.exe ::add any other commands here   Step 4 – Create Read More …

Intune – Deploy Citrix Package

Deploy the Citrix Workspace App using Intune.   Steps Step 1 – Create C:\intune\Citrix folder.   Step 2 – Download Citrix setup to C:\intune\Citrix folder.   Step 3 – Create Intune.cmd in Citrix folder containing the following code: cd “%~dp0″ CitrixWorkspaceApp.exe /forceinstall /silent STORE0=”Store;https://mycitrix.umc.edu/Citrix/ummcWeb/discovery;Store” reg add “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\Dazzle” /v AllowAddStore /t REG_SZ /d A /f /reg:64 :: add any other commands Read More …

SCCM – Agent Repair – Uninstall

Repair – Fix Locally “C:\Windows\ccm\ccmrepair.exe” Remotely psexec \\RemoteComputerName -u administrator -p PASSWORD cmd.exe /c c:\windows\ccm\ccmrepair.exe   PowerShell     Removal – Uninstall   Locally “C:\Windows\ccmsetup\CCMSetup.exe” /uninstall or Use the CCMClean Tool  |  2  |  3 Remotely psexec \\RemoteComputerName -u administrator -p PASSWORD cmd.exe /c c:\windows\ccmsetup\ccmsetup.exe /uninstall   Things to Check for During Removal * remove these items stop CCMExec Read More …