Browse by Tags

Tagged Content List
  • Blog Post: Transforming the Active Directory Cmdlets: Part 4

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets to read additional user properties. Hey, Scripting Guy! I'm trying figure something out. I can get some properties with the Quest cmdlets without even asking, but when I go to use the Windows PowerShell cmdlets...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 3

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets for creating users. Hey, Scripting Guy! I downloaded a script from the Internet to remove users, but it's designed to use the newer Windows PowerShell cmdlets. My server environment doesn't have them available...
  • Blog Post: PowerTip: Use PowerShell to Determine ASCII Value

    Summary : Learn to use Windows PowerShell to determine the ASCII numeric value of a character. How can I use Windows PowerShell to tell the ASCII value of a character? You can get the numeric value of an ASCII character quite easily, for example, to get the value of the lowercase letter a , type...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 2

    Summary : Learn how to transcribe between ADSI, Quest, and Windows PowerShell cmdlets for creating users. Hey, Scripting Guy! I used to use the Quest cmdlets to create new users, but I need to rewrite some of my scripts to work with a legacy environment that can't use the .NET Framework. Can...
  • Blog Post: PowerTip: Convert Plain Text to Secure String

    Summary : Learn to convert a plain text password to a secure string for cmdlet parameters. I'm trying to convert some scripts to work with the Active Directory modules, but they need a secure string for the password. How do I create one of these? Use the ConvertTo-SecureString cmdlet, capture...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 1

    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...
  • Blog Post: PowerTip: Find List of Users in Active Directory

    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 –Filter parameter...
  • Blog Post: Weekend Scripter: Basic Lync Server 2013 Backup and Restore—Part 2

    Summary : Use native automation and Windows PowerShell cmdlets to back up Lync Server 2013. Honorary Scripting Guy, Sean Kearney, is here to finish up my crazy weekend fun automating Lync backup. So we've already gone through probably the trickiest part, which is getting the bulk of the Lync...
  • Blog Post: PowerTip: Document Server's IP Addresses by Using PowerShell

    Summary : Use Windows PowerShell to document the IP addresses on a server. How can I use Windows PowerShell to easily go through my server environment and document the IP addresses in use on each machine? We can do this with a wee bit o' magic from the new Get-NetIPConfiguration cmdlet in Windows...
  • Blog Post: Weekend Scripter: Basic Lync Server 2013 Backup and Restore—Part 1

    Summary : Learn how to make a rudimentary backup for a simple Lync Server environment. Honorary Scripting Guy, Sean Kearney, is here. Today we're going to play a game of "Let's Pretend." Let's pretend you got hired in a new company or are taking over from someone who had to...
  • Blog Post: PowerTip: Export Lync Topology with PowerShell

    Summary : Use the Lync cmdlets to obtain a copy of the Lync topology. Instead of going through the GUI wizard, can I use Windows PowerShell to schedule a fresh copy of my Lync topology as a regular nightly task so I can compare deltas? Run the following Windows PowerShell cmdlet to create a file...
  • Blog Post: Managing Lync Server 2013 with Windows PowerShell—Part 5

    Summary : Learn about basic Lync auditing. Hey, Scripting Guy! I go sites and need to work on various Lync servers. Often my first challenge is getting their configuration. Where do I start? —RD Hello RD, Honorary Scripting Guy, Sean Kearney, is here to help you out with a little...
  • Blog Post: PowerTip: List All Lync Enterprise Voice Users with PowerShell

    Summary : Get a list of users and phone numbers from your Lync infrastructure. How can I use Windows PowerShell to pull a weekly list of all our Lync Telephone numbers? Use the Get-CSUser cmdlet, and in your Lync Server management shell, type: GET-CSUser | Where { $_.EnterpriseVoiceEnabled ...
  • Blog Post: Managing Lync Server 2013 with Windows PowerShell—Part 4

    Summary : Have a rollback plan for disabling a user in Lync. Hey, Scripting Guy! Before I shut down all of these Lync accounts on our environment, my boss would like to see what my rollback plan is. Other than restoring from backup, is there a quicker "undo" I can leverage by using Windows...
  • Blog Post: PowerTip: Get List of Blocked Domains on Lync with PowerShell

    Summary : Use Windows PowerShell to get a list of all domains that are blocked from federating with Lync. I am auditing a client's Lync server and need to pull up a list of all the Domains that are presently blocked or not blocked with Lync. How can I easily do that with PowerShell? Run the...
  • Blog Post: Managing Lync Server 2013 with Windows PowerShell—Part 3

    Summary : Use Windows PowerShell to remove Active Directory users for Lync. Honorary Scripting Guy, Sean Kearney, is here. Note This is the third part in a series. You might also enjoy reading: Managing Lync Server 2013 with Windows PowerShell—Part 1 Learn how to enable users. Managing...
  • Blog Post: PowerTip: Remove User from Lync Server 2013 with PowerShell

    Summary : Learn how to use -whatif to safely remove a user from Lync Server 2013. I need to remove users from Lync by using PowerShell, but I'm a bit nervous. Is there some kind of built-in test mode in Lync? Use the -whatif parameter when you disable the user to show what will happen without...
  • Blog Post: Managing Lync Server 2013 with Windows PowerShell—Part 2

    Summary : Use Windows PowerShell to disable Active Directory users for Lync. Hey, Scripting Guy! I was so happy yesterday! I spun up thousands of users in Lync, and it worked beautifully. But now management has come back and indicated that it should not be enabled for our temporary staff. How can...
  • Blog Post: PowerTip: Add a Federation Domain to Lync with PowerShell

    Summary : Use the Lync cmdlets to add an additional domain to Lync for federation access. I'm working with a client to set up a federation, and I am trying to easily add their list of domains. How can I do this with Windows PowerShell? In Lync, use the New-CSAllowedDomain cmdlet: NEW-CSAllowedDomain...
  • Blog Post: Managing Lync Server 2013 with Windows PowerShell—Part 1

    Summary : Use Windows PowerShell to enable Active Directory users for Lync. Hey, Scripting Guy! We just spun up our Lync server, and I need to know a very easy way to enable groups of users. I have over 10,000 records to enable and not quite enough coffee to click the mouse button all that fast! ...
  • Blog Post: PowerTip: Create an SRV Record in DNS with PowerShell

    Summary : Use Windows PowerShell cmdlets to create a server resource record. Is there was a way to script the creation of my internal server resource records for my Lync deployments? If you're running Windows Server 2012 R2 or Windows Server 2012, use the Add-NewDNSServerResourceRecord cmdlet...
  • Blog Post: Weekend Scripter: Automating the Preparation of Lync Server 2013—Part 2

    Summary : Automate the installation of SQL Server Express and complete the installation of Lync Server 2013. Honorary Scripting Guy, Sean Kearney, is here. Today, we're getting a little nerdy by automating the rest of our Lync server...on a Sunday. Yesterday, we finished with a Windows Server...
  • Blog Post: Weekend Scripter: Automating the Preparation of Lync Server 2013—Part 1

    Summary : Prep Windows Server 2012 R2 for a Lync Server 2013 installation. Honorary Scripting Guy, Sean Kearney, is here, and today I'm doing something I've been itching to do for a while...Automate the creation of a Lync server! You see, a while back, our Lync guy left the company. My...
  • Blog Post: PowerTip: Extend Active Directory Schema for Lync with PowerShell

    Summary : Learn to use the Lync module for Windows PowerShell to extend the Active Directory schema. Is there an easy way to use Windows PowerShell to install a new Lync server? After you have the Lync core installed on the server (even if you haven't installed Lync itself), you can use the...
  • Blog Post: Windows 8.1 and the Land of Forgotten Modules: Part 5

    Summary : Explore and discover the additional Windows PowerShell modules in Windows 8.1. Honorary Scripting Guy, Sean Kearney, is here this week. Today, I'll wrap up our journey into the land of modules that are part of Windows 8.1. You also might enjoy reading: Windows 8.1 and the Land...