Quantcast
Channel: PowerShell Basics Archives - TechGenix
Browsing all 84 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to assign network security groups in Azure using PowerShell

Security is a top priority for any cloud provider, and it must have the same priority for any IT department when moving their applications and infrastructure to the cloud. When using Microsoft Azure,...

View Article


Image may be NSFW.
Clik here to view.

Quick take: Using PowerShell split method for Azure scripts

When running scripts in Microsoft Azure, the PowerShell split method can be a handy tool in your arsenal. A good example is when getting resourceID of any given object. Let’s use for example the output...

View Article


Image may be NSFW.
Clik here to view.

Automating Active Directory tasks with PowerShell

PowerShell is a powerful tool that administrators can use for automating many different kinds of tasks in a Windows environment. One area where PowerShell’s capabilities can be particularly helpful is...

View Article

Image may be NSFW.
Clik here to view.

Check mailbox auditing status in Exchange Online with PowerShell

There are several health check and compliance items that can be used in Office 365 to ensure your organization meets with the compliance controls and standards. Microsoft provides PowerShell modules to...

View Article

Image may be NSFW.
Clik here to view.

Quick tip: Saving PowerShell cmdlet output to the clipboard

If you are a PowerShell user, you probably are a big fan of the export-csv when you need to create a CSV file. We can use the same principles to copy the output content of any given PowerShell cmdlet...

View Article


Image may be NSFW.
Clik here to view.

Managing your users’ cached credentials with PowerShell

One of the more frustrating things about modern computing is that nearly every resource that a user accesses requires a password, and ideally (at least from a security standpoint) users should be using...

View Article

Image may be NSFW.
Clik here to view.

Quick tip: Using Azure Network Watcher Next Hop in PowerShell

Sometimes we need the agility of PowerShell to execute simple Azure Network Watcher tasks. In this blog post, we are going to cover the steps required to use the Next Hop tool. The following PowerShell...

View Article

Image may be NSFW.
Clik here to view.

Using PowerShell to assess Active Directory health

Although there are plenty of pricey tools available for monitoring the health of your Active Directory environment, it is also possible to use PowerShell as an alternative. PowerShell is part of the...

View Article


Image may be NSFW.
Clik here to view.

Collecting deleted Office 365 users license status with PowerShell

There are several health check and compliance items you can think of when it comes to checking your Office 365 subscription. For example, you can check if all admins have MFA enabled or not. Similarly,...

View Article


Image may be NSFW.
Clik here to view.

Check Exchange Online storage mailbox policies with PowerShell

There are many health check and compliance items that can be employed in Office 365 to ensure your organization meets with the compliance controls and standards. Microsoft provides PowerShell modules...

View Article

Image may be NSFW.
Clik here to view.

Exchange Online mailboxes capabilities: Check them with PowerShell

Microsoft provides Office 365 PowerShell modules to work with services such as Exchange Online, Office 365 WAAD, SharePoint Online, Microsoft Teams and so on. One of the tasks that every admin performs...

View Article

Image may be NSFW.
Clik here to view.

Collecting Office 365 mailboxes with external forwarding using PowerShell

Every organization needs to ensure that corporate documents and data are not forwarded to an external mailbox. But beware, the mailboxes in Office 365 can be configured to allow external forwarding —...

View Article

Image may be NSFW.
Clik here to view.

PowerShell function to standardize message box script outputs

I always try to save time and keep consistency as much as I can on my daily tasks. I was thinking about that when writing a script to one of my customers and I had to deal with outputs as part of the...

View Article


Image may be NSFW.
Clik here to view.

Using JSON with PowerShell: A guide for IT professionals

If you are an IT professional and part of your activities is to manage Microsoft Azure, coding scripts, or Kubernetes, then JSON and YAML files should be part of your daily routine. In this article, we...

View Article

Image may be NSFW.
Clik here to view.

WMI or CIM in your PowerShell scripts: Which should you use?

A few months ago, I presented a PowerShell-related session at a tech conference. Following my presentation, someone asked me if they should be basing their PowerShell scripts around the use of WMI or...

View Article


Image may be NSFW.
Clik here to view.

Color-coding PowerShell operating system health reports

One of PowerShell’s greatest strengths is its ability to provide detailed information about operating system health. In my own environment, I have a number of different scripts that I periodically run...

View Article

Image may be NSFW.
Clik here to view.

PowerShell parameters: Controlling the input of your scripts

When coding your PowerShell scripts, an essential part is the definition and validation of the parameters that are required to make it run properly. PowerShell has several options to help the IT...

View Article


Image may be NSFW.
Clik here to view.

PowerShell Quick Tip: Consistent output in Azure Automation Accounts

I have previously made available a simple function to help show output when running PowerShell, and I called it msgbox. Recently, I was working with Azure Automation, and my goal was to make a...

View Article

Image may be NSFW.
Clik here to view.

Creating Hyper-V VMs from a CSV file with PowerShell

If you find yourself routinely having to create large numbers of virtual machines, then one way of expediting the process is to create a script that builds VMs based on the contents of a CSV file. The...

View Article

Image may be NSFW.
Clik here to view.

PowerShell Quick Tip: Track the time it takes for your scripts to run

When running PowerShell scripts it is always good to measure the time that your script is taking to complete any given task. I wrote a small function that you can use on your scripts at the start and...

View Article
Browsing all 84 articles
Browse latest View live