Categories
blog howto windows

6to4 isatp tunnel problem windows VISTA & 7

The PC or laptop may appear to be very slow and CPU is at 100% most of the time. When you check in taskmanager (after selecting show processes from all users) 1 or more svchost.exe processes are hogging CPU. When you right click the svchost.exe and choose “go to service” you find oud that it is 1 of the following services:
– wudfsvc
– DcomLaunch
– PlugPLay

Open up a Command prompt (type cmd in the start – search field) and type in ipconfig to see if there a lot of tunnel adapters present. Normally you see only 1 or maximum 4 and then a local area network and perhaps a wireless adapter. If you have dozens of tunnel adapters, then this bug is effecting you.

Too many tunnel adapters in IPCONFIG
Too many tunnel adapters in IPCONFIG

To solve this execute the following:
Open up a Command prompt (CMD) but right click to run as administrator.
Type (without the quotes): netsh int isa set state disabled
Leave the command prompt open.
Now open up device manager, go to view and select “show hidden devices”.
In the device list, go to network adapters and disable the “Toredo tunneling interface” and the “6to4 adapter”.
To remove the large amount of tunnel adapters you can use this batch file, thanks to: Ryan Victory.
Remove tunnel adapters Batch file download link
You extract the content and run as administrator (right click) the 6to4remover.bat file from the folder that corresponds to you OS architecture (32 or 64 bit).
If you get a popup asking to accept license terms for devcon.exe, accept it. Maybe you then have to run as administrator it again to start. When it’s started it will remove all excess adapters.

Removing tunnels
Removing tunnels

After these actions are complete reboot your system. It should be back to normal.

Categories
blog howto network virtualization windows

Delete or show hidden no longer active or present network adapters Device Manager

Open a command prompt. Start: RUN -> CMD (OK)
At the prompt type:
set devmgr_show_nonpresent_devices=1
At the prompt type:
start devmgmt.msc
In the menu view, click on “Show hidden devices”.
Now go to network adapters and uninstall the ones that you were looking to uninstall, it will be greyed out.

Categories
blog howto windows

Enable Remote Desktop Remotely with PSEXEC

Download PSTOOLS from microsoft. Unzip to an easy to access location.
Open a CMD command prompt, navigate to the PSTOOLS location.
Execute:

psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0

Machinename should be replaced with the computername, ideally you already have admin rights to this PC, for example you run this as the domain administrator. Otherwise the have to supply credentials using -u and -p options.
If you still can’t connect this is most likely the windows firewall.
Execute:
psexec \\machinename netsh firewall set service remotedesktop enable
psexec \\machinename netsh firewall set service remoteadmin enable

Categories
blog howto windows

Uninstall Trend Micro Officescan without password

Uninstall Trendmicro officescan without knowing the password

Open Ofcscan.ini inside C:\Program Files\Trend Micro\OfficeScan Client
Change the value of the Uninstall_Pwd to !CRYPT!5237C1A1888FAFC830342D0AB1AD8410C995F3E7C1FBB9FE857C7B1FEBE9F84A93A1B9CEF52810DBA9649332838
Change the value of the Unload_Pwd to !CRYPT!5237C1A1888FAFC830342D0AB1AD8410C995F3E7C1FBB9FE857C7B1FEBE9F84A93A1B9CEF52810DBA9649332838
To Unload or uninstall the OfficeScan use novrius as the password.

thanks to: bpursley

Categories
blog howto server windows

EXCHANGE 2010: SAN Certifcate with mutiple DNS names (private windows CA)


New-ExchangeCertificate -FriendlyName "Exchange 2010 multiple DNS" -IncludeServerFQDN -DomainName mail.*****.***,autodiscover.******.***,computername.*****.local,computername -GenerateRequest -PrivateKeyExportable $true

Copy the full code you receive including the —BEGIN… and —END… lines.
Open the sertificate services web interface.
http://serverdc/certsrv
-Request a certificate -> Advanced certificate request -> Submit a Certificate request by using …
Paste the code you received in the textbox, on the template dropdown select Web Server.
Click Submit.
On the next page click on Download Certificate.
Save the file on disk somewhere.
Go to Exchange console (GUI) – server Configuration – Hub transport – Exchange certificates.
Right click on the pending request and choose “Complete pending request”.
Select the file you saved to disk and finish the wizard.
When finished right click on the now completed certificate and choose “Assign services”.
Assign all services (except Unified messaing), choose YES to All for overwrite.
Delete all other certificates no longer needed.

Test your OWA and see what certificate is now being used.

