Skip to content
Geoff @ UVM
Adventures in System Administration
  • Home
  • About
  • Software License

Tag: Scripting

Posts

Convert Active Directory AccountExpires attribute

Posted on May 31, 2018 by Geoff / 0 Comment

I wrote a quick function to convert the AccountExpires attribute from the Long Integer value to a DateTime object or a string object of “!! Never !!”...

Sharpen the saw

Transitioning from PowerShell ISE to VS Code

Posted on February 24, 2017 by Geoff / 0 Comment

Jeffrey Snover has said that all new IDE development is targeting Visual Studio Code. It’s a really nice environment. It also has built-in Git support.

Sharpen the saw

PowerShell pipeline mechanics

Posted on December 9, 2016 by Geoff / 0 Comment

https://blogs.technet.microsoft.com/askpfeplat/2016/11/21/two-ways-to-accept-pipeline-input-in-powershell/

Posts/Scripts

Scheduled tasks, PowerShell’s -file parameter, and array values

Posted on May 6, 2016 by Geoff / 0 Comment

I wrote a script that accepts a comma-separated list of values, and the script worked just fine from the command-line. However, when I tried to configure a sche...

Posts/Scripts

PowerShell Script: New-RandomString.ps1

Posted on November 7, 2014 by Geoff / 0 Comment

I need to automate the setting of passwords on some Active Directory accounts. Since resetting passwords is also a task that I’m asked to perform with som...

Posts

PowerShell documentation error – loop labels

Posted on November 6, 2014 by Geoff / 1 Comment

I’ve been banging my head on a problem with a script I’m writing. I want to stop executing an inner loop and resume with the next iteration of an ou...

Posts/Scripts

Get-PrintJobs.ps1 PowerShell script

Posted on October 8, 2014 by Geoff / 0 Comment

After a recent upgrade of our print servers, I discovered that the Print Spooler service event logging had been enhanced, and changed enough that some PowerShe...

Posts/Scripts

Set default printer with PowerShell

Posted on August 19, 2014 by Geoff / 0 Comment

Closely related to my previous post, this simple script uses a WScript.Network COM object to set the default printer. The comment block is longer than the scrip...

Posts/Scripts

Add network printer with PowerShell

Posted on August 18, 2014 by Geoff / 2 Comments

This is my PowerShwell translation of my colleague’s VBScript solution for mapping network printers with a script. For use with Group Policy, it will prob...

Posts

Scripting printer permissions

Posted on June 7, 2013 by Geoff / 0 Comment

I will probably need to refer to this myself, but maybe someone else will find this useful. Still working through some print queue management tasks, I needed to...

Posts navigation

1 2 3 Next »
Image of me, a middle-aged guy with glasses and receding brown hair. I'm wearing a blue and green plaid button-down shirt.
Hi, and welcome.

Resources

  • Troubleshooting Windows activation
  • Troubleshooting Office activation
  • Troubleshooting Offline Files

Links

  • Brian Arkills – AD expert
  • UVM IT Knowledge Base
  • UVM's IT site – the official stuff

Tags

Activation ActiveDirectory administration calendar cli Code Community email Group Policy Hacks IMAP LDAP netapp netsh network Office2007 Offline Files one-liner opsmgr Outlook Perl permissions php PowerShell Printers Programming rdp Scripting security Server2008R2 SharePoint ssl Storage Teams Tools Troubleshooting vim Vista VMware VPN Windows7 WindowsMobile WindowsServer wordpress XP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Frequently referenced posts

  • Troubleshooting Windows activation
  • Troubleshooting Office activation
  • Troubleshooting Offline Files

Links

  • Brian Arkills – AD expert
  • UVM IT Knowledge Base
  • UVM's IT site – the official stuff

Tags

Activation ActiveDirectory administration calendar cli Code Community email Group Policy Hacks IMAP LDAP netapp netsh network Office2007 Offline Files one-liner opsmgr Outlook Perl permissions php PowerShell Printers Programming rdp Scripting security Server2008R2 SharePoint ssl Storage Teams Tools Troubleshooting vim Vista VMware VPN Windows7 WindowsMobile WindowsServer wordpress XP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 Geoff @ UVM
Powered by WordPress | Theme: Graphy by Themegraphy