Scripts Archives - One admin's notes https://www.kondaurov.me/category/scripts/ PowerShell, Office 365, Azure and automation Tue, 18 Jul 2023 16:12:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.kondaurov.me/wp-content/uploads/ms-icon-310x310-150x150.png Scripts Archives - One admin's notes https://www.kondaurov.me/category/scripts/ 32 32 Add Windows local users and admins by PowerShell https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/ https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/#respond Fri, 16 Jul 2021 10:07:48 +0000 https://www.kondaurov.me/?p=396 Once I got a task to create Windows Server local users on 10 machines and give them Admin permissions. I’ve found that I’d rather automate and be effective. I prefer to spend 10 minutes writing a script and 10 minutes running it rather than spending 30 minutes for manual job. This small …

The post Add Windows local users and admins by PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/feed/ 0
Send test email with PowerShell https://www.kondaurov.me/2021/send-test-email-powershell/ https://www.kondaurov.me/2021/send-test-email-powershell/#respond Fri, 21 May 2021 10:09:01 +0000 https://www.kondaurov.me/?p=285 It is a quite common situation. when you need to send an email from a PowerShell script that contains a status report or another kind of data. Nevertheless, before you can send a normal email you would like to run a quick test to confirm that you can send email from this …

The post Send test email with PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/send-test-email-powershell/feed/ 0
AD DC replication test using PowerShell https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/ https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/#respond Mon, 05 Apr 2021 13:15:37 +0000 https://www.kondaurov.me/?p=223 I believe that every server, and a Domain Controller especially, should be tested after a restart or another kind of maintenance job. The task to test AD DC replication test using PowerShell needs to be executed on each DC in AD. My team asked me if there is a way to automate Active …

The post AD DC replication test using PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/feed/ 0
Packer on VMWare : Collection of errors https://www.kondaurov.me/2020/packer-on-vmware-collection-of-errors/ https://www.kondaurov.me/2020/packer-on-vmware-collection-of-errors/#respond Thu, 10 Sep 2020 04:51:11 +0000 https://www.kondaurov.me/?p=186 When I was doing a configuration for Packer to build VM templates on VMWare I spent quite a while troubleshooting the solution. Please see my collection of errors. Hope that helps you to find your way out. I was using “vsphere-iso” driver.  If you are looking for a good explanation with all …

The post Packer on VMWare : Collection of errors appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2020/packer-on-vmware-collection-of-errors/feed/ 0
Find Azure Linux image ID or URN using PowerShell https://www.kondaurov.me/2020/find-azure-linux-image-id-or-urn/ https://www.kondaurov.me/2020/find-azure-linux-image-id-or-urn/#respond Fri, 24 Jul 2020 09:31:48 +0000 https://www.kondaurov.me/?p=93 One day, I was playing with Chef test kitchen in Azure. There was only one option – to use azurerm driver. There was heaps of examples for Ubuntu or Windows server, but I needed SUSE. It is not a big deal to provision from Azure portal, but how can I do that with …

The post Find Azure Linux image ID or URN using PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2020/find-azure-linux-image-id-or-urn/feed/ 0
KB: Checking for Office 365 users UPN and Mail attributes match https://www.kondaurov.me/2020/checking-office365-users-mail-attributes/ https://www.kondaurov.me/2020/checking-office365-users-mail-attributes/#respond Tue, 14 Apr 2020 11:39:36 +0000 http://www.inode.ru/?p=41 10 Aug 2019 a KB was released about possible issues with modern authentication for Outlook users. Users might be affect if their account attributes UserPrincipalName (UPN) and Mail not match. I was involved with remediation process. Was thinking it might be helpful for others if the information about how to do checking …

The post KB: Checking for Office 365 users UPN and Mail attributes match appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2020/checking-office365-users-mail-attributes/feed/ 0
Azure Linux VM performance tuning https://www.kondaurov.me/2020/azure-vm-optimisations/ https://www.kondaurov.me/2020/azure-vm-optimisations/#respond Mon, 23 Mar 2020 10:51:16 +0000 http://www.inode.ru/?p=59 I was looking for options, what I can do in Azure to speed up (optimize) a stack of servers for one business application. They were built approximately 2 years ago, and some features were not available at that time. Good that machines running on quite fresh version of Linux that has a …

The post Azure Linux VM performance tuning appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2020/azure-vm-optimisations/feed/ 0
Office 365 PowerBI activity report https://www.kondaurov.me/2019/office365-powerbi-activity-report/ https://www.kondaurov.me/2019/office365-powerbi-activity-report/#respond Mon, 08 Jul 2019 12:42:50 +0000 http://45.79.141.84/?p=22 My colleagues asked me to get an Office 365 PowerBI user activity report. Not just a one time, but to get it regularly for a month. The purpose of that report is to identify who use PowerBI and know not, so they can safely revoke a PowerBI Pro license. I started thinking …

The post Office 365 PowerBI activity report appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2019/office365-powerbi-activity-report/feed/ 0