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

Fix-FileName.ps1

Fix-FileName.ps1 Read More

View Article


How to Turn Your Surface RT into a PowerShell Scripting Powerhouse

How can I get the PowerShell ISE and all the PowerShell modules I need on my Surface RT tablet?Read More

View Article


How to configure Powershell to work with Windows Azure AD

In a previous TechTip, I discussed the specifics and nuances of how to install and configure Powershell for use with Office 365. For 99% of the things that I’ve needed Powershell for in 365, this setup...

View Article

Find SharePoint 2013 App Info Using PowerShell

I've been playing a lot with PowerShell and SharePoint 2013 lately, and by a lot, I mean A LOT! One of the new additions with SharePoint 2013, is the set of new cmdlets that allow Sharepoint...

View Article

Populating extensionattribute10 for multiple users

I have  4750 active directory accounts with extensionAttribute10 is emptyI would like to populate that field extensionAttribute 10 with firstname.lastname@company.caHow would I do this in powershell? I...

View Article


Help with if statement in parameter

Can I run this as a parameter?$Switch = if ((Get-VMSwitch).Name.count -gt 1) {(Get-VMSwitch).Name -notmatch "SCSI" | select -First 1} else {(Get-VMSwitch).name} It seems to work on the command line but...

View Article

How to set a password for a workgroup Server 2008r2 user account

Subject about spells it out. I have searched and tried both WMIObject win32_UserAccount and also ADSI but it looks like neither allow the password to be set. I have 14 non-domain joined servers that I...

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


How to Use the PowerShell Help System Efficiently

The PowerShell help system is very useful and that’s about the only tool you will ever need to use PowerShell efficiently. As it is a shell with no graphics on its interface, you won’t see any flashy...

View Article


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

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
Browsing all 8583 articles
Browse latest View live