Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

Read XML File

The code below runs fine on PowerShell versions 2.0 and 3.0 when using Data.xml Example 1. However, if I introduce a second category as seen in Data.xml Example 2, the code continues to work in...

View Article


install server roles with powershell

Hi All,In windows server 2008 and higher, I want to install server roles and SOME of their sub-roles with powershell. As far as I know, there are two ways to acheive this. Using...

View Article


Import-CSV / Export-CSV with special characters / Bug?

Is there a way to make import/export-csv work with special characters? Try this:cd $homemd öttödir | select-object Name | export-csvtest.csvimport-csvtest.csvAll special characters appear as "?".  -Tobias

View Article

Illegal characters in powershell parameter

Hello -I am a powershell novice, and I am seeking advice on how to prevent powershell from interpretting characters which I intend to be used inside of a variable.  My apologies if this answer exists...

View Article

Powershell Hourly trigger

Hello, I have been readed this link : http://blogs.technet.com/b/heyscriptingguy/archive/2012/09/18/create-a-powershell-scheduled-job.aspx to create a scheduled job.But I did not find the answer to my...

View Article


invoke expression with variable paramters - 7zip

I am trying to use invoke-expression to use 7zip to unzip a file.  The parameters are variable.  I seem to have a problem that stems from what I found to be the unintuitive nature of how the double and...

View Article

Displaying a jpg or icon image, this doesn't work.

I am trying to get this to work but it won't  $Image = [system.drawing.image]::fromfile('c:\users\Public\Public Pictures\Sample Pictures\Desert.jpg')   $form = new system.windows.forms.form...

View Article

エルメス Hermes アパレル・シューズなど エルメス/レザージャケット /ブラウン

エルメス Hermes アパレル・シューズなど エルメス/レザージャケット /ブラウン

View Article


Install software with powershell

Hi All,I am trying to build a script which would install some softwares one  after the other. As the exe's cannot be tuned to use with powershell, I am using something like this, invoke-expression,...

View Article


problem with arrays

I am trying to make an array of disk information on a windows 2003 server using PS 2.0when I get the disk information and put it into an object, then add the object to the array of disk objects, all...

View Article

a bug?

I use flashfxp.exe to transfer file in powershell. My code is as follows:& D:\Progra~1\FlashFXP\flashfxp.exe `-upload ftp://u:p@62.129.xx.xx ` -localpath="d:\1.txt" ` -remotepath="/"There is always...

View Article

A question about "Data Tables"

Hello AllCan someone please help me with the following question.if I have a simple table like the following (see out put at...

View Article

unexpected behavior using try / catch/ finally in a foreach loop

I have an issue with using try/catch/finally in a foreach loop.  The catch works when a server name can not be resolved and puts the unresolved name in the cantconnect array,  however, the script...

View Article


Image may be NSFW.
Clik here to view.

Reading XML file when the XML elements have not all the same information

Hi All!This is may very first post here... :-)I'm facing issues when reading an XML file when the XML elements have not all the same information. The XML file is not constructed by me, I cannot modify...

View Article

deleting file based on date which is on the Filename Useing powershell

i am doing a project and deadline is coming too close ....... this is how file in my folder looks BRDB0001_db_F20130316132517.bak i hve to delet file based on date on its file name which is older than...

View Article


how to block facebook so that it wouldnt be a access by useing ultrasoft too

i want to completely block facebook..it shouldnt be access through ultra soft or other proxy serverhow can i do tat 

View Article

I am new to powershell

Hi, I am new to poweshell, I basically need to learn powershell which can be used for JAMS,So any one can please help me to get book or tutorial to learn powershll related to JAMS. Thanks....

View Article


Bulk add to group and change password w/ QAD

I am trying to bulk add users to a group using QAD and change their password.Is there any reason that the below code shouldn't work?import-csv C:\Scripts\groups.csv | foreach { Add-QADGroupMember...

View Article

Getting UUID

Hi does anyone how to write a script to remote computers UUID?Thanks for the help in advance

View Article

Windows Forms Textbox - Read line by line

Hello,I am not sure this can be done, I remember seeing a post on the Scripting Guys Blog stating you cannot read a Forms TextBox line by line, but knowing this is .NET based I am in denial about this....

View Article
Browsing all 10624 articles
Browse latest View live