Lorky`s Blog - Techno ressources and general informations for everyone !

Important

To filter the blog, please use theses tag:
General news. Website related post website. parental-control about technology. technology post.

Note

All blog links are archived here.

Hi everyone

Today I will discuss a small tip used when you migrate a file server to another domain.

The goal is to prevent all user to see the warning that file can be dangerous, as the client OS detect and treat that old domain as a internet domain, not an internal's domain when the migration is finished.

An easy way is with Unblock-File commandlet from powershell.

Naviguate into your server, and issue that powershell command:

Get-ChildItem c:\path -recurse | Unblock-File

unlockfiles.png

That will prevent that dialog from all the files:

1425-filepropertiesunblock.png

 

Enjoy the small tip

 

 

Continue Reading...

Hi everyone

Ever wondered how to re-activate an old Active Directory account and prevent a password change directly ? Like on a return paternity / maternity leave.

It's really easy to do or script that way :)

pwdLastSet attribute is used to calculate the password age.

The value is protected, and the only value you can set there is 0 or -1.

The value you look for is -1, the system will put the pwdLastSet to the current date/time. Thus the 90 days, or any defined time period, will start again from the start.

0 would do the opposite, it would expire the password right now.

You set it to 0, manually or with a script, you then set it to -1 and uncheck the Never Expire option after for the account.

An example when used:

Before

qrzy3.png

After

dooax.png

It's that simple :)

 

Thanks

 

 

Continue Reading...

OneDrive on Local Account ?

March 6, 2018, 6:49 pm technology

Hi everyone

Today I will share a marvelous tool to use OneDrive / SkyDrive if you use a local account, or an domain account.

The tool is named syncDriver.

3-6-2018-1-32-15-pm2.png

A side note the login option no longer work in the application, but an alternative login work as it directly open onedrive's website.

After that you can map a letter to the root folder you defined.

The official website is dead, as such I offer a link there to the wayback machine to download the tool.

wayback link

or home hosted

Continue Reading...

Hi everyone

Today less and less people use msaccess, but some still, and some still use multiuser database.

In such case after Windows 2008 R2 it can cause problem with new layer of SMB version, that allow oplock to be used, thus it can cause bug from the Access GUI, or even corruption of the data file.

To disable, on the server :

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters\

OplocksDisabled REG_DWORD 0 or 1
Default: 0 (not disabled)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

EnableOplocks REG_DWORD 0 or 1
Default: 1 (enabled)

To be disabled at 100% let's do the client's computers too. Easily with a GPO

2-19-2018-4-03-37-pm.png

 

Continue Reading...

Hi

If you receive the error You don't have permission to perform this action while any user try to send an email, then you are in big trouble..

2-5-2018-10-18-14-am.png

Just kidding.

Some FAQ tell to go check the server DNS setting, to be sure it's only internal's DNS server listed there, but I found another cause for that problem.

It can happen when you do a CU (Cummulative Update) and the service get stuck in a Inactive state. No windows event log are logged too when such happen and your receive connector can still connect on port 25, but the server just look to do nothing.

To validate please run that powershell commandlet;

Get-ServerComponentState

You can see some component in inactive state;

2-5-2018-3-54-02-pm.png

At this point you can put each component active, by issuing that command;

Set-ServerComponentState -Identity ServerName -Component HubTransport -State Active -Requester Functional

After all component are active it should be listed more like that;

2-5-2018-3-54-27-pm.png

Thanks

 

 

 

Continue Reading...