You are trying to bind SSL certificate ot a port number using the the following command: netsh http add sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}
Hopefully this is a start of something beautiful.
Had to restart 2 of my tanks as they went out of control.
There is not much to look at but I hope to keep the diary of changes.
So lets say you need to change registry permissions and give all domain users full rights to a specific key HKEY_LOCAL_MACHINESOFTWAREMy_App.
You can use Group Policy but also you can use a batch file. Batch file can be setup to run on system startup or you could push it with SCCM if you have it installed.
To change registry permissions you can use regini.exe and it should be on every Windows host but I think there is a better and easier tool(well at least to me) and it is called SetACL. This tool can be used to manage not only registry permission but also File Permissions, Auditing etc.
First download SetACL and from the download package extract command line version as this is what will be used in the script to c:temp. There are 2 versions 32bit and 64bit, choose the one you need. Continue reading Change registry permissions→
Here is my first Powershell problem. I’m not good in powershell as I don’t use it too often but ussually i find my way pretty quickly. Well except this time…
So here is my problem:
I have old Altiris Deployment server that I use for deploying server images. When I’m imaging 2008R2 servers I need to install server Roles and Features. Powershell here comes pretty handy as I only have to use Add-WindowsFeature command plus a list of Roles or Features that I want to add.
I created a file called powershell.ps1 that adds all the roles and features that I need plus does some configuration. I ran powershell -command powershell.ps1 on the test server to see if everything is installed and configured as expected. Everything went OK.
So next in Altiris I create a new job that copies a powershell.ps1 file and then runs it. Continue reading Powershell command would not run→
Here is one of the problems that took me some time to figure out.
I had to install Microsoft Windows SDK for Windows 7 and .NET Framework 4 on Server 2008 R2. But it would not install.
There are 2 ways to install it:
Web install using winsdk_web.exe a small too that download all the files during installation.
ISO imgae that has all required files already.
I’ve tired both methods and bot of them failed almost instantly with the following error message: A problem occured while installing selected Windows SDK components. Unknown property. Continue reading A problem occured while installing selected Windows SDK components. Unknown property.→
Recently I’ve wrote about certificate problem in WCF applications. Here is another one:
When starting WCF application the following error is logged Event ID: 0
Internal exception occured: System.Exception: No certificate was found in the cert store for user: comp_1WCF_AppUser
So first lets see what certificate is the application looking for. Locate the application files and open application config file with notepad.
Now search for serviceCertificate you should see the line like below: <serviceCertificate storeLocation=”LocalMachine” storeName=”My” x509FindType=”FindBySubjectName” findValue=”*.domain.local”/>
I had a task to find out what versions of PowerShell we have installed on the computers in the domain.
PowerShell version is stored in HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1PowerShellEngine
There is a a string called PowerShell version and the value of the string is the version of the PowerShell that is installed on the computer.
After looking around I came up with the following script:
You have a WCF application and trying to run it but it would not start.
In application event log you see Error event logged with Event ID 0: 2011-02-02 13:46:52 [(null)] [ApplicationName] [FATAL] – — Exception data associated with the Log entry —System.InvalidOperationException: Cannot load the X.509 certificate identity specified in the configuration. at System.ServiceModel.Description.ConfigLoader.LoadIdentity(IdentityElement element) at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName) at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address) at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName) at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory() at System.ServiceModel.EndpointTrait`1.CreateChannelFactory() at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait) at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef() at System.ServiceModel.ClientBase`1..ctor() Continue reading Cannot load the X.509 certificate identity specified in the configuration→
OK here we go again another server and another space issue.
Windows folder was taking 48GB which is a bit on the high side. So I was started cheking which file or folder is eating the space and found that c:windirwinsxs was the one. Now there are a lot of folders in there and almos all of them are needed. In c:windirwinsxsManifestCache you should see a file or two called something xxxxxxxxxxx_blobs.bin and this one in my case was taking 23GB. The good news is that you can get rid of it and here is how:
Stop trustedinstaller service
Take ownership of the xxxxxxxxxxx_blobs.bin file
Grant yourself full right to the file
Delete the file.
Start trustedinstaller service
As soon as you start the service the file will be recreated but it will be much smaller.