Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Disconnect sessions to ISCSI target with PowerShell

Summary: Learn how to disconnect sessions to a specified ISCSI target with Windows PowerShell. (image)  How can I use Windows PowerShell to disconnect sessions to a ISCSI target object? (image)  Use the Get-ISCSITarget cmdlet to retrieve the target, and then supply it as a node address for Disconnect-ISCSITarget, for example: 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. (image)  How can I use Windows PowerShell to enable the ODBC performance counters, run commands in a script, and then disable the counters? (image)  You can store a returned object for later use when you enable the performance ...

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. (image)  How can I use Windows PowerShell to enable Windows Performance Monitor (PerfMon) counters so I can troubleshoot Open Database Connectivity (ODBC) connection pooling? (image)  Use the Enable-ODBCPerfCountger ...

PowerTip: Use PowerShell to disable constrained delegation

Summary: Learn how to use Windows PowerShell to disable constrained delegation. (image)  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? (image)  Use the Disable-SmbDelegation cmdlet, and specify the client and the SMB ...