Continue reading “Open/close ports in windows firewall from the Command Line”
DFSR admin simple health monitor script.
$savepath = “c:\DFSreporting”
Remove-Item $savepath -recurse
DfsrAdmin Health New /RgName:'<replication group name>’ /MemName:<member name> /RefMemName:<where it replicates> /RepName:$savepath\<filename to save the report> /FsCount:true
Get Windows Activation state
Set up a Windows LogServer
Remote Desktop Connection problem
Problem/message:
“The remote session was disconnected because there are no Remote Desktop Licence Servers available to provide a licence.
Please contact the server admnistrator.”
Solution can be found here:https://besch-it.com/the-remote-session-was-disconnected-because-there-are-no-remote-desktop-licence-servers-available-to-provide-a-licence/
There is also the need to take ownership of the registry key before changing it.Instructions can be found here:https://www.howtogeek.com/262464/how-to-gain-full-permissions-to-edit-protected-registry-keys/
How to determine if a server is virtual or physical
get Computer Uptime
Create remote Scheduled tasks with schtasks.exe
Backup PKI (Active Directory Certificate Authorities)
Add OU users to a group (and skip when the user is already member)
I wanted to add all the users from an OU direct in a group but the problem was that the group had already members.I needed to control wether the user was already member of the group.That is my implementation.
Continue reading “Add OU users to a group (and skip when the user is already member)”