Browsing Posts tagged powershell

Sarah here.  Bob posted the Lync webinar on administering Office 365 with PowerShell. You can download the presentation here.  Since the video is a bit grainy, I wanted to cover some of the topics and screenshots here. These are some of the things that were covered.

Company & Subscription Information

Some of the things you can do with the company and subscription cmdlets include:

  • See company information – name, address, city, state, whether directory synchronization is enabled, and many other fields
  • Set technical and marketing contacts

Users

Some of the things you can do with users include:

  • Assign Office 365 licenses to users
  • Change a user’s password
  • Restore deleted users from a recycle bin

Security Groups

Some of the things you can do with security groups include:

  • Create and remove groups
  • Assign members to groups

Administrator Roles

Some of the things you can do with administrator roles include:

  • Create and remove roles
  • Assign users to roles

Conclusion

This is just a small glimpse of administering the Office 365 core functionality.  I didn’t cover Lync Online, SharePoint Online, or Exchange Online in the webinar.  However, I will cover those in future PowerShell Tidbits posts!

Spring is upon us!  And that means…stay indoors, avoid the sun, and read up on technical stuff!

And of course Microsoft is there to make sure you don’t catch any of those pesky UV rays.

How so?  Why, by making a ton of technical eBooks on all aspects Microsoft available and free for the download.

SharePoint?  Check.  SQL?  Got it.  Azure?  Even so.  And it’s a combination of the latest versions (Windows Server 2012) as well as the more popular versions (Server 2008 R2).

Did I mention they’re free?

Click here, and thank Microsoft for helping you keep that tan-free body of yours as pasty as possible!

Announcing our first live Technical Webinar!  This free event will be held online only on Wednesday 24 April from 11am to noon (Eastern).

While configuring Office 365, you may find it easy to work with the portal in the web browser.  However, if you’re managing 10s, 100s, or even 1000s of users, it can be a tedious, extremely time consuming chore to maintain them through the GUI.  Scripting makes this a lot easier, and Microsoft’s preferred scripting language for working with Office 365 is PowerShell.  In this session, we will take a look at administrative tasks in Office 365 and how to accomplish them in PowerShell.

Our presenter is none other than Sarah Dutkiewicz (yup, Kevin’s wife).  She’s actually a Microsoft MVP in Visual C# and is deeply passionate about the technical community. Sarah’s many community activities include blogging, running a technical community website (Cleveland Tech Events), planning events, book writing, and speaking at local and regional conferences.  She is a co-author and technical editor of Automating Microsoft Windows Server 2008 R2 with Windows PowerShell 2.0 (ISBN 1118013867, Sybex).

For more information (and to register) click here.

Sarah here. Are you one with the command line? Do you find yourself writing batch scripts to automate tasks? Perhaps you’re writing KiXtart scripts or even VBScript to help with your day-to-day tasks. How would you like another tool for your scripting toolbelt?

I’ve convinced Bob to let me share with you some tidbits from my favorite scripting language – PowerShell!  PowerShell is Microsoft’s scripting language running on the .NET Framework. It is part of the Windows Management Framework suite, along with Windows Remote Management (WinRM) and Background Intelligent Transfer Service (BITS).

What can I do with it?

Whether you’re doing network audits, migrating to Office 365, administering servers with products such as Exchange, IIS, SQL Server, or Active Directory, or even managing remote workstations, PowerShell can be a great tool to know.  Adding groups of users from your local Active Directory to Office 365, for example, doesn’t need to be a time-consuming, GUI-clicking party – although if that’s your thing, go for it.  You can make it happen much quicker by writing a PowerShell script to query your Active Directory and create the new users, roles, contacts, etc. needed in Office 365.  Managing group policies, setting up mailboxes, understanding a SQL Server’s configuration, spinning up new websites in IIS – just some of the many, many things you could script with PowerShell!

This sounds handy!  What do I need to run it?

If you have Windows 7 or Windows Server 2008 R2, PowerShell 2.0 is already installed.

If you have Windows XP, Windows Vista, Windows Server 2003, or Windows Server 2008, PowerShell 2.0 is available for download: http://support.microsoft.com/kb/968929

If you have Windows 8 or Windows Server 2012, then PowerShell 3.0 is already installed.

If you have Windows 7 SP1, Windows Server 2008 R2 SP1, or Windows Server 2008 Service Pack 2, PowerShell 3.0 is available for download: http://www.microsoft.com/en-us/download/details.aspx?id=34595

Okay… I think I have it installed already.  But I’m not entirely sure which version I’m working with.

If you start PowerShell and aren’t really sure which version you’re running, look at the $Host variable, as seen below:

PowerShell Host variable

 

Look forward to more PowerShell tidbits in the future!

Kevin here, while I do not post much, I do try to post things I think are useful to people. To that extent, I developed a tool in PowerShell that will load IP profiles (IP address, Subnet Mask, Gateway etc) based on information stored in a .csv. You can then apply the profiles to a network card of your choosing. I knew I wanted to play with PowerShell as it’s the way Microsoft is going for system administration, and I recently worked someplace where I was *constantly* changing my IP to static values. This tool is a product of my learning and annoyance. You are more than welcome to look at the code and laugh, it is by far not the best out there, but it works. As I create more I’ll post them here!

Here’s the zipped up .ps1 and a sample .csv.  IPSwitcher