Showing results for July 2014 - Page 5 of 13 - Scripting Blog [archived]

Jul 21, 2014
Post comments count0
Post likes count0

PowerTip: Find List of Users in Active Directory

Doctor Scripto
Doctor Scripto

Summary: Use the Filter parameter in the Active Directory module.  I was playing with the Active Directory cmdlets and noticed that they seem to need the Distinguished Name.            Is there any way to find users instead of supplying this very explicit object each time?  Use the –Filte...

Scripting Guy!Windows PowerShellPowerTip
Jul 21, 2014
Post comments count0
Post likes count0

Transforming the Active Directory Cmdlets: Part 1

Doctor Scripto
Doctor Scripto

Summary: Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets for creating users in Active Directory.  Hey, Scripting Guy! I've got some older scripts that create users by using the [ADSI] accelerator. Can you show me how they might be rewritten to work with the more modern cmdlets in Windows Server 2012 R2? &md...

Scripting Guy!Windows PowerShellguest blogger
Jul 20, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Display Last Boot Time

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to display last boot up time.  How can I use Windows PowerShell to find the last time a workstation booted up?  Use the WMI Class Win32_OperatingSystem and select the LastBootupTime property.           Using the Get-CimInstance cmdlet retur...

Scripting Guy!Windows PowerShellPowerTip
Jul 20, 2014
Post comments count0
Post likes count0

Weekend Scripter: Use PowerShell to Fix Broken Printer

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to fix a printer that keeps losing its duplexer. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that if I want to, I can generally use it to solve all of my issues. Sometimes the issue is not sufficient that I want to i...

Scripting Guy!Windows PowerShellWeekend Scripter
Jul 19, 2014
Post comments count0
Post likes count0

PowerTip: Find All PowerShell Profile Locations

Doctor Scripto
Doctor Scripto

Summary: Use the hidden properties of $profile to find Windows PowerShell profile locations.  How can I find the path to Windows PowerShell profile locations on my computer?  Use the –Force parameter from Format-List to display the hidden properties and values: $PROFILE | Format-List -Force

Scripting Guy!Windows PowerShellPowerTip