PowerShell icon indicating copy to clipboard operation
PowerShell copied to clipboard

Various PowerShell functions and scripts

Results 25 PowerShell issues
Sort by recently updated
recently updated
newest added

In my application, I needed to differentiate between users not mapped and domain trust issues. I thought the change may be useful for others too. Thanks for writing a terrific...

This may be simple,but i tried many variations of below script...Any suggestions would be greatly helpfull ``` $scriptblock ={ get-service -ComputerName $parameter.computername | where {$_.name -eq $parameter.serviceName } } $pscustomobject...

Hi, First of all, thank you for the code - even now, it still provides much value. And I think it's worth a PR. I run Invoke-SqlCmd2 with a combination...

- Added a parameter called "OutputFile" to allow to output "PRINT" results to a file - Fixed an issue when calling Invoke-SQLCmd2 multiple times with -Verbose option (added a call...

Hi, I tried the script and it seems it has some problems enumerating hidden tasks and nested folders tasks. This patch should fix it - tried on Win10, Win2008R2 and...

Hi Warren First, many thanks for the script, it is very helpful. From time to time the Idle Time appears as "24692+13:29". Then errors appear in the script. I have...

help wanted

You can add multiple [System.Management.Automation.ParameterAttribute] to a ['Collections.ObjectModel.Collection[System.Attribute]] which allows you to assign multiple parametersetnames to a dynamic parameter.

Warren - Just noticed this when working with RVTools data from Excel and importing it to a database. Have some empty columns that are adding as empty strings in the...

Hi, In Invoke-Parallel i am creating a new disk with a command New-AzureRmDisk, then it gives an error: **Get-RunspaceData : The term 'New-AzureRmDisk' is not recognized as the name of...

`SqlCmd` allows you to pass variable values that can be used in scripts: ``` & sqlcmd -i CreateDb.sql -v dbName="foo" ``` `CreateDb.sql`: ``` CREATE DATABASE $(dbName) ON ( NAME =...