Scripting Blog

A place to learn about PowerShell and share stories of automation

PowerTip: Disconnect sessions to ISCSI target with PowerShell

Summary: Learn how to disconnect sessions to a specified ISCSI target with Windows PowerShell.  How can I use Windows PowerShell to disconnect sessions to a ISCSI target object?  Use the Get-ISCSITarget cmdlet to retrieve the target, and then supply it as a node address for Disconnect-ISCSITarget, for example: Get-IscsiTarget $Tar = Get-...

PowerTip: Enable and disable ODBC performance counter settings with PowerShell

Summary: Learn how to enable and disable a collection of ODBC performance counter settings for troubleshooting.  How can I use Windows PowerShell to enable the ODBC performance counters, run commands in a script, and then disable the counters?  You can store a returned object for later use when you enable the performance counters by using ...

PowerTip: Enable PerfMon counters for ODBC connection pooling with PowerShell

Summary: Learn how to use Windows PowerShell to enable Windows Performance Monitor counters for ODBC connection pooling.  How can I use Windows PowerShell to enable Windows Performance Monitor (PerfMon) counters so I can troubleshoot Open Database Connectivity (ODBC) connection pooling?  Use the Enable-ODBCPerfCountger cmdlet and specify ...

PowerTip: Use PowerShell to disable constrained delegation

Summary: Learn how to use Windows PowerShell to disable constrained delegation.  How can I use Windows PowerShell to disable constrained delegation authorization so that a user who is remotely connected to a SMB server cannot configure resources?  Use the Disable-SmbDelegation cmdlet, and specify the client and the SMB server, for example: ...

Feedback usabilla icon