Showing archive results for June 2013

Jun 13, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Find All AD DS Users

Doctor Scripto

Summary: Use a Windows PowerShell cmdlet from the RSAT to find all users in Active Directory Domain Services.  How can I easily find all users in Active Directory Domain Services (AD DS)?  Use the asterisk wildcard character with the Get-ADUser cmdlet from the RSAT. Get-ADUser -Filter *

Scripting Guy!Windows PowerShellPowerTip
Jun 13, 2013
Post comments count0
Post likes count0

Translate Active Directory VBScript into PowerShell—Not Me!

Doctor Scripto

Summary: Don’t translate old VBScript scripts that search Active Directory—instead use the Active Directory cmdlets from the RSAT.  Hey, Scripting Guy! I have this script that I use for auditing Active Directory. Basically, it queries to see what new user accounts have been created in the last month. I started translating it to Win...

Scripting Guy!Windows PowerShellscripting techniques
Jun 12, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell 3.0 CIM Class to Find Logical Disk Info

Doctor Scripto

Summary: Use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks.  How can I use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks?  Use the Get-CimInstance cmdlet to retrieve only the keys from the Win32_LogicalDisk WMI class, and then pipe ...

Scripting Guy!Windows PowerShellPowerTip
Jun 12, 2013
Post comments count0
Post likes count0

Translate VBScript into PowerShell—Not!

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about translating VBScript script into Windows PowerShell, and he says it is not a very good idea.  Hey, Scripting Guy! I love VBScript. I know, I know. It is not fashionable these days to say that, but it is a fact. I love using VBScript. It is powerful, and over the last ten years or so, I h...

Scripting Guy!Windows PowerShellscripting techniques
Jun 11, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Display User Rights to File Volume

Doctor Scripto

Summary: Use Windows PowerShell to display user rights to a file volume.  How can I use Windows PowerShell to display access to an NTFS volume?  Use the Get-Acl cmdlet and expand the Access property: Get-Acl | select -ExpandProperty access  

Scripting Guy!Windows PowerShellPowerTip