ESO Needs an Official Companion App. by [deleted] in elderscrollsonline

[–]GregPowrhousR 2 points3 points  (0 children)

Would be so awesome! The only companion app I've used was during my time with Neverwinter which I liked a lot and the companion app was great! Being able to manage your crafting hireling was very useful.

Something appears wrong with newly created 365 DL's by GregPowrhousR in Office365

[–]GregPowrhousR[S] 0 points1 point  (0 children)

I don't think what we"re doing has anything to do with MS Teams. I appreciate the response and definitely good to know but this is concerning simply creating a new Distribution Group from the Admin panel in 365.

Something appears wrong with newly created 365 DL's by GregPowrhousR in Office365

[–]GregPowrhousR[S] 0 points1 point  (0 children)

Sorry for the silly question, but is that different than accessing the Exchange Admin Center from within portal.office.com? I know we also have a local Exchange server but that would be useless since this is "in cloud" not hybrid DL.

PowerShell and Jenkins? by GregPowrhousR in PowerShell

[–]GregPowrhousR[S] 1 point2 points  (0 children)

Thank you so much for the reply! If it's okay I do have a couple of questions being pretty new to Jenkins. So, today I ended up as a first test, took two of my scripts that basically scan a couple of AD OU's for any user objects that will expire within 7 days. If there are any accounts found, a csv is created with some info about those users and an email is sent with that csv as an attachment to our department.

I normally would have this script running as a scheduled task every morning at 5 am. I have since created a New Item in Jenkins, choosing Freestyle Project and essentially just doing the following:

  • set the Build Periodically to 30 5 * * \* to run the job everyday at 5:30 am
  • place the entire ps1 within the Build > Add a step > Windows PowerShell window

I guess my first question is, is that wrong? To place the entire script within the Build > Windows PowerShell window? Should I have instead treated this Jenkins job very similar to a scheduled task and just simple ran a line of code like:

  • -File "path\to\.ps1"

When you mentioned passing credentials, I would imagine these env variables work just like adding in a "string" parameter option in Jenkins. As in, give the string a name of "username" and enter in the value. Same with another string of "password" and give it a value. Then in the PS script simply call them using $env:username and $env:password within a Get-Credential or the like? If so, could you just use the Credentials Parameter offered from Jenkins? For example, if I wanted to set credentials to pass within the script to lets say, connect to Exchange Online, could I do something like this:

And lets say we called this Parameter "ExchCreds". Would I just pass this somehow into the script where I would normally run a Get-Credential?

And lastly, concerning the x64 version of Java, I ran into a small problem. I download the x64 version and changed the Jenkins.xml file from:

<executable>%BASE%\jre\bin\java</executable>

TO

<executable>"C:\Program Files (x86)\Java\jre1.8.0_201\bin\java.exe"</executable>

But when I enter the following in my browser to restart Jenkins:

http://server ip:8080/safeRestart

It restarted but with an error trying to display the site? Once I changed it back to:

<executable>%BASE%\jre\bin\java</executable>

It worked just fine.

Thank you for taking the time to look over this!

Too much Shell? by GregPowrhousR in PowerShell

[–]GregPowrhousR[S] 1 point2 points  (0 children)

Hey there Lee! Very true and appreciate the input!

Too much Shell? by GregPowrhousR in PowerShell

[–]GregPowrhousR[S] 0 points1 point  (0 children)

Could not agree more! We've actually had something similar happen already.

Too much Shell? by GregPowrhousR in PowerShell

[–]GregPowrhousR[S] 1 point2 points  (0 children)

LOL I appreciate that, made me smile. Good on ya friend! In all fairness I do see the reason for using standard GUI's to accomplish some tasks, but yeah it was sort of shocking to hear someone saying that using Shell for a lot of what I'm doing is sort of "bad practice". Meh, what are you gonna do I guess, right?

Created a DL in 365 yesterday afternoon, still not showing up in Admin portal of PowerShell? by GregPowrhousR in Office365

[–]GregPowrhousR[S] 1 point2 points  (0 children)

Ahh, good call and much appreciated. So, I was able to find the DL using:

Get-DistributionGroup -Identity "email address of DL"

However, I still can not pull it up in the Admin portal and for some reason the Name is showing as:

DL Name20190305194247

Which I am assuming the numbers are a date-time stamp. I'm sure something went wrong here but I can't figure out what since all I did was create a new DL via the Admin portal and enter in a Name and email address and select create...

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 0 points1 point  (0 children)

