Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

Coding output file

I am wanting to code an output file for the following script.  If the user is not found, I want to put the user(s) into a txt file.$List = Import-CSV "path-location"$Step1 = New-MsolLicenseOptions...

View Article


iterating through an array to gather data for an email to a customer

Ok to start I'm extremely new to powershell. I've taken one class and now my boss thinks I'm proficient. What I am trying to accomplish :dump sql database into an arraysort array by owneriterate...

View Article


Start-BitsTransfer: Cannot Find Path

I want to copy one zip file from my local system to the Server machine. So I am using the Powershell Command Start-BitsTransfer -source c:\file.zip -destination  \192.168.1.210\C$\Website -credential...

View Article

The specified path, file name, or both are too long.

I try to copy three kind of files to a remote location. I've tested it on my own computer and on a server and everything works fine BUT on the computer I actually should execute this script.I already...

View Article

Powershell workaround for File Folder names that are too long...

Hi,is there any current update on the limitations in Powershell concerning the File FullName/Folder names being more than 260/248 chars?I've found this post, but I'll admit it's a bit...

View Article


Putting two scripts together

I have a script that will Ping a machine and report if it is online or offline code below:<#Title: Ping-TestAuthor: William H. DavisCreated: 5-May-2014Synopsis: This script will ping a remote...

View Article

Running a script as a different user

Hey all, Im having trouble with something i thought i would be pretty easy. but i keep failing short it seems. We have several domains in our shop, so im trying to run scripts on my machine that...

View Article

installing PSv3 - "The update does not apply to your system"

Hi,Trying to install PS v 3 on a Windows Server 2008 Standard 64bit with SP2. Dotnet4 Full is installed and followed this MS articles...

View Article


Deploy elevated powershell script with SCCM 2012

Hello all,I've been using Powershell for a while now and I really like it, who couldn't?  I've ran into an issue that I can't figure out and not even sure if it's possible.I have a Powershell script...

View Article


Reading multi valued attributes from AD and writing into CSV.

Hello, I'm relatively new to powershell. I've been tasked with getting some data from Active Directory. I'm searching for objects of class: PrintQueue in Active Directory. One of the attributes of this...

View Article

Problem Changing Drive Letter

Hi all,I'm having issues trying to change a Drive letter of external drives. The script I use is below.$drive = Get-WmiObject -Class Win32_Volume -Authentication 6 | where {$_.DeviceID -like...

View Article

cannot create cab file

I got this error when creating cab file following the script below:New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the...

View Article

Is there a way to pull number of e-mails sent\received from a particular Ad...

Good day everyone, I have a bit of a problem hopefully someone can help me here. I have a domain ABC.com with several Ad forests. Is there a powershell script that can distinguish users from a...

View Article


Import multiple PST files to archive database

I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...

View Article

Accept Message Restriction - Exchange 2007

Dear experts,                 Good day! I would like to achieve the followings using PowerShell. Your step-by-step guidance is very much appreciated. 1.      To find out the list of mailbox and...

View Article


Sum deleted items

Hi thereim trying to run a small one liner that will sum the total deleted items folder for a group of users on adatabase so something like this:Get-Mailbox -Database db1 |Get-MailboxFolderStatistics...

View Article

Exchange 2010 Dynamic Distribution Group needed

Where: RecepientType equals User MailboxANDCompany does NOT equal "Rex"

View Article


Have a script but getting errors. Bulk upload contact to GAL office 365 from csv

I have found this script looks great, when I run it in PowerShell It creates the contacts, enters in the Name fields ( Name-first-last-email) but when it goes to the Set Contact parameter there are...

View Article

Script to clean out old messages from Journal mailbox after exporting email...

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox":  New-MailboxExportRequest JournalMailbox -FilePath...

View Article

Change linkedmasteraccounts on multiple users using import-csv in Exchange 2007.

I am trying to change linkedmasteraccounts for around 200 users. I tried to script it, script below but it seems to fail. I am new at this and would appreciate any advice on how to get the script below...

View Article
Browsing all 10624 articles
Browse latest View live