Posts Tagged ‘install’

Recently trying to install a Module in Powershell gallery on a PC , but came back with an error

PS C:\Windows\system32> Install-Module -Name AsBuiltReport
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'AsBuiltReport'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1772 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Had a check and No Repos were listed

PS C:\Windows\system32> Get-PSRepository | fl *
WARNING: Unable to find module repositories.

Installed the Default Repos again

PS C:\Windows\system32> Register-PSRepository -Default
PS C:\Windows\system32> Get-PSRepository | fl *

Name : PSGallery
SourceLocation :
Trusted : False
Registered : True
InstallationPolicy : Untrusted
PackageManagementProvider : NuGet
PublishLocation :
ScriptSourceLocation :
ScriptPublishLocation :
ProviderOptions : {}Y
GD Star Rating
GD Star Rating


Click here to Download the software


Install 32bit or 64bit depending on server , install ALL the Management Tools

Open Powershell as Administrator and with Domain Admin Writes and run

Import-module AdmPwd.PS  



Make sure the above says Sucess

In the same Powershell Window you need to declare the OU’s where the computers will live

Set-AdmPwdComputerSelfPermission -OrgUnit <name of the OU to delegate permissions>

Now you want to see who have access to look at the password in the OU

Find-AdmPwdExtendedrights -identity “OU NAME”

Add or remove permissions via : 

Set-AdmPwdReadPasswordPermission -OrgUnit <name of the OU to delegate permissions> -AllowedPrincipals <users or groups>

Group Policy

On the PC you installed the LAPS tool to ,  copy the following files : 

C:\Windows\PolicyDefinitions\AdmPwd.admx to ( ON a domain controller ) C:\Windows\SYSVOL\domain\Policies\PolicyDefinitions\

C:\Windows\PolicyDefinitions\en-US\AdmPwd.adml to ( ON a domain controller ) C:\Windows\SYSVOL\domain\Policies\PolicyDefinitions\en-US\AdmPwd.adml 

Now create a Group Policy and Apply to the computers you would like to have self managed local Administrator Password



How to find password using Gui

On the PC installed with LAPS , run  : C:\Program Files\LAPS\AdmPwd.UI.exe and enter the computer name to find the password

Use Powershell : 

Get-AdmPwdPassword -Computername "%COMPUTERNAME%"

To reset password Immediately :

 Reset-AdmPwdPassword -ComputerName <computername>


GD Star Rating
GD Star Rating

We need two VIBS for this : 

The Utility

Software | System Management
HPE Smart Storage Administrator (HPE SSA) CLI for VMware 6.7

Download Page
Description The HPE Smart Storage Administrator CLI is a commandline-based disk configuration program for Smart Array Controllers and RAID Array Controllers.
Severity Optional
Operating Environments VMware vSphere 6.7
Dec 20, 2019

This gives us our ssacli-


The Driver : 

Driver | Storage Controller
* RECOMMENDED * HPE ProLiant Smart Array Controller Driver for VMware vSphere 6.7 (VIB file)
Fewer details
Download Page
Description This VIB file is used to update the HPE ProLiant Smart Array driver on an existing VMware vSphere 6.7 installation. VIB file version must be higher than the driver version already installed.
Severity Recommended
Operating Environments VMware vSphere 6.7


This gives us our  nhpsa-2.0.44-1OEM.670.0.0.8169922.x86_64.vib


Install these vibs ( Upload them to a datastore ) 


esxcli software vib install -v /vmfs/volumes/%DatastoreID%/nhpsa-2.0.30-1OEM.670.0.0.7535516.x86_64.vib
esxcli software vib install -v /vmfs/volumes/%DatastoreID%/ssacli-

Run these commands once server rebooted
GD Star Rating
GD Star Rating

Recently trying to install Exchange 2016 CU 15 , the setup stopped for 1 hour at 

8 of 17 Languages

The last line in C:\ExchangeSetupLogs\ExchangeSetup.log


 [1] Finished updating performance counter strings

If you see this in your environment, just wait! This process took 4 hours in my environment in the end


GD Star Rating
GD Star Rating

Extract the ISO to a folder and run from the root folder

setup.exe /admin

to open this

Go through all the options especially above for the CD Key information and accepting License and Display Level None

