Have your new Windows installed, but you want to customize the behavior of the OS.
Let’s say you don’t want the Metro style apps to open you pictures.
So just open your metro style start menu or press WIN+W and type default. You should see the “Default Programs” app.
Open it and edit your defaults.
In case you are wondering … Yes you could just get here through the control panel. I just find this way faster.
The new versions of Windows are out, and with them come a whole new set of little challenges.
So let’s start from the beginning.
You just installed your new OS and you get a DNS error when trying to activate it.
Well, here’s how you go about it.
Open a command line with Administrative privileges and type:
slmgr.vbs /ipk followed by your serial key. Press enter and there you have it. A brand new activated Windows.
Sometimes you’re installing a software and you get an error stating that you need to reboot before installing.
So far, so good, but, occasionally you get that error again after the reboot. In that case, follow this procedure:
- Open Regedit
- Find the key “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager”
- Rename the “PendingFileRenameOperations” value to “PendingFileRenameOperations2”
- Try again.
So you just installed you first Windows Server Core and you don’t really know what to do now.
Well, here’s some help. To configure the basics of your brand new server you can use the command sconfig. It will show you a nice Powershell menu to help you out.
Now you can configure the basic settings for your server without feeling lost.
Open gpedit.msc and go to:
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options -> Accounts: Guest account status: enabled
Then allow network access for anonymous logins.
Again, using gpedit.msc and go to:
Network Access: allow anonymous SID/Name translation: disabled
Network Access: Do not allow anonymous enumeration of SAM accounts: enabled
Network Access: Do not allow anonymous enumeration of SAM accounts and shares: disabled
Network Access: let everyone permissions apply to anonymous users: enabled
Network Access: restrict remote access to named pipes and shares: disabled
Finally, allow anonymous logon to the machine.
Open gpedit.msc and go to:
Computer Configuration -> Windows Settings -> Local Policies -> User Rights Assignment ->
Access this computer from the network: everyone, anonymous logon
You can deploy this policy locally or via Group Policy.
If you want, and I think you will, you can then limited access to the shares using the windows firewall and a custom IP/subnet list.
When you want to find out what port is that service running on there’s a nice command to help you.
It’s called netstat and it’s available on Windows and Linux.
Here’s a couple of usage examples:
- Find who’s connected to your port 25 (Usually SMTP Server).
- Windows: netstat -ano | findstr :25 | findstr ESTABLISHED
- Linux: netstat -ano | grep :25 | grep ESTABLISHED
- Find what port’s are listening.
- Windows: netstat -ano | findstr LISTENING
- Linux: netstat -ano | grep LISTENING
You can use multiple combinations of this command with regular expression filters to get what you need. This is a great tool to find what ports are being used and from where.
I’m sure this has happened before to many people. And I’m sure it will happen again.
For some reason, explorer blocks in your RDP session, and you want to open task manager, and you can’t do Ctrl + Alt+ Del because it will open the computers Task Manager menu and not the RDP session menu. So how do you get there? Simple. Microsoft has another keyboard shortcut for that. Just press Ctrl + Alt + End and that’s it.