List architecture of all files in a folder

13. September 2020 Uncategorized 0
Familiar with exception BadImageFormatException? Yeah, that still happens as not everyone compiles with Any CPU and when you get one of those, in a service that has like 200 files, you find yourself struggling to understand which exactly file (or files) are not in the suitable architecture (aka bitness). When I got it and began ...

Ooh, Shiny!

I finally got a domain I like – Patrick.Dev and after several try-and-fail attempts to configure WordPress, succeeded creating it under BlueHost provider. Which actually not only saved me a few bucks but was also extremely easy to install and configure and have reach configuration options available (plugins, themes, statistics, etc.). Recommended! Anyway, here is ...

How to add DC to domain via PowerShell?

Another question: how to add a monitored DC via Varonis PowerShell module? I have to disappoint a little here, as though the cmdlet exists, its interface required improvement (in queue). I wouldn’t recommend using its current version, but if you are must – then go ahead (it is working and supported – e.g. for any ...

How to change domain’s Monitor Accounts via PowerShell?

Domain object has various properties, which unfortunately not always correspond to their titles in UI. That’s because UI titles tend to change with a time and translations, but API doesn’t change. One of the properties that is often asked to change is “Monitor Accounts”: The corresponding property in domain object is called IsActive and can be ...

How to wait for job completion in Varonis PowerShell?

Introduction In general, many cmdlets are returning a command id, which can be then used to test if the process completed or not. Example cmdlets that do that – Add-FileServer, Set-FileServer and similar for probes, collectors and domains. Also Start-VaronisJob does the same. Checking for completion and errors To test if the job has completed, pass the result of those ...

Varonis PowerShell: Adding and removing Windows file server

How to add Windows file server by using Varonis PowerShell? It is rather easy, following the same guidelines as outlined in first post: call to New-WindowsFileServer to create a new object and then Add-FileServer to commit the changes. Going deeper – we can explore various configuration options of the object returned by New-WindowsFileServer. It contains property Config which ...

Automating Azure VM creation

For one of the projects I needed to re-create a VM over and over. So at some point it was very annoying to do the same dumb work more than twice. I have decided to write a PowerShell script that does that for me. Of course I didn’t stop with a single VM, instead came up ...