Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Help with a -match statement and non-standard chars

HiThis block of html is from a web store that needs to be migrated. It shows the catalog categories:<!-- Begin Breadcrumb --><div class="text"><a...

View Article


Image may be NSFW.
Clik here to view.

Table formatting in a Word document created with PowerShell

I am using Powershell to create a Word 2010 document that contains a table.  Everything is working great, except that I want to change the height of the rows to eliminate the white space that is...

View Article


sql backup and restore

I have a script that does a SQL database backup from ServerA and then copies that file to ServerB where it does a restore using that backup to the same SQL database name. If I run the process from cmd...

View Article

Powershell and get-acedata with access 2007 works with some queries and not...

I have imported get-acedata into powershell and it seems to work with some queries. If I type:$ds = Get-ACEData -FilePath "PathToDatabase" -Table 'QUERY1'$ds.tables[0] | convertto-csvI get data from...

View Article

Autogrow mechanism for "Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB"

Hey guys, i had to increase the MaxMemoryPerShellMB to some higher value , but is there any way by which we can set its value to autogrow or something like that..because if for each  runspace , if it...

View Article


Find Index Position in two dimensional array;

hi I have a list of databases and their status in array $DBMirroringInfo. foreach ($db in $dbs) {....$DBMirroringInfo +=,@($db,"FailOver In Progress").... } I would like to set the status for...

View Article

Image may be NSFW.
Clik here to view.

Adjust for best performance

Hi,I'm wonder how to adjust for best performance on windows 7 as bellow?Regards,Bader

View Article

Balloon Tip not appearing

I have a simple function to display a balloon tip. But I can't get it to display when I run the script on remote machines. I know why... but I can't find a way to fix it!We use a third part monitoring...

View Article


How to a Remove Distribution Point From Package using PowerShell in SCCM 2012?

Am new to Powershell, could someone tell me,  How to  Remove a Distribution Point From Package using PowerShell in SCCM 2012?i was able to find powershell scripts to remove a package from a...

View Article


change default output to format-list

Dilly question here (oops- meant to type Silly but came out Dilly.  That made me laugh so I left it) - Is it possible to alter the default output to format-list when running cmdlets in the CLI or do I...

View Article

Powershell ISE changing from version 3 to ver 2

When ever I try to downgrade the host version from 3.0 to 2.0 while in the PowerShell ISE, the console just hangs.  However, if I run the PowerShell -v 2 from the console window I have no issues.  I...

View Article

Return IIS Application Pools, Associated Applications, and Managed Framework...

I'm new to PowerShell and trying to list out all App Pools running on a server with their associated applications and the runtime version.Running Get-Item IIS:\AppPools\DefaultAppPool gets me partially...

View Article

Can not import module from default module path

I want to build a PS module. It contains two function like this:Function Start-SqlInstance{param([string] instanceName).... }Function Stop-SqlInstance{param([string] instanceName).... }My PowerShell...

View Article


Why can't I execute this command in PowerShell?

Hello,I'm trying to execute a program using PowerShell, but didn't get it to work. Any further hints would be appreciated. Thank you.Code:$PsExecPath = "C:\PSTools\PsExec.exe" $ComputersList =...

View Article

How could I roll back Enable-PSRemoting ? disable-psremoting ?

If I exec Enable-PSRemoting and  disable-psremoting in an win2008 DC, configuration come back to orignal configuration ?

View Article


What does this mean in powershell $filesNotRemoved = @{}.If i want to declare...

What does thismean in powershell $filesNotRemoved = @{}.If i want to declare this in c#.Ho should i declare this is in C#adityadugyala

View Article

How do i convert ps script to c#

HIHow do i convert ps1 script to c#.Please help m. i dnt know powershell. adityadugyala

View Article


2008 R2 Efficiently Finding a User's Oldest and Biggest Files without FSRM

I have written the script below which will generate a CSV for the 20 oldest files and 20 biggest files that belong to a particular user. It works, but as you can imagine, on a file-server with over 3...

View Article

PowerShell 3.0 AST implementation looses information on expandable strings

Hi all,PowerShell 3.0 supports a new parser infrastructure known as the Abstract Syntax Tree in the System.Management.Automation.Language namespace. When the new parser is run against a set of...

View Article

Delete Files older than recurse question

I have found a script to delete files older than x days. The problem I am running into is when I ran the script it asks permission to delete child items. The recurse function doesn't seem to be...

View Article
Browsing all 2562 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>