I know how to read my current DCOM configuration:
$dcom = Get-WMIObject -Class Win32_DCOMApplicationSetting -Filter 'Description="MyComp123"'
It works fine. But how can I create and assign a new RunAs (Identity) user?
I know how to read my current DCOM configuration:
$dcom = Get-WMIObject -Class Win32_DCOMApplicationSetting -Filter 'Description="MyComp123"'
It works fine. But how can I create and assign a new RunAs (Identity) user?
See the two answers of this post. I think you can change the identity either via the AccessSecurityDescriptor
or the LaunchSecurityDescriptor
.
The identity can be changed via the registry:
# We set to value to empty -> in this case the DCOM entries identitiy is set to "Launching User"
Set-ItemProperty -path ("Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{0}" -f $talDComEntry.AppID) -name "RunAs" -Value ""