Turning on Windows Defender after manual deinstallation of Trend Micro

After a manual deinstallation of Trend Micro Worry Free Business Security 9.0,
Windows Defender did not automatically see that it could turn on its antivirus component.

Done as prescribed here: https://success.trendmicro.com/solution/1056867-manually-uninstalling-the-security-agent-sa-in-worry-free-business-security-wfbs#collapseOne

It took me a while to find this solution, so here is a repost.

Found at https://answers.microsoft.com/en-us/windows/forum/windows8_1-winapps/error-577-when-i-attempt-to-turn-on-windows/4bf7ef42-7a50-4fe3-88ce-9f13cc2ab0f5

  1. Press Win key + R. This will open Run.
  2. Type “regedit” and hit enter.
  3. Navigate to these keys:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender
  4. Change value of ‘DisableAntiSpyware’ and ‘DisableAntiVirus’ from ‘0’ to ‘1’.
  5. After changing the values go to ‘C:\Program Files\Windows Defender’ and open ‘MSASCui.exe’ file.

If the gui is already open, close it first and then relaunch using MSASCui.exe.

Hope this helps you!

Posted in Defender, Trend Micro, Windows | Comments Off on Turning on Windows Defender after manual deinstallation of Trend Micro

HP Accesspoints and blinking LEDS

Here’s a list of blinking leds on HP MSM accesspoints and HP 425 accesspoint.

I was tired of looking it up all the time, and since these are end-of-life I may well copy that information from HP to my site for my own purposes, and perhaps for yours too.

MSM Access Points

Controlled mode

Power light blinks every two seconds.
The AP is starting up.

Power light blinks once per second.
The AP is looking for an IP address, or building the list of VLANs on which to perform discovery. The management tool is available until discovery occurs.

Power, Ethernet, and Radio lights blink in sequence from left to right.
The AP has obtained an IP address and is attempting to discover a controller.

Power light is on. Ethernet and Radio lights blink alternately.
The AP has found a controller and is attempting to establish a secure management tunnel with it.

Power and Ethernet lights blink alternately and quickly. Radio lights are off.
The AP has received a discovery reply from two or more controllers with the same priority setting. It is unable to connect with either controller until the conflict is resolved.

Power and Radio lights blink slowly.
The AP is attempting to establish a local mesh link to a master node.

Power and Ethernet lights blink slowly.
The AP is attempting to establish wired connectivity.

All three blinking together rapidly
The AP is in TFTP mode. This is a disaster recovery mode, and not used in normal operation. To put AP back to normal mode restore it to factory default settings. If this does not restore normal operation, contact Technical Support.


Autonomous mode

Power Off
The AP has no power.

Power Blinking
The AP is starting up. If the Power light continues to blink after several minutes, it indicates that the software failed to load. Reset or power cycle the AP. If this condition persists, contact HP support.

Power On
The AP is fully operational.

Ethernet Off
The port is not connected or there is no activity.

Ethernet Blinking
The port is transmitting or receiving data.

Radio Blinking
The radio is transmitting or receiving data.

All three
Blinking together rapidly
The AP is in TFTP mode. This is a disaster recovery mode, and not used in normal operation. 
To put AP back to normal mode restore it to factory default settings. 
If this does not restore normal operation, contact Technical Support.
HP 425

Green Flashing
1 flash/sec. The AP is booting.

Fading in/out At least one client is connected to the 2.4 GHz radio.

Blue Flashing 2 flashes/sec.
The AP is updating its system software image.

Blue Flashing 2 sec. on / 2 sec. off
The AP is booted and is registered to the controller. There is no client connected.

Blue Fading in/out At least one client is connected to the 5 GHz radio.

Orange On for more than 20 sec. 
An initialization exception has occurred.

Orange Flashing 1 flash/sec. 
There is a problem with the radio module.

Orange Flashing 2 flashes/sec.
Both radios are disabled or the Ethernet port is disabled while no local mesh peer exists.

Green/Blue Alternately fading green and blue
Clients are connected to both the 2.4 GHz and 5 GHz radios.

 

Hope this helps you.

Posted in Access Point, hp, led, wifi | Comments Off on HP Accesspoints and blinking LEDS

Retrieve MS-SQL version info without MS SQL Studio

After digging around for a customer to update their ms-sql server for an application, I had to find out the version they were using first.

Not having the Visual studio tools installed, there’s a cmdline tool that can do this.

As an authorative user, such as Administrator, in this case, I had to go to

C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn>

(you can already see the ‘100’ that says something about the version, it can be something else, like 80, 90, etc)

Then type

SQLCMD -S server\instance

Where server is your server and instance the instance you want to connect to

You can also do

SQLCMD -L

to see a list.

Then, at >1 you can type a command, at >2 type ‘go’ to execute it.

Such as:

1> select @@version
2> go

That gives something like this:

Microsoft SQL Server 2008 R2 (SP1) – 10.50.2500.0 (Intel X86)
Jun 17 2011 00:57:23
Copyright (c) Microsoft Corporation
Express Edition on Windows NT 6.2 <X64> (Build 9200: ) (WOW64) (Hypervisor)

Or type:

1> select serverproperty('EditionID')
2> go
  • -1253826760 = Desktop
  • -1592396055 = Express
  • -1534726760 = Standard
  • 1333529388 = Workgroup
  • 1804890536 = Enterprise
  • -323382091 = Personal
  • -2117995310 = Developer
  • 610778273 = Enterprise Evaluation
  • 1044790755 = Windows Embedded SQL
  • 4161255391 = Express with Advanced Services

