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

sharepoint server database recovery

SharePoint Server data recovery software is the most remarkable database recovery software that has got an excellent ability to restore documents, files and websites from SharePoint databases. This...

View Article


Add use to local admin group

Hi,I'm trying to write a script which add user to local admin group.The problem is that I have user who are based in Poland, chain and so on.The current script I have works well if the user are in UK...

View Article


help on deleting files

hello All. I aint really a programmer, but I am assigned to do an automation piece. your expertise on powershell will greatly help me.Scenario:Need to delete files which are x no. of days old. Here's...

View Article

Simple outputting Array object??

Simple question, I think..  I have some IP addresses stored as objects in an array (these come from WMI queries)  but when I attempt to write them out I just get blanks;  Some examples below,  Can I...

View Article

Adding and setting properties of custom psobjects in a loop

I have multiple functions which contain statements like these:http://pastebin.com/skdH29iaThey work fine almost every time, but occasionally output errors  like:Property 'LogonName' cannot be found on...

View Article


Installing the BizTalkFactory PowerShell Provider on BizTalk 2013

As you may have read (source: QuickLearn), the BizTalkFacotory PowerShell Provider comes shipped with BizTalk 2013 as an “SDK Utility”:Read More

View Article

PowerShell Studio 2014: Find In Files

One of many new features of PowerShell Studio 2014 is the Find in Files tool. Find in Files allows you to search multiple files without having to open each file individually, as you would have done in...

View Article

Change AD attributes for users from Text

HelloI have two text files.  One contains username.  Another one contains the value that I want to change for according usern.username.txtuser1user2 employeeid.txt100200Here is my command to change the...

View Article


Regex Pattern

Hi thereI'm trying to find all instances of the following types in my script below*Defender_**Midfielder_* *Winger_*How do i add the other 2 patterns as well into the script below and how do i evaluate...

View Article


move-Item : move files to a file but a directory

Hi , everyone I have a question followed.i want to move some pdf files to a directory .  the ps command as follows:gci . -force -Recurse -include *.pdf | Move-Item  -Destination "E:\AllPdfFile" -Force...

View Article

Help with Forms/Picturebox/DragDrop

I'm trying to add drag and drop capabilities to a picturebox form object and need some help with events and methods. The idea is to drop a new jpg file from explorer to update the image in the...

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

on removing item

  $Files = Get-ChildItem C:\Users\xxx\Desktop\PRD\Data\03_Processed -Filter *.zip -recurse         #| % {$_.BaseName}        $Days = 10                        foreach ($file in $Files)             {...

View Article


use the value globally in different scripts.

Hello all,I am writing a script1.ps1 and script2.ps1. and want to store the value in a variable in script1.ps1  and use that value during the execution of script2.ps1 . is it possible. ? such that...

View Article

Need to get a users MemberOf and the groups ManagedBy as variables.

Hey,Working on a script to disable user accounts, and i got a request to add a function so that everytime a user gets disabled the script sends a mail to that users boss/bosses.Since we have all bosses...

View Article


Remote registry key export/save/import/restore...

I need to export registry keys from a remote computer for import into other remote machines (copy) using PowerShell V3.0.When I use REG QUERY to view the registry keys thus: reg query...

View Article

Find all images and export size per folder to csv

Dear,I'm trying to write a script that displays me the amount of image (video,audio) files users have stored in their homedrives. It needs to go through the mainfolder let's say x:\homedrives where all...

View Article


Set up remoting to allow commands from only a single specific mashine?

Hi. I was wondering if it is possible to set up remoting to allow commands from only a single specific machine?

View Article

Get into gear with new features in Windows 8.1's PowerShell ISE

Read More

View Article

PowerShell your world cup

And of course just 20 mins after finishing work I had a few functions, here is how you use them.Read More

View Article
Browsing all 8583 articles
Browse latest View live