Reference: http://exchangeserverpro.com/how-to-issue-a-san-certificate-to-exchange-server-2010-from-a-private-certificate-authority

Categories
blog howto server windows

EXCHANGE 2007: Certifcate with mutiple DNS names

http://www.exchangeinbox.com/article.aspx?i=127

New-ExchangeCertificate -GenerateRequest -Path c:\install\mail_cert_request.csr -SubjectName "c=BE, o=******, ou=IT, cn=mail.*****.com" -DomainName: mail.******.com, autodiscover.*****.com, MAILSRV2, MAILSRV.*****.**, mail.****.**-KeySize 1024 -PrivateKeyExportable: $true
certreq.exe -submit -attrib "CertificateTemplate:WebServer" c:\install\MAIL_cert_request.csr

Choose the right CA, choose output folder. Open inside Issued certificates in Cert. MMC. Go to details. Click Copy to -> Complete chain, save as p7b file.

Import-ExchangeCertificate -Path C:\install\mail2.*****.com.p7b
Enable-ExchangeCertificate -Thumbprint 5B485A86***********60A04 -services IIS, POP, IMAP, SMTP
Remove-ExchangeCertificate -Thumbprint oldcertificatesthumbprint

Categories
blog howto windows

Windows 7 change product key and activate from command line

Open CMD as Administrator (elevated).
cd /d %systemroot%\system32
cscript slmgr.vbs /inpkey:XXXXX-YYYYY...
cscript slmgr.vbs /ato

Windows 10/2016/2019:

cd /d %systemroot%\system32
cscript slmgr.vbs /ipk XXXXX-YYYYY...

Good luck.

Categories
blog howto windows

Office 2010 command line activate or change product key

Cloned PC, changed office key. Got error with license information on restart office. Ativated through CMD and all was OK.
Open CMD as Administrator.
cd c:\Program Files (x86)\Microsoft Office\Office14
cscript ospp.vbs /act

If you want to change product key through command line it is like this:
cscript ospp.vbs /inpkey:XXXXX-YYYYY....

Categories
blog howto server windows

Errors with ntbackup caused by shadow copy.

Portions of FILENAME cannot be read. The backed up data is corrupt or incomplete. This file will not restore correctly.

I would receive this error numerous times in my ntbackup log.

In my case the C: drive would backup without any issue, but the D: drive would show these errors for every file in use.

My backup destination was a 2TB USB disk (G:) with a newer cluster size that is greater than 512. This is not really an issue for storing the backups. But somehow my shadow copy settings on the D: drive were using the G: backup drive as the place to store the shadow copies for the D: drive. And storing shadow copies on a drive with cluster size != 512 will fail. Note: on the G: drive itself shadow copies are disabled. Not needed for backup drive and will fail anyways because of above mentioned reason.

Categories
blog howto windows

Windows XP expired but activation screen won’t show

If you have repaired windows XP with an older CD, you could get the windows expired message, after completing setup, asking you to activate first. If you click YES, the activation screen doesn’t show and you get logged off (immediately or after 20 mins with only the background visible). If you choose NO you get logged off as well. Safe mode without networking allows you in, but activation can’t be done under safe mode. Quite the problem.

I found a solution in the newsgroups, I’ll copy it here for keeps sake:

I was having the same issue with Windows XP Media Center Edition. Installing SP2 over SP3 was not the problem for me, though I thought it was at the beginning. I had to change out a motherboard, and then had to reinstall windows. I was unable to enter safe mode or normal mode without the Activation popup, and then after clicking yes to activate, it would show my wallpaper and do nothing else. Have been searching for a few days for an answer with no luck. Found alot of information on wpa.dbl licence and registry fixes and people saying that it was due to having an OEM copy of XP. None of these were the case for me.
HERE’S THE FIX…
Download Internet Explorer 8 and Hotfix KB946501, burn them to disc
Hotfix KB946501 http://support.microsoft.com/default.aspx/kb/946501
Internet Explorer 8 http://www.microsoft.com/windows/internet-explorer/default.aspx
Start your PC and repeatedly hit F8 to get the safe mode menu.
Choose safe mode with command prompt only (if you are unable to enter safe mode otherwise)
When the command prompt appears type “explorer”
Should load the Windows GUI behind the cmd window
Install the KB946501 hotfix from your disc (reboot may be needed after this)
Install IE8
Reboot normally in to Windows, you should be able to activate as usual.
Apparently the activation Window is dependant upon IE.
Hope this works, let me know.

All credit goes to RowdyRocket, original topic can be found here.