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

Powershell v.2.0 to v.3.0

Hi all, We recently updated one of our admin servers to WMI 3.0 and I'm finding that all my PS v.2.0 or earlier scripts are no longer working. Does anyone know how to write a command within the script...

View Article


Using Powershell to Manage Hyper-V Integration Services in Server 2012 R2

A while back, Eric Siron, one of my fellow Altaro.com bloggers, did an excellent write-up regarding Hyper-V integration services. Said post did a great job explaining the need for integration services,...

View Article


PowerShell module management as a native feature is here!

PowerShellGet is a new way to discover, install, and update PowerShell Modules.  New in WMF 5.0 Preview May 2014, PowerShellGet contains a set of cmdlets that enable users to interact with an online...

View Article

DSC your workstation to test Windows PowerShell JEA in Azure.

Calling all Azure fans!  Paid subscriptions, trial accounts, and MSDN SUBSCRIBERS.  Don’t forget, if you have an MSDN subscription you have credit to use for testing in Azure!Read More

View Article

Powershell CSV report usernames & Phone Numbers - but exclude area code?

HowdyI am working on a PowerShell report of user names, First, Last, and their phone number populated in AD.But the request is to take out the area code.  That's not something I've done before, can...

View Article


Finding exactly four numbers

Hello all,        I have a CSV file that I want to find exactly four numbers.  I do not want any numbers with any more or less than four numbers.  I also do not want four numbers attached to any...

View Article

Windows Management Framework 5.0

: What's included in Windows Management Framework 5.0?A: Previous versions of Windows Management Framework (WMF) have included new versions of PowerShell, in addition to Windows Management...

View Article

Add users into AD Security Group

I need to add from a list of users to an AD security group.I now work in a new company and no one know PowerShell (I'm so alone)I've google and have come up with the script below.My CSV will have a...

View Article


Create contacts frm CSV

Hi,The following script$Path =   'C:\csv\contacts.csv'Import-Csv$Path|ForEach-Object {New-ADObject-TypeContact-Path"OU=Contacts,OU=WLB,DC=Domain,DC=local"-Name"$_.DisplayName"-OtherAttributes...

View Article


Scheduled Tasks with group managed service accounts

I am trying to create a scheduled task via powershell on a remote machine using a group managed service account as the scheduled task principal.  The commands I run are below $hostname =...

View Article

Clean Up SQL Server Logins and Users with PowerShell

Unless you've got a well-defined strategy to manage SQL Server logins and database users via Active Directory groups (as I usually recommend when setting up SQL Server security), you're going to...

View Article

re:Script to find attachments within msg files on Windows 2003 server

I would like to use powershell to check if attachments exist within *.msg files. These msg files sit on a Windows 2003 server under a directory structure (eg C:\Users\Testing). can this be done and if...

View Article

True/false enable mailbox in bulk add user script

Hi.I am new to Powershell.I am creating a powershell script to bulk create users from csv-file.Some users need mail boxes and others don't. Therefore, I would like to create the coloumn "Mailbox" in my...

View Article


Create PowerShell Scripts Faster with the Script Browser and Analyzer

The Windows PowerShell Integrated Scripting Environment (ISE) is a useful tool for writing and testing scripts, and Microsoft has recently released a new ISE plugin that can help you develop PowerShell...

View Article

[ordered] attribute to sort hast table, but what language construct is this?

 I recently learnt that in order to sort a hastable, you need to prefix the construction of the hash with [ordered] (works for Powershell Version 3+).eg, to create an empty hash:$allCounts =...

View Article


Run script against active directory group

Is there a way to invoke-command against an entire active directory group rather than having to write down each computer you want to run a script against?

View Article

Citrix Provisioning Services PowerShell scripts

In the article series Unattended Installation Citrix Provisioning Services I already touched the PowerShell possibilities of PVS showing how to configure farm and server settings via PowerShell. In the...

View Article


Remoting - Reporting on more than one service, sending email in html format

Hi - I have a script that works great and looks like this below.  The problem is that I only want to know when anyone one of those services is stopped.   Can anyone assist?[string]$Body=Invoke-Command...

View Article

formatting strings

I need to create a new registry key and I need double quotes to go around what I write to the registry. $Value="cscript c:\windows\MGH\Machine Printer.vbs" I need to write that to the registry but the...

View Article

Second-Hop CredSSP

I am having trouble getting the second-hop issue to work properly. I am trying to remote into Computer B from Computer A and then have Computer B install a program from Computer C. I enabled...

View Article
Browsing all 8583 articles
Browse latest View live