Short info for myself: how to install specific extension:
Tuesday, May 18, 2021
Installing AzurePolicyforWindows extension
Saturday, May 15, 2021
How to update user properties with trusted domains
Goal for this exercise is to setup a two domain contoso.local and foo.local and manage users in domain contoso using some user in domain foo.local.
First goal is to setup both domains with trust between them, there are plenty of solutions for this on internet.
Overall outcome is:
I will use user foo\vagrant to update manager property of user contoso\user.
Now another user manager:
update manager property:
Property Manager is updated.
Wednesday, May 12, 2021
How to load and execute DLL from Powershell.
Compile using Visual Studio Community following code:
Execution in Powershell:
Thursday, May 6, 2021
Configuring certificate autoenrollment:
New-Item -path HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\ -name AutoEnrollment
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\AutoEnrollment\ -Name AEPolicy -Value 7
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\AutoEnrollment\ -Name OfflineExpirationPercent -Value 10
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\AutoEnrollment\ -Name OfflineExpirationStoreNames -Value MY
Binding certificate to web size that already has a binding:
Adjust your cert thumbprint
Import-Module WebAdministration
#check validity
Get-Item Cert:\LocalMachine\My\7FCF3A69C4E62637677953CB61F27D669154C6B5 | fl
#set bindings
dir cert:\localmachine\my\7FCF3A69C4E62637677953CB61F27D669154C6B5 | Set-Item IIS:\SslBindings\0.0.0.0!443