Category Archives: PowerShell

Get-QADUser | Reference

Posted by ITomation

Get-QADUser   Retrieve all users in a domain or container that match the specified conditions.   Syntax Examples Description Parameters   SYNTAX Get-QADUser [[-Identity] <IdentityParameter>] [-AccountExpiresAfter <DateTime>] [-AccountExpiresBefore <DateTime>][-AccountNeverExpires] [-Activity <string>][-Anr <string>][-AttributeScopeQuery <string>] [-City <string[]>][-Company <string[]>] [-Connection <ArsConnection>] [-ConnectionAccount <string>][-ConnectionPassword <SecureString>] [-Control <hashtable>][-CreatedAfter <DateTime>][-CreatedBefore <DateTime>] [-CreatedOn <DateTime>][-Credential<PSCredential>][-Department <string[]>] [-Description <string[]>][-Disabled] [-DisplayName <string[]>] [-DontConvertValuesToFriendlyRepresentation][-DontUseDefaultIncludedProperties] [-Email <string[]>] […]

Store Credentials in PowerShell

Posted by ITomation

Store Credentials in PowerShell   From time to time, we have to perform actions in a PowerShell script for which the user account executing the script does not have sufficient privileges. We usually get around this by performing those specific actions using a different user’s credentials in our script. For example, we have an on-premises […]

Call PowerShell Scripts from VBScript

Posted by ITomation

In another post, we demonstrated how to call PowerShell commands from VBScript. That method makes sense for simple one-line PowerShell commands. But what if we want to call long blocks of PowerShell code from within VBScript? Like an entire PowerShell script. Worry not…it’s just as simple, if not simpler!   Instead of calling the PowerShell code […]

Get My Public IP Address Using PowerShell

Getting your public IP address programmatically can be very useful. Especially if you need to know when your internet service provider (ISP) has changed your dynamic IP address. Here is how to get your public IP address using PowerShell: (Invoke-WebRequest Read on for more background and details…  

Get Last Patch Date Remotely Using PowerShell

Posted by ITomation

Sometimes you may need to know a server’s last patch date. There can be many reasons why. One of which is when you are patching servers and want to get a general idea of whether or not the patching actually took place on each server.   In this example we are are going to use […]

Call PowerShell Commands from VBScript

Posted by ITomation

In this post, we demonstrate how to call PowerShell commands from VBScript. The method discussed here allows us to pass the output of a PowerShell command back into a VBScript variable.   Why would one ever want to call PowerShell commands from VBScript? A variety of possible reasons we are not concerned with. Let us […]