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

Error Handling

I have just finished the shell i was writing to copy modify and upload images. Very satisfying, and i have set the process to be started through an ssis package as it is a simple and effective way and...

View Article


Friday Fun – A Popup Alternative

In the past I’ve written and presented about different ways to add graphical elements to your PowerShell scripts that don’t rely on Windows Forms or WPF. There’s nothing wrong with those techniques,...

View Article


Process a csv and append to a txt file - help needed!

Hi,I'm new here and I'm hoping someone can help and show off their PowerShell skills at the same time!I want to create a script that processes a CSV file and pulls data from certain columns and rows...

View Article

Import from CSV to snapshot VMs

Hi guys, I'm really new to powershell and I'm trying to do something fairly simple. I have a CSV file which contains the names of a couple of VMs I want to snapshot.Here is my codeAdd-PSSnapin...

View Article

Filter services by status and name

I want to retrieve a list of services that are running but also want to filter out some services by nameAs there are many services that I want to exclude I want to put them in an array such...

View Article


Sysprep from within PowerShell

I am trying to deploy VM's from templates in VMware, but I having problems with OSCustomization, so I thought I would just run sysprep from Invoke-VMScript.  Before trying to make it work in the...

View Article

Image may be NSFW.
Clik here to view.

How to write key value using PowerShell?

Hi~.I try to control MS-DOS program. The program name is CARI-6M. You can download http://www.faa.gov/data_research/research/med_humanfacs/aeromedical/radiobiology/cari6m/ . The CARI-6M has text GUI...

View Article

Can a Param VALIDATESET include a command?

Hi Everyone,I was wondering, can i include a command instead of an array of strings? so that i can generate the the array automatically.I was thinking something like the example below to generate the...

View Article


Getting the output of a batchfile to Powershell

Greetings. I have a list of batchfiles that triggers Powershell script, that will throw error message when different errors were encountered in the execution. In the end of the batchfile, I have...

View Article


Continuous loop

Hello again,I have created a task schedule to check DBA is always logged on. This is at 5 minute intervals. I am thinking a contiuous loop would work better and be less intensive.  for(;;){{ $i ; $i++...

View Article

Count word occurrences in an html file

I have a file that  contains a range of word e.g. alusfw001, gfr3044,hyr0067. the words are sites, what i want to do is use powershell to go into the file "site.html" which has these sites listed and i...

View Article

Armani vgic fdgx gvsb

輕輕推開仍然依靠在自己肩膀的吳婉欣,蕭聖誇張的拍了拍自己的胸口,嚴肅的說道。嘻之所以這樣,吳婉欣也是想要考驗一下這個男人,是不是真的可以依靠,得到的答案讓這個美麗的小女人幸福的嘴都合不攏了。情商很低的蕭聖又怎會明白吳婉欣此時此刻心中所想,只把這件事當做 ugg...

View Article

Error while running the PS script at first time

Hello, When i execute below script in PS command line, first time this script will not execute and gives error.Then in same command line window if I run the same script second time it will execute.Can...

View Article


get avg value for times

hi there,   I am totally new to power shell 00:00.74. The below time date is in a text file....

View Article

Get-content of the previous day file

  I have two log files files as such with in a folder foo.log20140905           9/5/2014 11:04 PM        LOG20140905 File         649kbfoo.log20140906           9/6/2014 11:04 PM        LOG20140906...

View Article


Move-Item giving access denied errors

I'm having an issue with my script and I need assistance in understanding the problem.I've created a script that creates/archives/reactivates users in AD. The issue comes when a user is archived. The...

View Article

Error handeling with Remove-QADMemberOf

Hello all,I have security on me to limit the users who have local admin access on desktop PC's.  I am at the point where I am trying to remove user account from nested Global Groups that are part of...

View Article


Shadowgroups and sending mail on specific days before password expires

I have no scripting skills, so please be patient with me :-)We have FGPP in place in combination with shadow groups.Used...

View Article

Using objects correctly to compare various Registry Keys on different Servers

I would like to compare two Servers registry keys to make sure they both match. Something simple like this was the initial plan:     $remote1 = (invoke-command -computername hostname `...

View Article

Retrieving user's Volatile Environment data from remote computer

Hi,I'm currently working on a script which takes a computername and a domain username and uses it to retrieve registry information from a remote computer. The purpose of this script is to retrieve some...

View Article
Browsing all 6937 articles
Browse latest View live