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

How To Parse the Output of the Command

Hi there!Here is my scenario:Command Prompt application returns the output which contains several lines.C:>MyCommand parameter1The output is:User1 has a balance of 10.00User1 has a free quota of...

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


How to convert a DOCX word document do PDF without Word APP

Hi all. I have made it to pick up a docx file and generate its pdf.The thing is, it opens Word! After I'm done creating the script, I'm placing it on a server without Word installed.Is there any other...

View Article

How to get Operating system details for linux VM?

Hi, Im using  GetsummaryInformation() in powershell script to get the Guest Os operating system details. But it is empty when the machine is offline or it is Linux. It is giving output only when the...

View Article

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


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
Browsing all 6937 articles
Browse latest View live