Archive

Posts Tagged ‘Windows’

Windows port forwarding

November 3rd, 2020 No comments

I didn’t know that it’s possible in Windows TCP/IP stack make port forwarding. I knew it’s possible in Linux using iptables. In windows we have powerful tool called netsh.

Let’s have a example. Some service is listening on port TCP/10000. If I want to make this service listen on other port than TCP/10000 and there is no configuration to change I will use netsh to make it happen. Let’s look at listening ports on TCP/10000 and TCP/20000:

netstat before netsh

We can see there is no port listening on TCP/20000. Let’s make a magic and run command:

netsh interface portproxy add v4tov4 listenport=20000 listenaddress=0.0.0.0 connectport=10000 connectaddress=192.168.100.118

You cannot use loopback or 0.0.0.0 in connectaddress parameter. You can even use remote server IP address in connectaddress parameter.

Let’s look at netstat commands:

netstat after netsh

If your command doesn’t work, please, check if service called IP Helper is Running.

To see all configuration of portproxy settings just run following command:

netsh interface portproxy dump

netsh interface portproxy dump

To delete rule just run following command:

netsh interface portproxy delete v4tov4 listenport=20000 listenaddress=0.0.0.0

And that’s all folks,

Windows update restart problem

November 3rd, 2020 No comments

Once upon the time I had problem with Windows Update. All updates got downloaded and installed. When user click on button Restart Windows got error 0x80070005.

After couple minutes of debugging with Process Monitor I found out that process called explorer.exe had problem with accessing directory C:\Windows\System32\Tasks. That means that if you click on button Restart in Windows Update, Windows doesn’t just restart system. It creates Scheduled Task to reboot. Weird, but it does it this way.

So I have created GPO with security settings for directory C:\Windows\System32\Tasks and allow BUILTIN\Users have Modify rights to this directory.

And that’s the way we make it 🙂

Storage Explorer

August 27th, 2014 No comments

Hello folks

Today I found one really nice utility at Windows Server 2008 R2 and up. It’s called Storage Explorer. It’s MMC snap-in which enables you to see what your fiber optic cards (HBAs) on fiber optic fabrics.

You can see information about your HBAs:

Storage Explorer

This utility somehow connected into fibre optic switch and listed its ports and WWNs connected to it:

Storage Explorer

And also found some information about optical switch (for example management IP address):

Storage Explorer

I know this tool is not as powerfull as Brocade SANHealth, but it’s bettern than nothing 🙂

That’s all folks for today,

Quickie: Right click using keyboard

April 29th, 2014 No comments

In my class today we needed to do right-click in Windows using keyboard. I just found out that Shift + F10 simulates right-click 🙂

That’s all for today,

Prezentácia BranchCache

February 19th, 2013 No comments

ShowIT-BrachCache_Zilinec

Ak by ste mali nejaké otázky, sem s nimi.

 

Categories: Windows Tags: , ,

Maximum Validity For Certificates

February 19th, 2013 No comments

You can configure expiration period for Certification Template. By default there are default maximum validation periods set to:

  • One year for Stand-alone Certification Authority
  • Two years for Enterprise Certification Authority

This means you have Certification Template set its validity for example for 10 years, but you can enroll certificates with validity 1 or 2 years (Stand-alone / Enterprise Certification Authority).

This can be changed via registry keys described in KB254632.

Thank you for my colleague Róbert Švec.

Windows 2012 Data Deduplication

September 4th, 2012 No comments

Today is a day when Windows Server 2012 was released and it’s available for download. First new feature I wanted to test is Data Deduplication.

Theory

Data Deduplication in Windows Server 2012 is performed as background job, which runs by default every hour. This process runs when server is idle and it doesn’t eat all server’s free resources. One job can run per one volume. It can deduplicate/check 100GB/hour. It does deduplication of variable-sized chunks (32-128KB) of files. Nice picture is on the bottom of this page. By default it deduplicates files which were not accessed for more than 5 days. It doesn’t deduplicate following file types: aac, aif, aiff, asf, asx, au, avi, flac, jpeg, m3u, mid, midi, mov, mp1, mp2, mp3, mp4, mpa, mpe, mpeg, mpeg2, mpeg3, mpg, ogg, qt, qtw, ram, rm, rmi, rmvb, snd, swf, vob, wav, wax, wma, wmv, wvx, accdb, accde, accdr, accdt, docm, docx, dotm, dotx, pptm, potm, potx, ppam, ppsx, pptx, sldx, sldm, thmx, xlsx, xlsm, xltx, xltm, xlsb, xlam, xll, ace, arc, arj, bhx, b2, cab, gz, gzip, hpk, hqx, jar, lha, lzh, lzx, pak, pit, rar, sea, sit, sqz, tgz, uu, uue, z, zip, zoo.

Let’s play

This feature is not enabled by default. You need to enable it by wizard Add Roles and Features:

Adding Data Deduplication feature

Adding Data Deduplication feature

When this is done you can use all Data Deduplication Powershell Cmdlets. To use these cmdlets you need to run Powershell as Administrator :-).

Microsoft engineers gave us one tool DDPEVAL.exe which can do little check data on our drives and tell us expected deduplication savings. You can copy utility DDPEVAL.exe to other system and run it to check deduplication expected ratio before even trying deduplication.

Read more…

Quickie: New Windows Server 2012 copy status

September 4th, 2012 No comments

Today I installed final version of Windows Server 2012 and I noticed new copy window which looks very nice:

 

New Windows Server 2012 copy window

New Windows Server 2012 copy window

 

I hope Metro look have more than that 🙂

 

Categories: Quickie, Windows Tags: , , , ,

Quickie: How to connect to projector over the network

August 27th, 2012 No comments

Once upon the time I was at one campus and I wanted to do presentation. When I they gave me IP address of projector I wanted to use, I started to wonder how to connect to it 🙂 Now I know, Windows 7 has utility to do so. It’s called netproj.exe. You run it, enter IP/host name, password and you are connected. Really nice to know 🙂

Categories: Windows Tags: , , ,

Quickie: Display detailed activation and license status

August 6th, 2012 No comments

Sometimes you need to find out if your windows is activated and quickes way to do so is to run command:

slmgr /dli

This command can also do

  • /ipk <Product Key> – Install product key (replaces existing one)
  • /ato [Activation ID] – Activate Windows
  • /dli – Display license information
  • /dlv – Display detailed license information
  • /xpr – Expiration date for current license state
  • …AND MANY MORE

For full help use slmgr /?.