Once this is done , Save this as an MSP file with any name in the UPDATES folder of the CD ( The installer runs all the MSP’s in here ) 


Next create a config.xml file in the same directory as setup.exe with the below config

<Configuration Product="PrjPror">
<!-- <Display Level="full" CompletionNotice="yes" SuppressModal="no" AcceptEula="no" /> -->
<!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Project Professional Setup(*).txt" /> -->
<!-- <USERNAME Value="Customer" /> -->
<!-- <COMPANYNAME Value="MyCompany" /> -->
<!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> -->
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <LIS SOURCELIST="\\server1\share\Office;\\server2\share\Office" /> -->
<!-- <DistributionPoint Location="\\server\share\Office" /> -->
<!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
<!-- <Setting Id="SETUP_REBOOT" Value="IfNeeded" /> -->
<!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
<Display Level="None" CompletionNotice="No" SuppressModal="No" AcceptEula="Yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
< /Configuration>


Next use IntuneWinAppUtil.exe to package the App Up

Please specify the source folder: “F:\Project2010\”
Please specify the setup file: setup.exe
Please specify the output folder: C:\TempPath\Project2010


Intune Settings

Install Command : setup.exe /config config.xml

Unintall Command : Setup.exe /uninstall 90140000-00B4-0409-0000-0000000FF1CE

Detection Rule  ( Check File ) : C:\Program Files (x86)\Microsoft Office\Office14\WINPROJ.EXE

GD Star Rating
GD Star Rating

Download files from here : for your right 64bit or 32bit

Extract the files to a new temp directory, this will create 3 directories and a spreadsheet file (ADM, Admin, ADMX, Office2013GroupPolicyAndOCTSettings.xls)

Now create the directory PolicyDefinitions under: \\your_domain_controller\SYSVOL\your_domain_name\Policies\

It’s easy to do this from your domain controller or just UNC to your sysvol share off your domain controller

Copy all the files that were unzipped in the temp ADMX directory to the new PolicyDefinitions directory you created.

Restart GPMC and either edit or create a new group policy

When the Group Policy Management Editor window comes up, you should see new templates under Administrative Templates.

The folder should state: Administrative Templates: Policy Definitions (ADMX) Retrieved from the Central Store

GD Star Rating
GD Star Rating

fsfsdRecently on trying to install the ScreenPresso Commerical MSI the following error message showed up when trying to install

The system administrator has set policies to prevent this installation

Removing restrictions we had setup for installations we still had the issue. We then tried on a new machine not joined to the domain and it still had the issue. Turns out the file had been compiled or downloaded incorrectly which produced this!

GD Star Rating
GD Star Rating

VSTOHow to uninstall vsto

“%CommonProgramFiles%\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe” /uninstall \\path\to\vsto\AddIn.vsto

How to silently install vsto

“%CommonProgramFiles%\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe” /install /silent \\path\to\vsto\AddIn.vsto

How to install via group policy

Bat Login Script

@echo off
REM Check for presence of vsto key first if not found run installer
reg query HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\DCCWord2010 /e >nul 2>nul || ("C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" /I "\\path\to\vsto\AddIn.vsto" /S)

Turns out using this




vbs file via run registry  ( The advantage of using this is it runs once for each user however they will need to log in twice if they are logged off!)


 Turns out using this registy value HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce The user needs to be a local administrator…

So we had to put the value inside here : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run , and let the file remove it after running

Group Policy Registry key to add to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Link as my hosting doesn’t allow these file types!

vbs script

Dim commandDim WshShellcommand=chr(34) & "%CommonProgramFiles%\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" & chr(34) & " /Silent /Install " & chr(34) & "\\path\to\vsto\AddIn.vsto" & chr(34)
Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run command
'Delete the Run Key to make sure it runs once - we cannot put this in the run one registry due to users not being administrators
Const HKEY_CURRENT_USER = &H80000001
strComputer = "." Set objRegistry=GetObject("winmgmts:\\" & _  strComputer & "\root\default:StdRegProv") strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Run"strValueName = "ExternalPDatabases"
objRegistry.DeleteValue HKEY_CURRENT_USER, strKeyPath, strValueName


GD Star Rating
GD Star Rating