Friday, 29 March 2019

Using split in powershell to get remove part of the filename

In order to change filenames in bulk using string you can use split switch to filter out first part of the file name.
For example, when I need to cut of "car" part of the file name, then I can use

get-childitem|%{$newname=$ -split ("car")|select -Last 1;Rename-Item $ -NewName $newname}

Friday, 19 October 2018

Cannot install Teams using .msi package

You probably want to install teams using GPO, and you actually Microsoft article about this:

On this website there are msi packages of Teams. Unfortunately, when you want to install Teams using one of them, you encounter a problem, because Teams not starting, even if you can see installed program in the Programs and Features list.

Problem: cannot use .msi package of Teams
Solution: change .msi package by adding ACCEPT_EULA=1 property using Super Orca application.

All you need to do is to add a row ACCEPT_EULA with value of 1.

After that you can save and use changed msi package with the GPO installation package.
NOTE: you need to use user part of GPO, not the computer one, cause "installation" is made in the appdata user folder.

Monday, 26 March 2018

HP Event notifier cannot start

You cannot install HP Event Notifier on the Windows Server (2012+)
First, you need to add SNMP Service feature to your server.
Then to be sure it runs correctly, add localhost to allowed senders for SNMP packets:

Next, install HP providers, for example from this link:
Then, run Event Notifier as an administrator:

After configuring, for sending test, run Test WBEM Events as an administrator.

If you encounter an error during sending test or tests are not sent do recipient, restart this service:
and the same with SNMP service

Thursday, 15 February 2018

Remote Desktop Services deployment does not exist

When you are on the server and want to list active session using Get-RDUserSession command, you can see an error telling you that your have no RDS installed (even on RDS session broker), like the one below:

Don't be fooled by this - it shows only because you don't have enough privileges. Just run Powershell session as an administrator and bam! You can see desired list.

BTW: My small advice here - if you see PS errors, but you're sure, that cmd-let should work, check it with elevated privileges.

Tuesday, 8 August 2017

Windows 10: my screen went black

In Windows 10 there are color filters feature controlled with shortcut.
If you mistakenly hit that Ctrl+Win+C, you will apply color filter, which default settings is Greyscale. Hit it again to turn it off.
That's it!

Saturday, 1 July 2017

2003: Cannot start server after cloning it - activation error

After cloning 2003 server, because of hardware change you can see information that you have to activate Windows.
Your system probably has no drivers installed, so you will not be able to connect to the network and activate it again.
The solution is to do workaround for the time of installing drivers.
This omits activation and let you install whatever you need before turning it back off.
1.Open your regedit RUN > REGEDIT
2.Find key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents
3.see the string OOBETimer
4.Double click.change all content with this one FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD
5.Right Click on WPAEvents(Regedit)and choose Permissions
6.Window will show up,click to System and check all of Deny Listbox
7.Restart Your PC

To complete your device settings, it's good to get rid of old hardware that is hidden now and cause problems.
Run command:
set devmgr_show_nonpresent_devices=1

Add Legacy driver to 2003 OS

Friday, 30 June 2017