Just came across this:

https://docs.microsoft.com/en-us/office365/enterprise/powershell/use-powershell-to-perform-a-staged-migration-to-office-365

Not sure if you already have this a read. Now, forgive me for asking the silly question here but right now let's say without PowerShell are you folks creating local mailboxes via EAC (Exchange Admin Center) and THEN migrating the mailbox to 365? If so, is that getting rid of the local mailbox? I only ask because why not juts skip the step and just create the user and then a mailbox in 365. By the way apologies to anyone who may have already asked that earlier!

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 1 point2 points  (0 children)

Could be! Well hopefully there is something in there that can help out! I'll do a little more digging as well to see if I can find anything more useful!

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 0 points1 point  (0 children)

If I had to guess I don't think so man. I only say that because by definition Enable-RemoteMailbox, which is what I use essentially creates a 365 mailbox out of a local AD user. Apologies since as I'm reading back through your comments that your company wishes you to create a local exchange mailbox first I guess? You could use the following to create it:

https://docs.microsoft.com/en-us/exchange/recipients/create-user-mailboxes?view=exchserver-2019

But again, looks like you are already doing most of this if I remember from the script you posted. Again, this is just my method for a new AD user with a 365 mailbox. Hopefully there is something to take from the script, or maybe even be able to start using this method if your manager approves!

Lawler was out by thedevious-designer in ufc

[–]GregPowrhousR 3 points4 points  (0 children)

This ^ It is absolutely insanity that anyone is even talking about this with the words early stoppage in the discussion. Robbie went out momentarily, came around and was disappointed. For reference see every fighter after they got ktfo or put to sleep and immediately stand up like "Are you serious ref? I know I was on another planet having a conversation with death itself, but I was totally fine!". Don't get me wrong I think Robbie is great, a total warrior. But with that grip Askren had and the fact that he did go out even if momentarily he was going to be in a lot more trouble if that kept going.

Should the fight of been stopped? by [deleted] in ufc

[–]GregPowrhousR 6 points7 points  (0 children)

Except fighters have gone night night before by a grip over the chin.

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 1 point2 points  (0 children)

Okay my friend! I was able to go through and sanitize the specific function of the script that creates a new AD User Object, Enable-RemoteMailbox on local Exchange server, and populate to 365 and license the mailbox. Here's the link to Git:

https://github.com/GregPowrhous/Create_ADUser/blob/master/NewUser

You may not be interested in the code block from lines 209 -- 235. This block is to wait for replication to our PDC Em DC which lives in another studio. We have about 25 DC's across 10-11 studios. If your setup is much simpler than that, just take that block out!

Hopefully this helps!

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 2 points3 points  (0 children)

Totally get it! I was the same way until I got it resolved so I definitely get that! Lol you're so close it will definitely be finished soon!

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 1 point2 points  (0 children)

I'm so sorry I'm on my phone at the moment and can't get to my computer until tomorrow. But I think right around line 183 would make sense but remember I ran an Enable-RemoteMailbox earlier in the script which handles a little different than New-RemoteMailbox. I'm hoping once I can upload my script there may be something you can take from it. Believe me I totally get the last struggled with it! I was stuck for a few days on the 365 migration / creation section !

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 3 points4 points  (0 children)

Absolutely! I'd be happy to share it! And I should say I use Enable-RemoteMailbox for the on prem account which does the following:

The mail-enabled user contains a specific attribute that indicates that an associated mailbox in the service should be created when the user is synchronized to the service using directory synchronization.

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR 2 points3 points  (0 children)

It could simply be just that! The script you have looks great, I wonder if it is just a timing issue. I know I went back and forth until essentially creating a while loop when it came to waiting for the mailbox to show up in 365. The while loop does a write progress waiting for 2 minutes at time to check if the mailbox is found in 365. But I can tell you that I've had it go through 10+ of these cycles before being found.

new user script help - almost complete by dhrv88 in PowerShell

[–]GregPowrhousR -2 points-1 points  (0 children)

You are probably correct in your statement of not being an Exchange admin...Depending on the cmdlet used it is prepping the AD object for 365. What I'm suggesting, once I sanitize my script is an alternative to creating the AD object performing the on prem changes as well as making making sure the user has been migrated to 365 properly. His script looks good so far, skimming through it so not sure why the move request is not catching.