PowerShell Snippets/Scripts
Function
Create a function and return the value function CombineString () { [CmdletBinding()] p...
If-Else Statement
if ($computertype -eq "64bit"){ $result = "64bit" } elseif ($computertype -eq "32bit") { ...
Directory Tree Size Script
Code: Function Get-DirectoryTreeSize { <# .SYNOPSIS This is used to get the file count, s...
PSObject
Code: # Dummy Data $name = "John Doe" $age = 29 $gender = "Male" $desc = "Nameless Person" ...
Folder Directory to ISO file Script
Change the following:Line 80 -> Source DirectoryLine 81 -> Output File function New-IsoFile { ...