Or type:

1> select serverproperty('Edition')
2> go

Which in my case said “Express Edition”

Hope this helps you!

Have fun!

 

Posted in Microsoft, MS SQL | Comments Off on Retrieve MS-SQL version info without MS SQL Studio

Exchange, Disable spam filter for a receive connector

You may want to disable the spam filter for e.g. a connector that sends your invoices.

Get-ReceiveConnector "SERVER\ReceiveConnector" | Add-ADPermission 
-User "NT Authority\Anonymous Logon" 
-AccessRights ExtendedRight -ExtendedRights ms-exch-ypass-anti-spam

Hope this helps you!

 

Posted in E-mail, Exchange 2016, smtp | Comments Off on Exchange, Disable spam filter for a receive connector

(re)Setting rights on user home folders [batch script]

After some troubles with copied user home folders during a migration, the rights were set incorrectly.

As this was about more than just a handful of users, re-setting the rights manually wasn’t a good idea.

After digging around on the net, I adjusted a script so that this could be done automagically.

@echo off
setlocal
set fold="*"
set fold=%fold:"=%
for /F "tokens=*" %%i in ('dir "%1" /b /ad') do call :UPERM "%%i"
endlocal
goto end:
:UPERM
 set user=%1
 set user=%user:"=%
 echo %user%
 icacls %user% /grant "%user%":(OI)(CI)(M,RX,R,W,D)
:end

The approach on this is that the user home folder is the same as the username.
The list of directories is taken from the working directory. The subfolders that are put into a variable are the user home folders.
The script then walks through them all and sets (OI)(CI)(M,RX,R,W,D) rights using icacls, so that the users are able to get to their files again.

Look up the icacls help on setting the rights, if you want to adjust the script.

Have fun, hope this helps you.

found on https://arstechnica.com/civis/viewtopic.php?f=17&t=823972

Posted in .bat, Active Directory, batch, command line, File sharing | Comments Off on (re)Setting rights on user home folders [batch script]

Adobe Reader DC, Remove side tools panel by default

After digging around, there seems to be a solution to remove that side panel that takes up screen space, every time you  start Adobe Reader DC.

[you have to have admin rights to do this]
Go to the install directory using explorer.

C:\Program Files (x86)\Adobe\Acrobat Reader\DC\Reader\AcroApp\ENU

( If you have another language, go to another directory there, in my case “NLD”)

Create a new subfolder to move files to and move 3 files from the “ENU” folder into the newly created folder:

AppCenter_R.aapp
Home.aapp
Viewer.aapp

Open a PDF file and now there should be no tools panel.

Works with Windows10

Hope this helps you.

 

Found at https://forums.adobe.com/thread/1817184

Posted in News | Tagged , , | Comments Off on Adobe Reader DC, Remove side tools panel by default

Configure SSL on an HP Aruba 2530-48G-PoEP Switch (J9772A)

Log in admin using ssh (with your favourite ssh client) or (serial) console cable.

config
crypto pki identity-profile Profile subject

Now enter some certificate parameters
You can enter all you like, e.g.

Enter Common Name(CN) : Switch
Enter Org Unit(OU) : ICT
Enter Org Name(O) : Customer
Enter Locality(L) : Amsterdam
Enter State(ST) : State
Enter Country(C) : NL

then, type

crypto pki enroll-self-signed certificate-name certificate
web-management ssl
save

Now ssl is enabled and you can reach your switch using https.

If you didn’t configure an ip-address yet, you see the current ip address using

show ip
Posted in aruba, cli, hp, switch | Comments Off on Configure SSL on an HP Aruba 2530-48G-PoEP Switch (J9772A)

Exchange 2016 Have a receive connector relay outside the domain.

There’s a powershell cmd for that:

New-ReceiveConnector -Name "Anonymous Relay" -Usage Custom -AuthMechanism ExternalAuthoritative -PermissionGroups ExchangeServers -Bindings x.x.x.x:25 -RemoteIpRanges x.x.x.x

(or create a receive connector with the right settings) And then

Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"
Posted in Exchange 2016, powershell | Comments Off on Exchange 2016 Have a receive connector relay outside the domain.

Exchange 2016 Restart Transport Service powershell

Ran into this earlier today, had to restart the Exchange 2016 transport service using powershell only! It turned out to be easy.

Restart-Service MSExchangeTransport

To list all Exchange services:

Get-Service *Exchange*
Posted in Exchange 2016, powershell | Comments Off on Exchange 2016 Restart Transport Service powershell

User folder displayed as “Documents”: Remove desktop.ini

A users’ folder is displayed as “Documents” and you don’t want that.

To e.g. remove desktop.ini files (which are hidden: use -force):

Get-ChildItem "\\SERVER\d$\Users\Userdata\" -recurse -filter desktop.ini -force | foreach ($_) {remove-item $_.fullname -force}

This deletes all the desktop.ini files and will help you see the normal folder structure.
It may be nasty for the users.. or not. Up to you.

Found at http://www.kevin-burke.co.uk/windows-server-technologies/home-folder-shows-documents-folder/

 

Hope this helps you!

Posted in File sharing, powershell | Comments Off on User folder displayed as “Documents”: Remove desktop.ini