Powershell Useful Commands
This is my Powershell Useful Commands. They are commands that I want to use but can't remember their silly non-sensical syntax. I'll update it as I see fit. This is for me. If you can use it, great.
LOOK AT USER ACCOUNT EVERYTHING:
LOOK AT USER ACCOUNT SELECTED PROPERTIES:
GET USER FORWARD EMAIL ACCOUNT
NOTE: There are two properties that are very similar ForwardingAddress & ForwardingSMTPAddress.
Here is the difference:
ForwardingAddress: This is to forward to another account within the same domain.
ForwardingSMTPAddress: This is to forward to an external account.
SET FORWARDING TO EXTERNAL EMAIL ADDRESS
DELETE FORWARDING TO EXTERNAL EMAIL ADDRESS
SET USER PSEUDONYM
FIND ALL USERS IN A GROUP
FIND ALL INFO ABOUT A GROUP
ADD USER TO A GROUP
REMOVE USER FROM A GROUP
By default only internal-accounts can email groups. To set a group to accept Senders outside of organization:
SET A GROUP TO ACCEPT SENDERS OUTSIDE OF THE ORGANIZATION
WINDOWS AZURE AD MODULE
I don't know how to explain this. But here it goes... The following are commands that affect the USERACCOUNT at a root level. Because of this, REGULAR POWERSHELL (and all it's dependencies) can't run the commands. You have to get a SUPER POWERSHELL.
They call it the WINDOWS AZURE AD MODULE. It will only run on WINDOWS-7 & WINDOWS-8 and it requires something called ONLINE SERVICES SIGN IN ASSISTANT. Even though it is called a MODULE which maybe should just upgrade your current POWERSHELL, the truth is that it's another POWERSHELL (Trust me, nothing in Microsoft world makes sense).
DOWNLOAD WINDOWS AZURE AD MODULE
So, AS ADMINISTRATOR, you have to use this AD MODULE rather than POWERSHELL to make changes.
CONNECT WINDOWS AZURE AD MODULE TO OFFICE365
SET USERNAME TO NOT REQUIRE STRONG PASSWORD
HARD SET THE USERNAME PASSWORD AND DON'T REQUIRE A CHANGE
DELETE USERNAME
ADD USERNAME
OTHER COMMON COMMANDS
ls: lists contents of directory.
cat: read contents of text file.
Select-String: the MS version of grep.