Tags
2008R2 Access List ACL activate by phone active directory ActiveSync ACU Address list alarms Anonymous relay array backup cacls catch cd-key cisco Citrix CUSD DAG dismount iso dns Exchange Fortigate Fortinet function get-eventlog get-snapshot get-vm HPE 3PAR Linux Lync microsoft Permissions powercli Powershell Powershell agent PSA PuTTY registry script UCS Director vmware Windows 7 Windows Server Zenoss-
Recent Posts
Recent Comments
- Mark Cloney on PowerCLI: Getting vmhost uptime
- Pierre Wong on Powershell: Listing activated clients on KMS server
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Wasim on Resetting the Discretionary Access Control List (DACL) in a Windows Service security descriptor
Categories
- Ad
Category Archives: Powershell
Powershell function for showing some system information
This is a function I created just because I wanted to toy around with Powershell and get-wmiobject. Also, this is my first function where I made it possible to use a switch parameter. What the function does is gather some … Continue reading
Posted in Microsoft, Powershell
Tagged function, parameter, Powershell, Show-Debug, switch, system information, wmi
Adding a pause to you Powershell scripts
If you have taken a look at some of the scripts I have posted earlier you might have noticed a rather strange line, usually at the end of the script: cmd /c pause | out-null This was actually just to … Continue reading
Posted in Microsoft, Powershell
Tagged pause, Powershell
Powershell function for rotating event logs
A friend of mine came to me with an interesting powershell challenge today: how can I use powershell to archive and clear event logs? Well, challenge accepted! The reason the challenge arose is due to maintenance he performs on a … Continue reading
Posted in Microsoft, Powershell
Tagged event logs, function, microsoft, Powershell, rotate-eventlogs
Function for locating an email address
Yesterday I was given a relatively easy task: find out who or what has a given email address. As this was within our own Exchange organization it proved to be quite simple: You can achieve the goal with a simple … Continue reading
Posted in Exchange, Microsoft, Powershell
Tagged Exchange, function, Get-EmailAddress, Powershell
Function for adding photo in Active Directory
I have always been careful to avoid the really advanced and cool stuff in Powershell, like functions, arrays and such. But as I created the last script it hit me that it would be really cool to have it in … Continue reading
Posted in Active Directory, Microsoft, Powershell
Tagged function, microsoft, Powershell, Set-ADPhoto
Simple script for adding user photo in Active Directory
It’s been a while since I posted here so I thought it might be time to add some content. This script is a simple script that adds a photo to a user’s active directory user object. It also checks the … Continue reading
Posted in Active Directory, Microsoft, Powershell
Tagged active directory, Powershell, script
Check if DAG databases is on preferred server
If you are using DAG in exchange 2010 for high availability on your mailboxes there may be one thing you might have noticed, the databases can fail over to a less preferred server at any time without you noticing. Microsoft … Continue reading
Posted in Exchange, Microsoft, Powershell
Tagged DAG, Exchange, microsoft, Powershell
Grep’ing the eventlog using powershell
If you are used to working with Linux you’re probably familiar with using tail, grep and such for gathering stuff from logs and other files. Those are quite useful tools and work very well when you want to find out … Continue reading
Posted in Microsoft, Powershell
Tagged get-eventlog, microsoft, Powershell
Mass import of users in Active Directory v2 – Powershell time
Earlier I posted a script that created users and homefolders and added the users to specified groups. It also set ntfs permissions on the homefolders. That script used primarily old fashioned stuff, so I sat down and started looking for … Continue reading
Posted in Active Directory, Exchange, Microsoft, Powershell
Tagged active directory, Exchange, microsoft, Powershell
Simple powershell script for enabling users for Lync
I wrote this simple little script for enabling users for Lync. It asks for input on name, sipdomain and line uri. The rest is set using variables defined at the start of the script. If you only have one sipdomain … Continue reading
Posted in Lync, Microsoft, Powershell
Tagged Lync, microsoft, Powershell