Tag Archives: user

Standard user launching a command with elevated credentials

I needed standard users to be able to run certain executables with administrator credentials, but ideally without wanting to give them an administrator account and password, and certainly without adding them to the Administrators group. I also needed a log … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

PowerShell: Active Directory User to SID and SID to User

I was recently asked to find the username associated with a particular Active Directory SID (technically I was given the RID). This is actually pretty easy in PowerShell, and quite intuitive using basic AD cmdlets. Get the user for a … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , | 1 Comment

PowerShell: Monitor changes to a folder

This uses a FileSystemWatcher object and its WaitForChanged method, which is rather nifty way to not use much resource to keep track of file system changes. What we’re NOT doing here is polling the folder contents. I’m then trying a … Continue reading

Rate this:

Posted in PowerShell, Security | Tagged , , , , , , , , , , , , , , | Leave a comment

RDSH 2012 R2: Shadow Users without Connection Broker admin rights

It seems as though the only way to use the PowerShell Get-RDUserSession cmdlet against the Connection Broker is if the user running the command is a member of the¬†¬†Administrators group on the Connection Broker server. This might be undesirable…! This … Continue reading

Rate this:

Posted in Remote Desktop, Windows | Tagged , , , , , , , , , , , , , | 2 Comments

PowerShell: Finding user sessions on RDSH servers

If you’ve been working with Citrix Metaframe/Presentation Server/XenApp and/or Microsoft Terminal Server/Terminal Services/Remote Desktop Session Host for a while you’ll probably be familiar with the command line utility quser (or query user). It returns a tabular output showing details of … Continue reading

Rate this:

Posted in PowerShell, Remote Desktop, Scripting | Tagged , , , , , , , , , | Leave a comment

Active Directory authentication for ESXi host management

This was not as straightforward as I’d hoped. Apparently¬†(see video – ugh, why not bullet points?), you just add the host to AD, create an Active Directory security group called ESX Admins, stick the users in the group and voila, … Continue reading

Rate this:

Posted in vSphere | Tagged , , , , , , , , , , | 2 Comments