Quantcast
Browsing all 21975 articles
Browse latest View live

Setting "Advanced security settings" on an OU using Powershell

Hello,I have been tasked to create an OU with the simular permissions as another. On the current OU, the admin1 acount has special permissions (set within the Advanced Security Settings). For the new...

View Article


Powershell: Error when trying to set "-HiddenFromAddressListsEnabled" on...

I am trying to hide a few mailboxes from a Global Address List using the -HiddenFromAddressListsEnabled parameter, but each time I attempt to use it, I get an error.I'm new to using Powershell, but I...

View Article


Can I use PowerShell to automate, as a batch script, a procedure on a windows...

Hi all!I was looking for tips about to use PowerShell to run a batch-script that automates a procedure, that normally I execute with HyperTerminal, manually.I know that some program, as Excel, can be...

View Article

Powershell 3.0 upgrade to 4.0 on win8 PC

Hi ,My PC is Windows 8 , and was actived by KMS server, I can't upgrade to windows 8.1. And windows 8 powershell version is 3.0, I want to upgrade to 4.0. However, After I download powershell 4.0 from...

View Article

Azure VM Detailed List

Hi, I am hoping to get some guidance for a script I need to create. I need the script to grab a list of the VM's on any given Azure Subscription, then provide the detailed information outputted to a...

View Article


Unzip GZ files using Powershell

I have  Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it? The folder is...

View Article

Reading .gz files.

Does anyone know if there is a way to read .gz files with Powershell?  I need to look for specific text in a large group of .gz log files.  Thanks for any ideas or help.

View Article

move file types over a certain date (beginner)

I'm trying to move all pictures over a definable date to a certain folder.Here's my script so far - ##Archive files that are older than a certain date $date = "01/12/2013" [array]$OldestFileImport =...

View Article


SetAuditRuleProtection($False, $True) and Set-ACL

$acl = Get-ACL ...#do some stuff to the DACL#mark SACL to inherit audit$acl.SetAuditRuleProtection($False, $True)While this sequence of events will not break SACL inheritance, it will not restore SACL...

View Article


Performance of powershell on 64bit on 2008 R2 v. powershell on 32bit on 2003 SP2

Converted a script written in vbscript to powershell v2.0.  When running the script in 32bit mode on Windows Server 2003 SP2 script runs in about 10 minutes and processes 6500 files.  Running the...

View Article

Problem with the follow code: get-wmiobject win32_service ... foreach...

 # I think you down understand my question ...  # # I need more arguments in variable "-incl_Service"  and "-excl_Service" #             =========             ===============      ==============  # #...

View Article

Access keys in a node once you have the parent node

Given this XML file<?xml version="1.0"?><Locations><Location ID = "Austin"><Strings><Root>"\\ausfs\"</Root><Jobs>"Austin...

View Article

Parse a file name and export to a CSV file

I would like to scan a folder that contains JPG files and parse the file name into a CSV file.  All the files have exact same convention separated by "-".  (For example:  800x800-Visio-large.jpg)  I...

View Article


Copy email from ThunderBird into Excel / Libre Calc

This is above my head but It would be useful to me and I'm not sure if it's possible or not :When someone applies for a job from our company website I get an email with the form on it - no file...

View Article

Open webpage in a new $ie window

When running the following, $ie1 will open web page1 and then will go to page2 after $a.click(). However, Page2 will take the same window as Page1. Is there a way to keep Page1 in $ie1 and open a new...

View Article


Importing attribute from a CSV to AD for multiple users

Hi All,I have searched around for an answer to this and tried it on our test domain with a test CSV file, but can't get it to work. So I apologize if the answer is out there, but I'm unable to get this...

View Article

quoted arguments containing spaces are split, how to prevent it?

Hi,im trying to supply multiple filenames to a powershell script but they get split at the spaces even tho they are quoted.C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "X:\abc.ps1" "Y:\my...

View Article


Script to make a file inventory on a file server

HelloTo accomplish a company audit, I have to create a script that scan our windows 2003 standard file server and create a report with a list of certain files type like mp3, video and so on. In the...

View Article

Exchange 2010 - Get-Mailboxpermission and security groups

Hi all,Apologies in advance if this question has been asked before however i'm failing to find any resources online about it.I am doing a migration from Exchange 2010 > Office365 and need to run a...

View Article

Move folder

Hello,need help with little script, now i work with this (manualy)$text = Get-Content D:\move.txt$dir = Get-ChildItem D:\Oldforeach ($item in $text) {  foreach ($folder in $dir) {    if ($folder.name...

View Article
Browsing all 21975 articles
Browse latest View live