• Need a good example of getting powershell arguments

    Unsolved
    3
    1 Votes
    3 Posts
    1k Views
    ObsolesceO

    @JaredBusch said in Need a good example of getting powershell arguments:

    I'll hit the google later, because I am on other things, but I found that something I touched today could very easily be improved if I can add parameter handling to the powershell script.

    Now, the basics are easy as it is all in the $ARGS variable/object.

    But I want to have some safety checking. because it is easier to do things right the first time.

    Example: I want a parameter to note if I should make the thing being done the default.

    I can pass a 1 like dothing.ps1 1 and I can simply code something to check $ARG[0] eq "1" but that is not very explanatory to the person using the script.

    This is more explanatory dothing.ps1 -default for a command.

    So has anyone seen a good example of parameter handling that I can put into my dothing.ps1 script?

    I'm not sure I understand exactly what you mean.

    Taking a guess here, but how I understand is that you'd want to add this at the top of your script:

    [cmdletbinding()] param ( [Parameter()] [Switch]$Default ) if ($Default) { Write-Host "The -Default parameter was specified." } else { Write-Host "The -Default parameter was NOT specified." }

    Doing that will give you the following output:

    PS > .\JBTest.ps1 -Default The -Default parameter was specified. PS > .\JBTest.ps1 The -Default parameter was NOT specified.

    If you want to accept input from a pipeline to work with, let me know.

  • Looking for 50' long USB power cable

    20
    0 Votes
    20 Posts
    2k Views
    gjacobseG

    Would this work for you? Much smaller, and still POE - just need to set the port to 48v

    https://www.amazon.com/Tycon-Systems-POE-MSPLT-USB-POE-Converter-x/dp/B00PZ009AQ

    41cK-P30W7L.jpg

  • Setting up an HP DL185 G5

    7
    1 Votes
    7 Posts
    2k Views
    DashrenderD

    @DustinB3403 said in Setting up an HP DL185 G5:

    @Dashrender That is where I was thinking a surveillance system would be a good use. I could use it as a backup repo for my VMs as well with a simple NFS share.

    Just needing some things to do with it, maybe something the kid could eventually use. (years from now. . . she's almost 1 already.)

    All these things basically go directly to what Scott said - make it a giant storage array.

  • Email server options

    Solved
    213
    2 Votes
    213 Posts
    59k Views
    DashrenderD

    @JaredBusch said in Email server options:

    @Dashrender said in Email server options:

    This comparison misses taking it beyond year 5.

    Why take it beyond 5 years? Because if it is on premises, it will need to be upgraded again.

    @Dashrender said in Email server options:

    If you add SA to the original licenses - because you know the plan is the keep using Exchange going forward - it will raise the costs noticeably in the beginning, but come renewal time it will make it significantly less. Less enough to be under O365? not likely, hell, even the 5 year plan would be more expensive for onprem vs O365... but it might lower itself over time because of the SA difference.

    SA is a scam to get more money. Always has been for the SMB. With negotiated pricing for Enterprise, it is the right thing.

    If you're a company that only upgrades once every 10 years - then yeah... SA is a waste of money, but you're already talking about upgrading again in 5 years, so SA could very much make financial sense - show me the numbers before you poo poo it.

  • Cannot view contents of a samba share

    Solved
    11
    0 Votes
    11 Posts
    587 Views
    IRJI

    Got it working. I had to set the user to nobody instead of guest. Oddly enough it would mount as guest, but just not be readable.

  • Raspberry Pi down?

    4
    0 Votes
    4 Posts
    311 Views
    WLS-ITGuyW

    @scottalanmiller said in Raspberry Pi down?:

    Did it finally download?

    Yes, I think it might have been because I had my dropbox syncing in full speed as well.

  • UPS Radiation

    22
    0 Votes
    22 Posts
    3k Views
    scottalanmillerS

    Better Call SAM

  • 2 Votes
    29 Posts
    5k Views
    scottalanmillerS

    @JaredBusch said in Getting Familiar with Sangoma S500 running with FreePBX as back end. . .:

    I've given up on EPM for anything complicated with non Sangoma phones.

    Same, I don't find it to be valuable for us.

  • Disabling Mailbox disables another mailbox

    12
    0 Votes
    12 Posts
    1k Views
    T

    After I finish the damage control or real accounts getting nuked, I am going to test that theory. but I have a 90% hunch.

  • Ethical vs Legal for user mailboxes

    3
    1 Votes
    3 Posts
    259 Views
    JaredBuschJ

    @Fredtx said in Ethical vs Legal for user mailboxes:

    have all emails forwarded to them for a specific user

    This is stupid though.

    Instead access to the users mailbox can be granted. Gods, who want sot have multiple peoples email all showing up in their inbox..

    People are so fucking stupid.

  • EdgeRouter 4: IPSec, S2S vpn

    40
    0 Votes
    40 Posts
    6k Views
    FATeknollogeeF

    The problem is this:
    On the Meraki side, let's say you have 5 (this can be any number greater than 1) firewalls.
    In Meraki speak, if all 5 are in the same "organization", S2S is a few clicks & AutoVPN takes over. No pre-shared secret, no keys.
    You turn on VPN, say yes to whatever subnets you want in the vpn & save.

    On the ER side, I have to create 5 peers to connect to the Meraki side.
    Meraki will only expose one connection for a 3rd party S2S & therein lies the problem.
    Not all the tunnels connect & there's no good way to fix it.

  • 8 Votes
    1 Posts
    684 Views
    No one has replied
  • Vagrant Libvirt and Fedora 30

    1
    7 Votes
    1 Posts
    643 Views
    No one has replied
  • New PBX - on prem or off?

    106
    0 Votes
    106 Posts
    13k Views
    scottalanmillerS

    @Dashrender said in New PBX - on prem or off?:

    Damn I just saw a bill from cox.

    A single sip phone totally managed by them end to end, $51.00/m

    That includes:
    The phone
    DID
    Vmail
    Management of the line from the phone all the way to cox.
    Calling inside the USA, ie no long distance fees.

    Very expected when you buy from an ISP.

  • Opensource BI / Dashboard / Reporting solutions?

    27
    1 Votes
    27 Posts
    5k Views
    stacksofplatesS

    Here's another example in Kibana. You can pull the same data out and display in Grafana

    business-analytics-reporting.png

  • Restaurant Pro POS software contacts migration project

    3
    1 Votes
    3 Posts
    784 Views
    ysapirY

    @gtech
    Thank you !
    can you please email me directly to yonah.sapir@pcm.com

  • Fail2ban on load balancer

    25
    2 Votes
    25 Posts
    2k Views
    scottalanmillerS

    @wirestyle22 said in Fail2ban on load balancer:

    @IRJ said in Fail2ban on load balancer:

    @wirestyle22 said in Fail2ban on load balancer:

    @IRJ said in Fail2ban on load balancer:

    @wirestyle22 said in Fail2ban on load balancer:

    @wrx7m False positives too. If I blocked all Canada traffic as an example, LogMeIn will intermittently not work because they have data centers in Canada. There is essentially no benefit to it and a few, mostly small downsides. It just aids sale because it sounds cool.

    That's not what's being talked about here. We are talking about doing in on a load balancer for a specific service. In this case https traffic to a specific application.

    I was talking specifically about potential problems with geo-location. I understand what is being discussed

    If you do geo-blocking then it becomes part of the process of installing new software and services to add a whitelist of IPs for that service. Any cloud hosting provider has something similar to this.

    https://help.logmein.com/articles/en_US/FAQ/Whitelisting-and-LogMeIn

    For what real benefit though? That is kind of my point. It's a PITA but also doesn't benefit you really

    The point is, it's about politics. The value has nothing to do with IT when it does have value. Any (or essentially any) value comes from unhealthy organizations driven by politics and not by results. Which, as I've said many times, is the average company.

  • Windows 10 can't manage printer

    10
    0 Votes
    10 Posts
    3k Views
    DashrenderD

    Of course it was still broken today - well, the display portion was at least.

    While continuing to work on this, since I could see the Manage box, I decided to try to tab to it, and it worked. I pressed enter with it highlighted and I was able to manage it.

    Now my goal was to set it as default, the set as default button was missing. After some searching around, I realized that the "Let Windows manage my default printer" box had become rechecked. After unchecking it, and once again using the tab trick to get into manage the MS Print to PDF feature, I was able to set it as the default printer.

    So I've found a work-a-round, but the display issue is still there so I don't consider the issue resolved.

  • Ads in Windows 10

    20
    1 Votes
    20 Posts
    2k Views
    DashrenderD

    @DustinB3403 said in Ads in Windows 10:

    @Curtis said in Ads in Windows 10:

    @Dashrender We are having this issue now too. What did you decide to do?

    I believe he disabled just the individual source of the notifications. In this case the Chrome notifications from the shady websites.

    Yep, that's what I did - disabled the specific website that the user had allowed to notify.

  • Discussing with management switching to VOIP ...

    21
    0 Votes
    21 Posts
    2k Views
    SkyetelS

    @Pete-S said in Discussing with management switching to VOIP ...:

    @Skyetel said in Discussing with management switching to VOIP ...:

    @Pete-S said in Discussing with management switching to VOIP ...:

    @BraswellJay said in Discussing with management switching to VOIP ...:

    No internet - no phones : this is an issue in that we don't have redundancy on our network link, but there has not been any network outage since the fiber was installed at this particular site several years ago. Not sure what I can do on this short of say we could keep a POTS line or two for emergencies but that of course starts to eat into the cost savings some also.

    Maybe you can setup a 4G link as redundancy instead. Voip traffic doesn't require that much bandwidth so even if you only get 2 Megabit/s or something it is still plenty.

    I would suggest against this - a lot of the 4G carriers do crazy things with NAT that SIP Trunks really really do not like. We run into CGN problems all the time:
    https://en.wikipedia.org/wiki/Carrier-grade_NAT. It also can create issues with UDP Fragmentation.

    But if you are using a hosted PBX is that really an issue?

    You can mitigate it somewhat, but yea, its still an issue. The best way to get around it with a hosted PBX is to use a VPN between the phone and the PBX. That will bypass most of the NAT issues and keep the phones routing the way they should. You can still get dropped calls though.