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

Simple Powershell scripting with Azure Powershell cmdlets

In my last post I covered how you can write bash scripts using the azure cli. Right after posting, @dfinke pinged asking rightfully “What about Powershell? Can I do the same things?”.  Yes Doug,...

View Article


PowerShell 3.0 and Monitoring Earlier Versions of Windows Server and Hyper-V

If you’re not rushing to upgrade to 2012, you can still gain several of the benefits on your 2008 and 2008 R2 installations. If you have begun upgrading some of your systems to 2012 and still have any...

View Article


PowerShell - Monitoring and reporting free disk space and the critical services

This script is designated to collect free disk space on your logical drives and state of some Windows services using PowerShell cmdlets.Also, this script will use local or remote SMTP Server to send...

View Article

Sorting high mem processes

HiI'm new to this forum as well as relatively new to PS scripting (though I've used it for networking purposes). I'm trying to make a script that will select processes with a higher value of paged...

View Article

Setting WMI properties

Hello All (by the way Richard I read most of your book PowerShell and WMI, excellent book!)I have a brief question, I think I already have the answer but want a sanity check please.If you look at...

View Article


PowerShell Scripts to create Windows 8 Shutdown, Restart, Logoff, Switch...

As you know Windows 8 has a Start Screen replacing the Start Menu. And this for many is still the concern as they are used to Windows 7 Start button providing this menu. Though I can say, that with bit...

View Article

Windows PowerShell ISE Windows 8 Settings

Previously, the command-line support in Windows has always been considered laughable in spite of the scripting languages like VBScript and Jscript.These languages are not basically integrated into the...

View Article

Add hebrew to powershell

My mailboxes have hebrew names. When i want to view or use hebrew at the exchange it show up as gibberish. So i cannot use many of the commands. How can i set the exchange shell to use hebrew?  

View Article


Is it possible to set ISE v3 to v2 only mode

HelloI would like to try out the ISE that ships with PowerShell v3 to use enhancements like Regions.However the Servers at work are on PowerShell v2 at the moment, therefore if I load PowerShell 3 on...

View Article


Converted ps1 script to exe using Make-Ps1ExeWrapperWithArgs.ps1 by Keith Hill

I converted my powershell script to exe using the Make-Ps1ExeWrapperWithArgs.ps1 script by Keith Hill.  My script is a complete GUI interface and so I do not need the powershell console window sitting...

View Article

Windows PowerShell: Essential Admin Scripts (Part 2)

In Part 1 of this two-part series, I covered the ‘Microsoft Troubleshooting Packs’ and ACL permission checks using PowerShell scripting. This article will focus on two more scripts, one to check if a...

View Article

Part 1 - Using Intel vPro PowerShell Module with Symantec CMS

Intel vPro PowerShell Module enables you to extend beyond the base out-of-band operations within Symantec CMS. Whether a PowerShell cmdlet is within a TaskServer script, used as a standalone script, or...

View Article

Part 2 - Using Intel vPro PowerShell Module with Symantec CMS

 After completing Part 1, you are now ready to test and implement solutions with Intel vPro PowerShell Module. The first and most frequently requested Intel vPro PowerShell command for a Symantec CMS...

View Article


Getting the number of actual physical disks in the HP RAID using WMI

Hello All,I wounder if someone can help me with the following question please.I have a number of HP DL Servers which have the useual RAID setsLets say I have two physical HDD in a RAID 1 (mirror...

View Article

PowerShell accessing a Exchange 2003 Mailbox

I'm still pretty new to PowerShell and was wondering if there is a way to control Exchange 2003 Mailboxes with PowerShell.Specially what I am looking to do is set Out Of Office messages for different...

View Article


Problem with GC and variable

When I use the follow command :gc D:\Outgoing\$($A + "-data.csv") -replace ('"',' ') | Out-File D:\Outgoing\$($A+ "-data.csv") -ForceI get the following error:Get-Content : A parameter cannot be found...

View Article

Q: How can I quickly tell if my PowerShell window is running elevated?

A: For some actions to work in Windows PowerShell, your PowerShell session must be running elevated, so it has full administrative rights. If your PowerShell window is running elevated, the word...

View Article


How to Map Network Drives Using PowerShell

In years past, automating network drive creation required the use of primitive batch files, luckily for us you can now do it through PowerShell.Read More

View Article

Q: What is the best way of passing parameters to my Windows PowerShell script?

A: Windows PowerShell has an easy way to pass parameters. The following first line accepts a parameter with a default value.Read More

View Article

Populating a table with data from a CSV

I'm trying to import data into a table I have created in SQL2008 Express, I've used the same scripts for other tables and they have worked, I get the following error:Invoke-Sqlcmd : Invalid object name...

View Article
Browsing all 8411 articles
Browse latest View live