Check if IIS running on a remote server check if object is $null Check if OS is 32bit or 64bit check If Process Is Running in another computer Check if SMB1 is enabled on the AD servers Check if string contains invalid characters Check if string starts with letter/character. check ...
If the regular expression contains capture groups, the $Matches contains additional keys for each group. It's important to note that the $Matches hashtable contains only the first occurrence of any matching pattern. Example: PowerShell Copy $string = 'The last logged on user was CONTOSO...
To return all properties, use the * wildcard character as the parameter value. PowerShell Copy Get-ADUser -Identity mike -Properties * | Get-Member -MemberType Properties Output Copy TypeName: Microsoft.ActiveDirectory.Management.ADUser Name MemberType Definition --- --- --- AccountExpiration...
If you assign a character range to a string, it's treated the same assigning a character array to a string. PowerShell PS> [string]$s='a'..'e'$sa b c d e$a='a','b','c','d','e'$aa b c d e The characters in the array are joined into a string. The characters are ...
This is a 2-character code that is used to assign licenses (e.g. $countryCode)" try { $Error.Clear() Set-MsolUser -UserPrincipalName $credNewAccount.UserName -UsageLocation $loc } catch{} if ($Error) { $status["Office 365 License"] = "Failed to assign an Office 365 license to ...
Type:String Position:Named Default value:None Required:False Accept pipeline input:False Accept wildcard characters:False -InputObject Specifies the text to be joined. Enter a variable that contains the text, or type a command or expression that gets the objects to join into strings. ...
If the value contains spaces, enclose the value in quotation marks ("). Expand table Type: String Position: Named Default value: None Required: False Accept pipeline input: False Accept wildcard characters: False Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, ...
For a wildcard certificate, use a SubjectName value that contains the wildcard character (*). For example, C=US,CN=*.contoso.com. Type:X500DistinguishedName Position:Named Default value:None Required:False Accept pipeline input:False Accept wildcard characters:False ...
To inspect the ZIP package created by the publish cmdlet I used the -ConfigurationArchivePath parameter, which saves the package to a local file instead of uploading it to Azure storage (NOTE: I typed the command below in two separate lines using the ` character; the >>> cha...
ProviderPath Property string ProviderPath {get;} The easiest way to see the additional properties is to pipe the object returned byGet-Locationto theFormat-Listcmdlet and select all of the properties by using the asterisk wildcard character. This command and its associated output are shown here...