Random header image... Refresh for more!

Archive for the ‘Client Management’ Category

Managing Local Groups through PowerShell

Icon Written by Niklas Goude on July 6, 2009 – 3:46 pm

When managing Local Groups through PowerShell, we can use the [ADSI] type adapter.
Starting off, We have to connect to the Local Group that we want to modify.

PS > $ComputerName = $env:COMPUTERNAME
PS > $Group = “Administrators”
PS > $LocalGroup = [adsi]“WinNT://$computerName/$Group,group”
PS > $LocalGroup

distinguishedName :
Path [...]

Tags:

Managing Local Accounts through PowerShell

Icon Written by Niklas Goude on July 6, 2009 – 2:27 pm

When managing Local Accounts through PowerShell, it’s possible to use the [ADSI] type adapter.
Starting off, let’s look at how to connect to the Local Computer.

PS > $ComputerName = $env:COMPUTERNAME
PS > $Computer = [adsi]“WinNT://$ComputerName”
PS > $Computer

distinguishedName :
Path : WinNT://Computer01

Now that we have a [...]

Tags:

Get-PrinterInformation

Icon Written by Niklas Goude on June 18, 2009 – 7:41 pm

Gathering Printerinformation can be done through WMI. Win32_Printer contains information about printers that are used by a computer and Win32_PrinterDriver contains information about the printer drivers. We can combine these 2 WMI classes and retrieve information about both the printer and it’s drivers. This script checks for the following properties:

Computer [...]

Tags: ,

Set Folder Permissions using a PowerShell script

Icon Written by Niklas Goude on February 13, 2009 – 2:15 pm

A common Admin task is Setting permissions on folders for new Users or Groups. doing this manually can be pretty boring and timeconsuming. This script automates these steps through PowerShell.

The parameters that I’ve added to the script are:

-Path Folder to Create (Required)
-User User who should have access (Required)
-Permission Specify Permission for User, Default set to [...]

Tags: ,

Client Inventory through PowerShell

Icon Written by Niklas Goude on February 5, 2009 – 9:23 pm

There are numerous ways of doing a Client Inventory in the Windows environment. You can use various Microsoft technologies to accomplish this, you can collect information stored in the registry or you can retrieve information through WMI.

In this post, I’m going to show how to do this through WMI and PowerShell. WMI is a versatile [...]

Tags: