Michael Wu

The Life of a Cloud Engineer

  • Home
  • Resume
  • Blog
  • Contact

How to search users across active directory domains in PowerShell (Global Search)

Posted on 10.07.16

In a big organization, there could be several domains. When users are moved across the domains, I need a script to identify what users are from other domains. In my test environment, I set up an Active Directory infrastructure according to the following diagram from TechNet. I have 3 domain { Read More }

Set Unix Attributes LoginShell from Active Directory with PowerShell

Posted on 08.12.16

This post will show you how to update the Unix Properties (LoginSehll in this example) in AD object using PowerShell. If you don`t see the UNIX Attributes tab in the AD Object Properties, you can install Identity Management for UNIX Components. As you can see in the screenshot above, I would like to { Read More }

Add Custom Task Sequence Variables and Read them in PowerShell

Posted on 08.09.16

Custom Task Sequence (TS) Variable is useful when we have different Images deployments. We can setup the variable to control what application or software should be deployed by reading those variables. PowerShell MVP Stéphane van Gulick provides the awesome OSD tattoo script to manipulate task sequence { Read More }

How to update the Home Directory in User profile by PowerShell

Posted on 06.27.16

Some users complained about their drive is not mapping on the computer. After some researches, we found the path was blank on their Home folder in the profile. So, I created a PowerShell script to fix it massively. I use the "if loop" to check if the home directory path is blank. If it is { Read More }

PowerShell: speed up Get-ChildItem to scan files in a large file system

Posted on 06.20.16

I wrote a PowerShell script for scanning PST files in the file system. The part of script likes the below code. However, it takes very long time to complete the scan. It took about 19-21 hours to scan PST files in the 28 TB file system. I found the key point to slow down the scan is the line { Read More }

Add data into SQL database by PowerShell Script – ExecuteNonQuery with 0 arguments: Incorrect syntax near ‘S’

Posted on 06.16.16

I have a PowerShell script for PST scan in the file system. The result is in a PSObject. When I added the result into SQL database, it threw an error. After debugging, I found that the error "ExecuteNonQuery with 0 arguments: Incorrect syntax near 'S'" was from a directory path. Here is the part { Read More }

Select random objects from a list by PowerShell

Posted on 06.13.16

I run a giveaway campaign recently. After the campaign end, I will have to select a winner. In the beginning, I was thinking that open a book on the random page to select a winner. However, it is not professional, and it cannot be recorded. So, I decide to write a PowerShell script for it. I am { Read More }

How to create a Sha256 Self-Signed Certificate for SMTP secure communication by CertReq

Posted on 04.13.16

The goal of this post is to create a sha2 TLS certificate for SMTP. Create a Domain Certificate with Sha2 in the template will work. However, if you don`t have a CA in your domain, a self-signed certificate will be a good choice for testing. The self-signed certificate created by IIS Manager will work but { Read More }

How to deploy the LAPS by SCCM – Part 3

Posted on 04.04.16

In this series of posts, I will demonstrate the steps to deploy Local Administrator Password Solution(LAPS) by SCCM. This is the third post that shows the deployment procedure in server side and how to check the password. You can also check the other posts by the below links: How to deploy the LAPS by { Read More }

How to deploy the LAPS by SCCM – Part 2

Posted on 04.01.16

In this series of posts, I will demonstrate the steps to deploy Local Administrator Password Solution(LAPS) by SCCM. This is the second post covered the deployment procedure in SCCM. You can also check the other posts by the below links: How to deploy the LAPS by SCCM - Part 1 How to deploy the LAPS by { Read More }

  • « Previous Page
  • 1
  • 2
  • 3
  • Next Page »

Recent Posts

  • Automating Resource Restriction in Azure subscriptions with Budget Alert, Automation Account, and Azure Policy
  • How to configure the Security Center via Azure Resource Manager (ARM) template
  • How to restrict Account Operators to see the password in LAPS
  • How to join a VM to a domain by PowerShell in Azure
  • How to push an existing repository from VS Code to Azure DevOps by PowerShell

Search

Categories

  • Azure
  • IIS
  • PowerShell
  • SCCM
  • VMware
  • Windows Server

Contact

Email: [email protected] | Powered By the 太初網路

Copyright © 2024 mikewu.org Disclaimer

Connect

FacebookTwitterGoogle +Linkedin