Recently trying to install a Module in Powershell gallery on a PC , but came back with an error
Had a check and No Repos were listed
Installed the Default Repos again
loading...
loading...
Recently trying to install a Module in Powershell gallery on a PC , but came back with an error
Had a check and No Repos were listed
Installed the Default Repos again
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
Then
Update-AdmPwdADSchema
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>
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
Administering
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>
We need two VIBS for this :
The Utility
Software | System Management
HPE Smart Storage Administrator (HPE SSA) CLI for VMware 6.7
Download Page https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_875f40a825e449a685a827679f&swEnvOid=4196
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
4.15.6.0
Dec 20, 2019
This gives us our ssacli-4.15.6.0-6.7.0.vib
The Driver :
Driver | Storage Controller
* RECOMMENDED * HPE ProLiant Smart Array Controller Driver for VMware vSphere 6.7 (VIB file)
Fewer details
Download Page https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_76c5f8899aa8410e96f202eb82&swEnvOid=4196
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-4.15.6.0-6.7.0.vib
Run these commands once server rebooted
https://blog.ndk.name/manage-hpe-smart-array-in-vmware-esxi/
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
Was
[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
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
Next use IntuneWinAppUtil.exe to package the App Up
c:\TempPath\Intune-Win32-App-Packaging-Tool-master>IntuneWinAppUtil.exe
Please specify the source folder: “F:\Project2010\”
Please specify the setup file: setup.exe
Please specify the output folder: C:\TempPath\Project2010
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
Download files from here : https://www.microsoft.com/en-gb/download/details.aspx?id=35554 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
Recently 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!
How 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
Turns out using this
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
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! http://pastebin.com/SNzSP2Xw
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