Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- read -p "Enter your DA user name: " DANAME
- DOMNAME=dom.local
- DOMPREFIX=dom
- cd ~
- /opt/pbis/bin/domainjoin-cli join $DOMNAME $DANAME@$DOMNAME
- /opt/pbis/bin/config UserDomainPrefix $DOMPREFIX
- /opt/pbis/bin/config AssumeDefaultDomain true
- /opt/pbis/bin/config LoginShellTemplate /bin/bash
- /opt/pbis/bin/config HomeDirUmask 077
- /opt/pbis/bin/config RequireMembershipOf DOM\\Your^Group
- /opt/pbis/bin/ad-cache --delete-all
- /opt/pbis/bin/update-dns --loglevel info
- sed -i 's/sufficient/[success=ok default=ignore]/' /etc/pam.d/common-session
- echo "Check for errors, and then reboot the system."
- ## change "dom.local" to your windows domain name.
- ## change "dom" to your windows domain name.
- ## change "DOM" to your windows domain name.
- ## change Your^Group to your own group. the "^" replaces a space in a group name (if you have it).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement