• Piggy Bank

    6
    3 Votes
    6 Posts
    751 Views
    stacksofplatesS

    @jmoore said in Piggy Bank:

    If I get time tonight I will look at this and test it to see how it works for me.

    It's def still alpha so don't have high hopes lol.

  • Relative path in batch

    10
    1 Votes
    10 Posts
    361 Views
    DashrenderD

    @flaxking said in Relative path in batch:

    .\ Won't necessarily refer to the folder the script is in, it will refer to the working directory at the time that the script is launched.

    %~dp0 refers to the directory the script is in, but I don't recall if it works for Network shares.

    Good point. mapped drives would help this, even if you're mapping it long enough for the script to run, then unmapping it at the end.

  • Getting up and running with ER-X?

    25
    0 Votes
    25 Posts
    3k Views
    notverypunnyN

    @JaredBusch Might take another look then... My FTTH comes in as a tagged VLAN and it wouldn't pick up a dhcp lease on v2, even after a few reboots but once I downgraded to v1 it picked up the lease from the ISP right away.

  • 0 Votes
    6 Posts
    633 Views
    J

    O365 has this built-in. Check Exact Data Match (EDM), and Data Loss Prevention (DLP).

    You define what makes a document HIPAA restricted (EDM) (or for any other other reason if you wish, it does not have to be a HIPAA issue), and then you create a rule about how any document meeting that EDM can be viewed or distributed (DLP).

    In a nut shell; Let's say you have documents with Social Security numbers, you create an EDM to identify SS #s in documents (this happens as you access them) and it flags them as having met the criteria for one of your EDM rules.

    Then, your DLP rule can, for example, only allow the document to travel through email within your domain, or within a group (department, C level employees, etc). It can disallow the document from being downloaded or printed, etc.....

    Have a look here: https://docs.microsoft.com/en-us/microsoft-365/compliance/create-custom-sensitive-information-types-with-exact-data-match-based-classification?view=o365-worldwide

  • How to find "None" tags on Mesh Central

    1
    3 Votes
    1 Posts
    253 Views
    No one has replied
  • Patching configuration files

    12
    0 Votes
    12 Posts
    1k Views
    stacksofplatesS

    Yeah this is bread and butter for config management tools. You'd either use a template for the config or the lineinfile module for Ansible.

    Your template would have something like this:

    PermitRootLogin {{ root_login_enabled }}

    In it and then you can control which servers allow root login with the root_login_enabled variable.

  • Out of office auto reply best practice

    4
    0 Votes
    4 Posts
    358 Views
    scottalanmillerS

    @AshKetchum said in Out of office auto reply best practice:

    We noticed that the employee that left the company 6 months ago still has an active auto-reply. what is the best practice and how long should auto-reply for terminated employees?

    We send email bound for "dead" accounts to someone else so that we can respond. So for us, the duration is "zero".

  • Router/firewall recommendations for small branch office

    74
    0 Votes
    74 Posts
    9k Views
    jmooreJ

    @krisleslie How is it better? It would take a lot for synology to be better than ubnt in my opinion. Not saying it isnt possibe, just asking the details is all.

  • Searching for text in file

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    dafyreD

    @Obsolesce said in Searching for text in file:

    @dafyre said in Searching for text in file:

    @Pete-S said in Searching for text in file:

    If you have a text file that looks like this:

    start_folder='/folder1/abc.txt' iterations='123' passphrase='xyz' last_command='invoke' return_value='0'

    How can you pick out just xyz when looking for "passphrase"?

    I know grep will get me the line but what should I use if I want just a part of the line?
    Can it be done in one command or do I have to pipe several together?

    If you the text has a character that would be a good delimiter, you can pipe grep to cut... ie:

    cat myfile.txt|grep "iterations"|cut -d '=' -f 2 Output: '123'

    the -f # is which column you want.

    There may be other ways to do it, but that's the first way I can think of.

    You can specify a file with grep, no need to pipe in from cat.

    This is true! I always seem to get it backwards when I do that, so i just cat $thefile | grep | blah ... Cuts down on frustration, ha ha.

  • Linux History: Not clearing between -

    Solved
    24
    0 Votes
    24 Posts
    1k Views
    stacksofplatesS

    @IRJ said in Linux History: Not clearing between -:

    Also, what if an incorrect command screws something up? Then you lose your ability to check history for troubleshooting. You should never be deleting any history.

    I use zsh with autocomplete so I rely on history pretty heavily

  • 0 Votes
    41 Posts
    3k Views
    DustinB3403D

    @dafyre Thanks, testing now to see if it works (as expected).

  • Testing Zulip

    113
    1 Votes
    113 Posts
    15k Views
    scottalanmillerS

    @Emad-R said in Testing Zulip:

    @scottalanmiller

    I hated zulip for the same thing, sad to hear the Rocketchat. So push notifications is only affecting mobile users or all users ?

    Mobile users. And all their info is fuzzy. They've not exposed metrics to know what you use, and they keep saying you have to register but even putting in quite a bit of time to do so, I can't find any registration information. Their forums are full of people complaining that there is no transparency, the limits are BS, and nothing works. But that's all the info I can find.

  • NextCloud SSL Cert

    Unsolved
    7
    0 Votes
    7 Posts
    954 Views
    JaredBuschJ

    @scottalanmiller said in NextCloud SSL Cert:

    @JaredBusch hard to resist the call of the Natty Light.

    I ran out of Blue Moon.

  • MeshCentral Starring Devices Feature

    1
    3 Votes
    1 Posts
    369 Views
    No one has replied
  • Utility to change raw data?

    5
    0 Votes
    5 Posts
    231 Views
    scottalanmillerS

    @Pete-S said in Utility to change raw data?:

    I think I might have a solution with dd and printf.

    printf "8718\r\n0x23abc\0x00" | dd of=raw.bin seek=2345 oflag=seek_bytes

    Something like that.

    Interesting. Makes sense though.

  • 0 Votes
    12 Posts
    2k Views
    scottalanmillerS

    @marcinozga said in Install Skyetel Postcards on CentOS 7:

    @scottalanmiller said in Install Skyetel Postcards on CentOS 7:

    @marcinozga said in Install Skyetel Postcards on CentOS 7:

    @black3dynamite said in Install Skyetel Postcards on CentOS 7:

    Still preferred fallocate instead of dd to create a swap file?

    dd if=/dev/zero of=/swapfile count=4096 bs=1MiB && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo "/swapfile swap swap defaults 0 0">>/etc/fstab

    Still using swap file? Memory is cheap. I don't recall a server where I created swap partition or swap file.

    Memory is NOT cheap, not at all.

    It is if you own it. If you rent your hardware, yeah, it adds up.

    Even if I own it, throwing away 2-3GB of RAM makes no sense. Now, if I own it, I can easily assign 4GB of RAM then remove it once installed, by why? That's harder to script and still no benefit.

    It's a bad habit to see resources as cheap and so waste them just because you can. Extra memory doesn't improve performance, it hurts it (just the tiniest bit). And it's not free, if you always apply twice as much RAM as you use (or four times, here), that gets costly one way or another. Either you wasted money overspeccing in the beginning, or you are stuck buying more now.

  • VMWare PowerCLI to check compliance in v7

    1
    2 Votes
    1 Posts
    238 Views
    No one has replied
  • Ubiquiti announce EOL list

    1
    3 Votes
    1 Posts
    4k Views
    No one has replied
  • Recovering SQL Server 2005 Databases

    28
    0 Votes
    28 Posts
    3k Views
    O

    @scottalanmiller said in Recovering SQL Server 2005 Databases:

    Anyone had any luck mounting SQL Server 2005 MDF/LDF to a new SQL Server version
    You can move SQLServer 2005 to a new Server version by following this guide: https://solutioncenter.apexsql.com/restore-sql-server-backup-to-a-newer-version-of-sql-server/

  • Building your own lab

    39
    0 Votes
    39 Posts
    2k Views
    black3dynamiteB

    @openit said in Building your own lab:

    @scottalanmiller @Pete-S
    Do we have any complete post or article on ML which describes how to build a Lab with design, like server, switch etc. arrangement.

    Really appreciate, if someone can provide any links, which gives complete lab design, to prepare me as a good Windows System Administrator, which should include all tasks, activities a typical SysAdmin requires.

    https://www.servethehome.com/

    Some tasks would be setting up a monitoring alert system that alerts you of reboots, account lockouts, high CPU usage, disk usage, network, etc. Get familiar with using PowerShell to manage your Windows systems. Setting up a Dev or test to in order test your Windows or 3rd party applications before deploying to production.