IE, ADFS, and Overkill

I do some testing that requires I not use Active Directory Federation Services (ADFS), which is an otherwise-convenient way to authenticate me against web sites via my Active Directory token.  I used to start IE in Private Mode to do that, but it still sometimes-but-not-always redirects me to where I don’t want to go.  Using…

0

8.3, the Undead Path

8.3 is a common reference to the DOS name limit of 8 characters for the filename and 3 characters for the file extension.  E.g.: command.com. NTFS did away with that, but it still haunts us in the form of legacy .BAT files that can’t handle file paths with space characters in them (and may blow…

0

PowerShell One-Liner: Removing a System Variable

We’ve learned we can create system variables on a remote machine with the setx.exe command: PSH> setx -m remote.machine My_System_Variable VariableData However, setx doesn’t give us a way to remove the variable. PSH> (new-object -com wscript.shell).environment(“system”).remove(“My_System_Variable”) Why we have non-orthogonal commands like this is beyond me, but here at least is a way to work…

0

PowerShell for Non-N00bs: Symlinks

Here’s how to create a shortcut in PowerShell.  Actually, it’s how to create a shortcut with COM in PowerShell function New-ShortCut {     param (         [string]$target = $null,         [string]$name = $target,         [string]$parent = (Get-Location).ToString(),         [string]$iconLocation,         [switch]$help     );     if ($help -or !$target) { @” New-Shortcut -target <string> -name <string>…

0