Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Get Exchange mailbox

Gets an Exchange server’s mailbox stats and exports to csv.Read More

View Article


Provide A Batch File To Run Your PowerShell Script From; Your Users Will Love...

I included a little gem that I think deserves it’s own dedicated post; calling PowerShell scripts from a batch file.Read More

View Article


XenApp 6 Management SDK (Powershell)

Starting with XenApp 6, the management SDK is PowerShell-based. Use this forum to find answers to your questions and to share your best practices.Read More 

View Article

PowerShell Performance: Filtering Collections

Depending on what version of Windows PowerShell you are running, there are several different methods and syntax available for filtering collections. The differences are not just aesthetic; each one has...

View Article

Injecting Logon Credentials With PowerShell

In this article I will introduce a new script, Inject-LogonCredentials, that uses PowerShell (specifically, the Invoke-ReflectivePEInjection script) to inject credentials in memory.Read More

View Article


logonworkstation attribute multiple users and multiple computer names

I am working on populating the "logonworkstations" attribute with multiple computernames for multiple users. I have a simple script to populate the "logonworkstations" attribute from a csv file but I...

View Article

Array not populating correctly from foreach loop

Have a report, where I fetch data, but need to insert a field, whose value is derived from what is in another field. Trouble is coming from the foreach loop. Every loop is appending an index into...

View Article

How to install Windows PowerShell 4.0

Windows PowerShell 4.0 is part of the Windows Management Framework 4.0, which includes the following:Read More

View Article


SCCM2012 R2 – How to schedule collection refresh interval using PowerShell

There was an open subject after my first post about scripting ConfigMgr. In the meantime I've migrated from SCCM 2012 SP1 to R2, so I am really not sure whether this commandlet works for legacy...

View Article


Configuration Management for SharePoint With SPWebConfigModification Class &...

I recently needed to make several web.config changes to our production SharePoint 2010 web farm. Making all of these modifications manually would have been tedious and would have left a lot of room for...

View Article

Create bulk users in Active Directory using .CSV format and PowerShell

Create bulk users in Active Directory using .CSV format and PowerShellBulk user creation in Active Directory can be completed using .CSV import and the steps are follows.Read More

View Article

ESX the PowerShell Way with Get-ESXCli

PowerShell is a terrific command line management tool. Of course, it can only peer into Windows-based systems, and naturally this doesn’t apply to a VMware server. However, PowerCLI offers a cmdlet...

View Article

Powershell Tips

Powershell is one of command shell alternative for handling command line based operations and scripting.Read More

View Article


System.__ComObject. How to retrieve the value

Hi, pretty new to powershell.. hoping for help with a little problem :) .. i was testing running windows update as below:$Searcher = New-Object -ComObject Microsoft.Update.Searcher$Results =...

View Article

Windows NIC Teaming using PowerShell (Part 3)

This article examines some advanced considerations for implementing Windows NIC Teaming in physical and virtual environments.Read More 

View Article


Deploying PowerShell 4 with Group Policy

PowerShell 4 includes some pretty powerful new features including Desired State Configuration. If your clients are still running Windows 7, you won’t natively have these features. To take advantage of...

View Article

Import users from CSV file

Hello,I'm trying to import users from a CSV file into AD.This is what I've got so far:Import-Csv .\test.csv | foreach-object { New-ADUser -Title $_.UID -Surname $_.Surname -GivenName $_.GivenName...

View Article


Get Displayname from samaccountname

Hey Gang, Need some help I am trying to get the display name from Samaccount this is this what I have  $user = Get-Content 'C:\Temp\User.txt' $results = @() Foreach($user in $Users) {$result...

View Article

Difference between workflow and module

Hi,Can anyone please explain what is the diff between workflow in posh 3.0 and module? As far as I know, the series of commands can be grouped together as workflow. when ever needed, we just call the...

View Article

List all Active Conferences via PowerShell

Over the last few weeks I’ve been thinking about a way to assist a client in the draining of their servers for the purposes of patching.  As it is well documented, the draining process will leave...

View Article
Browsing all 6937 articles
Browse latest View live