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

Deleting every other file in directory with name signature

I'm trying to thin out backup files.  We are accumulating too many backups but want to keep every other one older than a certain age.For some reason, I get the files I need in my GetChildItem, but I'm...

View Article


Just remove Everyone Full from Root folder level and copy the perms out

So, i'm not quite sure where i'm going wrong here... Or if I am at all..I want to just remove everyone full control from root of filesystem share.. so for example \\share\share$  .. Not share NTFS...

View Article


Script to get the file size in a folder and check the active directory for...

Hello experts,I have requirement to get the below details.scenario- There are folders (shared folder) with name of users login ID. Each folder consists of users' PST. I want get the DirectoryName,...

View Article

Pass SQl Query parameter for Powershell Script

Hi,I have following parameters being passed from SQL Stored procedure to Powershell.----------PowerShell Start param(      [string] $server = "SQL2",      [string] $database  = ("Utils"),    [string]...

View Article

Invoke-Command for RoboCopy in Powershell

I've got an issue I'd love a bit of help with. I have a Powershell Script that is supposed to use robocopy to copy  items from one server to multiple servers simultaneously. We used to just sync in a...

View Article


mailbox size exchange 2007

Hi,I have Exchange 2007, I get a list of users in TEXT file and I need to get a table like this:display name       mailbox size(MB)         Issue Warning Quota(MB)user1                    25...

View Article

Trying to un-register and then re-register an OCX file.

Hi All,As in the title, I'm trying to un-register and then re-register an OCX file using powershell.This needs to be done on a remote machine.So far I have: # declare the local target path...

View Article

Shutdown\Startup Guest VM

Windows Server 2008 R2 host running A Hyper-V Windows 2000 Server guest VM.I am looking for a simple way (either batch, VBS or PowerShell command) to shutdown the guest VM and then start it up at a...

View Article


.key and .crt certificate conversion to .pem format in PowerShell

Hello, During my work with openssl I came across a problem related to entity certificate and key conversion in .crt and .key format to .pem which is required by my application. Is there any possiblity...

View Article


trying to compare regestry

Im trying to give a computer  usb exception but in my company some users already have USB exception what  im trying to do is add a "if" statement to tell me if the user is already set up with usb...

View Article

Read remote registry - service woes

I want to read the remote registry using PowerShell which I know will require [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey()Firstly though, I need to ensure the RemoteRegistry service is running....

View Article

replica watches for sale wu467 2014 ford f350 pickup truck free classifieds...

2014 Ford Taurus SEL Berline56000 km approximativement pneux d' t? en bon tat transmission automatique a six rapports Berline four portes moteur V6 three,5L 7 L/100 Km sur la grande route 11,replica...

View Article

Powershell module review

Hi I wanted to know if there is a way to get an expert opinion about a powershell module I wrotethanks

View Article


PowerShell and WPF: Checkboxes

Continuing on with my series on PowerShell and WPF, I am going to talk about using checkboxes in a form.Checkboxes are a great way to allow a user to select a specific item or items prior to moving on...

View Article

executing an msi install and changing default install directory

I'm trying to execute an msi and have it installed to a different directory. The install executes but is still installing to default path so its not installing to D:\ any ideas how to fix? msiexec.exe...

View Article


Stealthy, tricky 'Poweliks' malware hides in your system registry - but not...

A new malware program called Poweliks attempts to evade detection and analysis by running entirely from the system registry without creating files on disk, security researchers warn.Read More

View Article

Deep Panda has Changed its Preferred Targets

Softpedia.com reported during first week of July 2014 stating that security researchers of CrowdStrike have observed a change in preferred targets of cyber-espionage group of Deep Panda which the...

View Article


Onedrive items override

I want to try and see if I'm able to upload more than 20 000 items to the Onedrive storage, as the maximum is 20 000 items. I want to upload 20 001 and see what happens. how do I create a loop with an...

View Article

Delete IIS logs

I'm trying to delete IIS logs that are older than 30 days from the current date.  The following just deletes the 30th file from the current date. Just the one file.Where did I go wrong: cls$PSRanFrom =...

View Article

select-string question

I have this string   OurCompanyDomainName\UserName   UserName can be any user in our company so i want to select everything to the Right of '\'  and everything I've tried so far fails. How would I...

View Article
Browsing all 6937 articles
Browse latest View live