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

Removing inheriting permissions

Hi,I wanna delete some groups from subfolder that inherit permissions from the parent.So I first stop inheriting with this code$acl = Get-Acl $subfolder1$acl.SetAccessRuleProtection($true,$true)$acl...

View Article


Looking for a script to pull Storage INQ info from multiple Windows servers

Hi,I am looking for a script that will let me pull the INQ info from multiple Windows servers.  The reason being that I need to identify which arrays various Virtual Machines are attached to without...

View Article


How to reference an output value to store in another variable

Hi, I dont know powershell but do use some scripts I get from the web to assist with particular tasks.  One such script I use (provided by Jonathan Almquist), is for checking is Ops Manager Alert...

View Article

ParentOU

hi, with QAD there is a option parrentOU , is there something like this in Powershell v3. so i want to know in which OU the computer object is located. dont want the whole ldap string. or if there is a...

View Article

Problems with Move-SPSite

So I'm running the following command and it's failing: Move-SPSite https://www.oursite.com/sites/1a91a5176f4da10eb16d -DestinationDatabase  WSS_Content_Staging10 Move-SPSite : Operation is not valid...

View Article


extract users and general details from an OU

Howdy! this seems so simple but can get it to report the proper info.I just want to extract users form an OU w/ maybe namfe, email, and any other field that's not empty.this is what I have, but it only...

View Article

Adding Windows Credential for each user

Still plugging away at my Powershell script to "build" a Windows 7 system.  Not finding the answers I need for this one - I need to add a Windows Credential for each user (Administrator, plus four...

View Article

Extract data from "fullaccess" and pull additional AD User info

I'm attempting to write a script that I can extract a list of users who have "FullAccess" rights on a Mailbox, and then pass this through for a general ADUser query to obtain additional information on...

View Article


test server connection before executing commands

Hi All,I have  a script which would collect some windows hardware information. I have list of servers in $filelist. and so,  I have used foreach ($computer in $filelist) {write-host `nwrite-host...

View Article


Complicated AD looking and naming PC

We are building windows 7 workstations using a custom HTA.  In this HTA we prompt for the following. User Name:  Will be their full name like 'Susan Cartwright'Office:   Will be a city name like...

View Article

excluding existing members

I use this script to copy members from one group to another. I need to update it to ignore members that are already a member of the destination group. Otherwise it says that the specified user is...

View Article

Create FTP Site problem

I am in the middle of a Windows 7 "Build" script with Powershell - taking a basic Windows PC and using a Powershell script to add all necessary users and items.  Am currently working on setting up an...

View Article

how to create a new mail contact while disabling the emailpolicy before its...

hello again!so we have a list of users that have user@kiwi.com as their email address, and we need to create new mail contacts for each of them but having a diff email address like user@g.kiwi.com. we...

View Article


How to copy the file from one computer to other computers.

Hi,I need to copy the contents of hosts file to multiple systems as i don't have dns on my lab.If anyone help me to copy the contents of hosts file to other systems or just overwrite hosts file from...

View Article

powershell with excel

Hi,      i want import from sql server tables to Excel spread sheets.  For Example. Sql server Tables:1.emp2. orders. The above two tables need single excel sheet but different worksheets(sheet1,sheet2). 

View Article


powershell with excel

Hi,      i generate two ouputs using powershell. i need to save the single excel sheet but different spread sheets. (sheet1,sheet2). How to export two sheets . any one help me.    

View Article

PowerShell Working with Windows Azure VMs

This blog describe the essentials to get you started with building Windows Azure Virtual Machines.  This is slightly different from the previous blogs on Windows Azure SQL Database Servers.  As a...

View Article


Parsing Event Logs with PowerShell

Over the past few months we have been encountering random user lockouts in Active Directory while performing an extensive server farm overhaul. As one of the primary sources for help in this small...

View Article

PDT user creator in, hold it… PowerShell!

Well, I’ve read about it. I’ve tried some. I’ve never written one myself. But it finally happened! Using the PDT (PowerShell Deployment Toolkit) I’ve come to realise that creating the users and groups...

View Article

Powershell script for report on logs within a specific time window?

Howdy (again),I am working on a process to automate a tedious function that currently involves:1.  Taking log files from a specific directory on a server and that were modified or created within a 6...

View Article
Browsing all 8411 articles
Browse latest View live