Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
On a elevated command prompt run this.... | |
runas /u:<domainB>\<username> /netonly mmc | |
On prompt.. type your domainB password. | |
Click File --> Add/Remove Snap-in | |
Choose Active Directory Users and Computers (from left side pane) | |
Click Add > | |
Click Ok |
ip nat inside source static tcp 10.51.2.13 443 88.88.8.88 443 extendable |
How to fix RDS 2012r2 error: “Licensing mode for the Remote Desktop Session Host is not configured.” | |
To fix the problem, run the following commands in powershell to set the licensing server properly on the rd session host using the WMI CIM provider: | |
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting | |
$obj. SetSpecifiedLicenseServerList("licserver.domain.local") | |
Then, go into the registry and manually set the licensing mode: | |
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core\LicensingMode |
# You would want to do this only if you do 'simple bind' to your LDAP server , if you're using an SASL method for authentication | |
# it should work without doing this. | |
sudo su | |
/usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string CRAM-MD5" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist | |
/usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string NTLM" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist | |
/usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string GSSAPI" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist |
# get informations categories | |
system_profiler -listdatatypes | |
# get information about harddrives | |
system_profiler SPStorageDataType | |
# Export to XML | |
system_profiler -xml SPEthernetDataType SPFirewallDataType > ~/Documents/reports/system_profile-EthernetFirewall.xml | |
# get OSX version |
# Enable CPU virtualization capabilities from Bios | |
# Install docker for windows | |
# Run windows executables from bash | |
PATH="$HOME/bin:$HOME/.local/bin:$PATH" | |
PATH="$PATH:/mnt/c/Program\ Files/Docker/Docker/resources/bin" | |
-------------------------------------------------- | |
# Install packages to allow apt to use a repository over HTTPS | |
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common |
https://support.apple.com/en-us/HT201236 | |
Command ⌘ (windows key on PC) | |
Shift ⇧ | |
Option ⌥ (Alt key on PC) | |
Control ⌃ | |
Caps Lock ⇪ | |
Fn | |
# Hold during startup |
# Boot in recovery mode | |
# Open up the terminal app from the utilities menu , and type | |
resetpassword |
#!/bin/bash | |
# Se foloseste in felul urmator | |
# - trebuie sa ai o lista cu useri in LDAP unul cate unul pe linie separata | |
# - rulezi scriptul './mkhomes.sh lista_useri.txt' | |
# Scriptul trebuie rulat pe un server integrat cu LDAP , pe CDN 99.99% . | |
if [ $# -ne 1 ];then | |
echo | |
echo -e "\t\t Usage: $0 users_file.txt" | |
echo -e "\t\t user_file must contain the users one per line" |