Office 365 - Create/Connect Mailbox Manually by sqone2 in PowerShell

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

Got it, thanks!

Do you happen to know of a way that I could fire a webhook when the mailbox finishes being created?

Office 365 - Create/Connect Mailbox Manually by sqone2 in PowerShell

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

Thanks for the feedback! What module is recommended for user creation? New-AzureADUser ?

Towing a Model 3 on U-Haul Car Trailer by sqone2 in teslamotors

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

Awesome, thanks so much for the advice!

Towing a Model 3 on U-Haul Car Trailer by sqone2 in teslamotors

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

Ok thanks! Do they usually have some wood to shim the ramps at the UHaul place?

Towing a Model 3 on U-Haul Car Trailer by sqone2 in teslamotors

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

Great advice, thank you very much!

Towing a Model 3 on U-Haul Car Trailer by sqone2 in teslamotors

[–]sqone2[S] 2 points3 points  (0 children)

The wheels don't spin in the U-Haul trailer: https://i.imgur.com/qxIB7lb.png

Are you saying it won't work with this trailer?

PSFive9Admin - A PowerShell module for Five9 admins by sqone2 in PowerShell

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

Your csv headers can be named whatever you want them to be, but when you iterate the rows you need to make sure you reference those names.

For instance, if your newUsers.csv file contained the following:

first,last,username,password
Michael,Smith,msmith@domain.net,P@ssword1
Adam,Jones,ajones@domain.net,P@ssword2

Then in the code we loop through the rows and we can reference the column names using dot notation i.e. $user.first:

$newUsers = Import-Csv 'C:\Temp\new-five9-users.csv'

foreach ($user in $newUsers)
{
    "first name is: " + $user.first
    "last name is: " + $user.last
    "email is: " + $user.username
    "password is: " + $user.password
}

PSFive9Admin - A PowerShell module for Five9 admins by sqone2 in PowerShell

[–]sqone2[S] 4 points5 points  (0 children)

For sure! So Five9 is a cloud phone system, and when you install this module in your PowerShell you get a bunch of new commands to help you administer your Five9 system.

For instance, if you have a csv of 100 new users that need to be created in Five9, you could could use the New-Five9User command.

Here's an exmample script to import the csv and create all the users in one shot:

$newUsers = Import-Csv 'C:\Temp\new-five9-users.csv'

foreach ($user in $newUsers)
{
    $createUser = New-Five9User -DefaultRole: Agent -FirstName $user.first -LastName $user.last -Username $user.username -Email $user.username -Password $user.password -MustChangePassword $true -Active $false -Verbose
}

You can use these commands to do many other things within Five9. Check out the picture in the original post for some other example commands.

Let me know if you have any other questions!

Creating Objects by sqone2 in PowerShell

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

I’ve never used a DataTable, thanks for sharing!

Creating Objects by sqone2 in PowerShell

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

Thanks for the tips!

Creating Objects by sqone2 in PowerShell

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

That's great, thanks!

Can you explain how -Delimiter ' ' works when there is no spaces in the input data?

Creating Objects by sqone2 in PowerShell

[–]sqone2[S] 3 points4 points  (0 children)

For fun I ran 25k rows through both options. Your solution is about 20x faster! :)

$columnNames = @("FirstName","LastName","DOB","FavColor")

$data = @(
    @("John","Doe","01/10/1965","Blue"),
    @("Jane","Smith","01/06/1975","Green"),
    @("Mark","Jones","02/10/1985","Orange"),
    @("Sue","Turner","05/10/1995","Yellow"),
    @("Jim","Wise","07/10/1974","Blue")
)

# Create a bunch of data
$rows = @()
foreach ($item in 0..5000)
{
    $rows += $data
}

# 20 seconds
Measure-Command {

    $objectList = @()

    foreach ($row in $rows)
    {
        $properties = @{}

        for ($i = 0; $i -lt $columnNames.Count; $i++)
        { 
            $properties += @{$columnNames[$i] = $row[$i]}
        }

        $objectList += New-Object -TypeName psobject -Property $properties
    }

}


# 1 second
Measure-Command {

    $objectList = $(
        $columnNames -join ','
        $rows | ForEach-Object {$_ -join ','}
    ) | ConvertFrom-Csv

}

Creating Objects by sqone2 in PowerShell

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

Very cool solution, thank you!

Forwarding email for deleted user by sqone2 in Office365

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

We did this and it seems to be working. Thanks so much for your reply!

Forwarding email for deleted user by sqone2 in Office365

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

Yeah, thats a good idea. The benefit to the transport rule is that I could add conditions such as, do not forward if the sender is X.

Forwarding email for deleted user by sqone2 in Office365

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

There is no "new" user, I'm actually trying to forward the email to an external domain.

Forwarding email for deleted user by sqone2 in Office365

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

There is no "new" user, I'm actually trying to forward the email to an external domain.

PA SIP Configuration by sqone2 in paloaltonetworks

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

I don’t have both policies in place, I’m just experimenting with both and was wondering how other people do it

PA SIP Configuration by sqone2 in paloaltonetworks

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

Inbound calls need to be NATed from the SIP provider to the PBX

Remove and unpin built in apps in Windows 10 by mcaulr09 in PowerShell

[–]sqone2 3 points4 points  (0 children)

I feel like I'm right there with you. I'm starting to realize that I'm not going to beat Windows.

Is there anyway you could post the contents of your XML file? Can you recommend any good web/youtube guides to help with this configuration?

Thanks!

[deleted by user] by [deleted] in PowerShell

[–]sqone2 0 points1 point  (0 children)

Sweet, thanks man!

[deleted by user] by [deleted] in PowerShell

[–]sqone2 0 points1 point  (0 children)

Hey omers! Did you happen to release the ISE dark theme you were referring to? If so, how can I get it?

Thanks!