Use PowerShell commands to find sources that are represented in the event log
Use PowerShell to get a list of the most recent entries in the event log and manipulate the list according to your specific needs. For instance, the below PowerShell command helps you find all of the sources that are represented in the 1000 most recent entries in the System event log.
Categories: Scripting Tags: Get-eventlog, Group-object, PowerShell, Windows PowerShell
Display your Windows 8 Edition using PowerShell
The Windows 8 and Windows Server 2012 PowerShell cmdlet Get-WindowsEdition allows you to get the current edition of the operating system running on your computer.
Categories: Scripting, Windows 8 Tags: cmdlet, Get-WindowsEdition, image, offline, PowerShell
PSotD: Emailing Users When Quota Warning Met
If you have file servers, you most likely run user quotas. Not running quotas would allow users to quickly fill up the entire drive.
I didn’t really like the reporting features on the server so with a bit of PowerShell – I extended it:
PSotD: List Computers that a User Logged in On
Because AD can be extended in so many ways (more on that soon!), you can store a ton of data for easy retrieval. For example, we write the last logged on user to the Managed By attribute in AD. This allows us to find out what computers a user has used.
PowerShell Script of the Day (PSotD): Duplicate Computer Group Membership
A “regular” topic on this blog will be simple PowerShell scripts to help with your Active Directory maintenance. Often, you may need to add an additional computer to an OU. You will almost always want this new computer to have the same group membership as a computer in that existing OU.
Categories: Scripting Tags: Active Directory, AD, cmdlet, Group, Membership, PowerShell, Quest
Creating User Accounts with PowerShell
Still creating accounts by hand? Yeah – we just got out of that boat! If you would like to automate your account creation – here is a sample script you can use!
Categories: Management, Scripting Tags: Active Directory, CSV, PowerShell, script, user account
A Blazing Fast PowerShell Console
The faster things become – the faster we want things to become.
For example – PowerShell. On my machine, it takes about 5-6 seconds to be fully functional. Because I link PowerShell scripts into certain MMCs, starting PowerShell quickly is very important to me!
Categories: Management, Performance, Scripting Tags: PowerShell, script, Technet