SMSMS

Scripting

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.

Read more…

Share

Be the first to comment - What do you think?  Posted by George - April 25, 2013 at 10:44 am

Categories: Scripting   Tags: , , ,

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.

Read more…

Be the first to comment - What do you think?  Posted by George - April 16, 2013 at 1:05 pm

Categories: Scripting, Windows 8   Tags: , , , ,

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:

Read more…

Be the first to comment - What do you think?  Posted by Joseph - April 12, 2013 at 11:40 am

Categories: Scripting   Tags: , , , ,

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.

Read more…

Be the first to comment - What do you think?  Posted by Joseph - April 9, 2013 at 8:39 am

Categories: Scripting   Tags: , , , ,

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.

Read more…

Be the first to comment - What do you think?  Posted by Joseph - March 26, 2013 at 1:40 pm

Categories: Scripting   Tags: , , , , , ,

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!

Read more…

Be the first to comment - What do you think?  Posted by Joseph - March 5, 2013 at 8:08 am

Categories: Management, Scripting   Tags: , , , ,

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!

Read more…

Be the first to comment - What do you think?  Posted by Joseph - February 26, 2013 at 9:52 am

Categories: Management, Performance, Scripting   Tags: , ,

Next Page »